Merge lp:~openerp-dev/openobject-addons/trunk-usability1_typo-jar into lp:openobject-addons

Proposed by Jaydeep Barot(OpenERP)
Status: Merged
Approved by: Mustufa Rangwala (Open ERP)
Approved revision: no longer in the source branch.
Merged at revision: 9385
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-usability1_typo-jar
Merge into: lp:openobject-addons
Diff against target: 38 lines (+3/-3)
3 files modified
account/account_move_line.py (+1/-1)
mail/data/mail_demo.xml (+1/-1)
stock/stock.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-usability1_typo-jar
Reviewer Review Type Date Requested Status
Richard Mathot (Odoo, formerly OpenERP) (community) Approve
Review via email: mp+216572@code.launchpad.net

Description of the change

Hello,

I have done following issues.

1) Typo in Messages demo.
2) Typo in constraint message.
3) Set meaningful warning message, when user tries to scrap the product from virtual location.

Thanks,
Jaydeep Barot (JAR)

To post a comment you must log in.
Revision history for this message
Richard Mathot (Odoo, formerly OpenERP) (rim-openerp) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/account_move_line.py'
2--- account/account_move_line.py 2014-04-24 06:53:06 +0000
3+++ account/account_move_line.py 2014-04-25 06:01:23 +0000
4@@ -642,7 +642,7 @@
5 (_check_date, 'The date of your Journal Entry is not in the defined period! You should change the date or remove this constraint from the journal.', ['date']),
6 (_check_currency, 'The selected account of your Journal Entry forces to provide a secondary currency. You should remove the secondary currency on the account or select a multi-currency view on the journal.', ['currency_id']),
7 (_check_currency_and_amount, "You cannot create journal items with a secondary currency without recording both 'currency' and 'amount currency' field.", ['currency_id','amount_currency']),
8- (_check_currency_amount, 'The amount expressed in the secondary currency must be positive when the journal item is a debit and negative when if it is a credit.', ['amount_currency']),
9+ (_check_currency_amount, 'The amount expressed in the secondary currency must be positive when account is debited and negative when account is credited.', ['amount_currency']),
10 (_check_currency_company, "You cannot provide a secondary currency if it is the same than the company one." , ['currency_id']),
11 ]
12
13
14=== modified file 'mail/data/mail_demo.xml'
15--- mail/data/mail_demo.xml 2014-04-09 10:16:04 +0000
16+++ mail/data/mail_demo.xml 2014-04-25 06:01:23 +0000
17@@ -259,7 +259,7 @@
18 <!-- Short thread: Admin ask, Agrolait answer [DEMO: mark thread as done] -->
19 <record id="msg_discus1" model="mail.message">
20 <field name="subject">Feedback about our On Site Assistance</field>
21- <field name="body"><![CDATA[<p>Hi Virginie,</p><p>I writing to you about our <i>On Site Assistance Service</i> that we delivered to Agrolait last week. Do you have any feedback or remark about our service? I noticed you requested new IP phones. Will it be used for new employees, or did you have any issue with the ones we provided?<br />Best regards,</p>]]></field>
22+ <field name="body"><![CDATA[<p>Hi Virginie,</p><p>I wrote to you about our <i>On Site Assistance Service</i> that we delivered to Agrolait last week. Do you have any feedback or remark about our service? I noticed you requested new IP phones. Will it be used for new employees, or did you have any issue with the ones we provided?<br />Best regards,</p>]]></field>
23 <field name="type">comment</field>
24 <field name="subtype_id" ref="mt_comment"/>
25 <field name="author_id" ref="base.partner_root"/>
26
27=== modified file 'stock/stock.py'
28--- stock/stock.py 2014-04-18 06:12:56 +0000
29+++ stock/stock.py 2014-04-25 06:01:23 +0000
30@@ -2506,7 +2506,7 @@
31 source_location = move.location_dest_id
32 if source_location.usage != 'internal':
33 #restrict to scrap from a virtual location because it's meaningless and it may introduce errors in stock ('creating' new products from nowhere)
34- raise osv.except_osv(_('Error!'), _('Forbidden operation: it is not allowed to scrap products from a virtual location.'))
35+ raise osv.except_osv(_('Error!'), _('Operation Forbidden! it is not allowed to scrap products from a virtual location: %s' %(move.location_id.complete_name)))
36 move_qty = move.product_qty
37 uos_qty = quantity / move_qty * move.product_uos_qty
38 default_val = {

Subscribers

People subscribed via source and target branches

to all changes: