Merge lp:~numerigraphe-team/purchase-wkfl/7.0-fix-decimal-precision into lp:~purchase-core-editors/purchase-wkfl/7.0

Proposed by Lionel Sausin - Initiatives/Numérigraphe
Status: Work in progress
Proposed branch: lp:~numerigraphe-team/purchase-wkfl/7.0-fix-decimal-precision
Merge into: lp:~purchase-core-editors/purchase-wkfl/7.0
Diff against target: 24 lines (+2/-2)
2 files modified
purchase_delivery_term/purchase.py (+1/-1)
purchase_landed_costs/purchase.py (+1/-1)
To merge this branch: bzr merge lp:~numerigraphe-team/purchase-wkfl/7.0-fix-decimal-precision
Reviewer Review Type Date Requested Status
Pedro Manuel Baeza Needs Resubmitting
Review via email: mp+223883@code.launchpad.net

Description of the change

In version 7 the name of the digital precision parameter for UoMs has changed : this branch updates the modules where the change is missing.

To post a comment you must log in.
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Good catch!

LGTM.

Regards.

review: Approve (code review)
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

This project is now hosted on https://github.com/OCA/purchase-workflow. Please move your proposal there. This guide may help you https://github.com/OCA/maintainers-tools/wiki/How-to-move-a-Merge-Proposal-to-GitHub

review: Needs Resubmitting

Unmerged revisions

38. By Numérigraphe

[FIX] Decimal precision parameter for products is 'Product Unit of Measure' in v7

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'purchase_delivery_term/purchase.py'
--- purchase_delivery_term/purchase.py 2013-10-10 07:55:36 +0000
+++ purchase_delivery_term/purchase.py 2014-06-20 09:43:34 +0000
@@ -101,7 +101,7 @@
101 digits_compute= dp.get_precision('Product Price')),101 digits_compute= dp.get_precision('Product Price')),
102 'price_subtotal': fields.function(_amount_line, string='Subtotal',102 'price_subtotal': fields.function(_amount_line, string='Subtotal',
103 digits_compute= dp.get_precision('Product Price')),103 digits_compute= dp.get_precision('Product Price')),
104 'product_qty': fields.float('Quantity', digits_compute=dp.get_precision('Product UoM'), required=True),104 'product_qty': fields.float('Quantity', digits_compute=dp.get_precision('Product Unit of Measure'), required=True),
105 'product_uom': fields.many2one('product.uom', 'Product UOM', required=True),105 'product_uom': fields.many2one('product.uom', 'Product UOM', required=True),
106 'order_line_ids': fields.one2many('purchase.order.line',106 'order_line_ids': fields.one2many('purchase.order.line',
107 'master_line_id', 'Detailed lines'),107 'master_line_id', 'Detailed lines'),
108108
=== modified file 'purchase_landed_costs/purchase.py'
--- purchase_landed_costs/purchase.py 2014-03-03 13:49:27 +0000
+++ purchase_landed_costs/purchase.py 2014-06-20 09:43:34 +0000
@@ -486,7 +486,7 @@
486 string='Landed Costs Total Untaxed'),486 string='Landed Costs Total Untaxed'),
487 'quantity_total': fields.function(487 'quantity_total': fields.function(
488 _quantity_total,488 _quantity_total,
489 digits_compute=dp.get_precision('Product UoM'),489 digits_compute=dp.get_precision('Product Unit of Measure'),
490 string='Total Quantity'),490 string='Total Quantity'),
491 }491 }
492492

Subscribers

People subscribed via source and target branches