Merge lp:~openerp-dev/openobject-addons/7.0-opw-592732-ado into lp:openobject-addons/7.0

Proposed by Amit Dodiya (OpenERP)
Status: Merged
Approved by: Naresh(OpenERP)
Approved revision: no longer in the source branch.
Merged at revision: 9449
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-opw-592732-ado
Merge into: lp:openobject-addons/7.0
Diff against target: 12 lines (+1/-1)
1 file modified
stock/wizard/stock_change_standard_price.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-592732-ado
Reviewer Review Type Date Requested Status
Martin Trigaux (OpenERP) (community) Approve
Naresh(OpenERP) (community) Approve
Xavier ALT Pending
Review via email: mp+165356@code.launchpad.net

Description of the change

Hello,

[FIX] stock: decimal precision of new_price field on update cost price wizard is not same as defined in cost_price field

Issue:
Decimal precision of field "Cost Price" in change standard price wizard should be same as "Cost Price" field of product.

Regards,
Amit

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) :
review: Approve
Revision history for this message
Martin Trigaux (OpenERP) (mat-openerp) wrote :

LGTM, merged in 7.0

revno: 9449 [merge]
revision-id: <email address hidden>

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/wizard/stock_change_standard_price.py'
2--- stock/wizard/stock_change_standard_price.py 2012-12-17 15:23:03 +0000
3+++ stock/wizard/stock_change_standard_price.py 2013-05-23 12:27:47 +0000
4@@ -27,7 +27,7 @@
5 _name = "stock.change.standard.price"
6 _description = "Change Standard Price"
7 _columns = {
8- 'new_price': fields.float('Price', required=True, digits_compute=dp.get_precision('Account'),
9+ 'new_price': fields.float('Price', required=True, digits_compute=dp.get_precision('Product Price'),
10 help="If cost price is increased, stock variation account will be debited "
11 "and stock output account will be credited with the value = (difference of amount * quantity available).\n"
12 "If cost price is decreased, stock variation account will be creadited and stock input account will be debited."),