Merge lp:~tafaru/purchase-wkfl/fix_decimal_precision into lp:~purchase-core-editors/purchase-wkfl/7.0

Proposed by Alex Comba - Agile BG
Status: Merged
Merged at revision: 19
Proposed branch: lp:~tafaru/purchase-wkfl/fix_decimal_precision
Merge into: lp:~purchase-core-editors/purchase-wkfl/7.0
Diff against target: 15 lines (+2/-2)
1 file modified
purchase_delivery_term/purchase.py (+2/-2)
To merge this branch: bzr merge lp:~tafaru/purchase-wkfl/fix_decimal_precision
Reviewer Review Type Date Requested Status
Joël Grand-Guillaume @ camptocamp code review, no tests Approve
Lorenzo Battistini (community) Approve
Review via email: mp+160576@code.launchpad.net

Commit message

[FIX] dp 'Purchase Price' replaced by 'Product Price

Description of the change

I replaced the dp 'Purchase Price' by the dp 'Product Price' cause the former isn't longer used in 7.0

To post a comment you must log in.
Revision history for this message
Lorenzo Battistini (elbati) :
review: Approve
Revision history for this message
Joël Grand-Guillaume @ camptocamp (jgrandguillaume-c2c) wrote :

LGTM

review: Approve (code review, no tests)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'purchase_delivery_term/purchase.py'
2--- purchase_delivery_term/purchase.py 2013-03-28 17:38:36 +0000
3+++ purchase_delivery_term/purchase.py 2013-04-24 09:10:36 +0000
4@@ -97,9 +97,9 @@
5 'product_id': fields.many2one('product.product', 'Product',
6 domain=[('purchase_ok','=',True)], change_default=True),
7 'price_unit': fields.float('Unit Price', required=True,
8- digits_compute= dp.get_precision('Purchase Price')),
9+ digits_compute= dp.get_precision('Product Price')),
10 'price_subtotal': fields.function(_amount_line, string='Subtotal',
11- digits_compute= dp.get_precision('Purchase Price')),
12+ digits_compute= dp.get_precision('Product Price')),
13 'product_qty': fields.float('Quantity', digits_compute=dp.get_precision('Product UoM'), required=True),
14 'product_uom': fields.many2one('product.uom', 'Product UOM', required=True),
15 'order_line_ids': fields.one2many('purchase.order.line',

Subscribers

People subscribed via source and target branches