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
1=== modified file 'purchase_delivery_term/purchase.py'
2--- purchase_delivery_term/purchase.py 2013-10-10 07:55:36 +0000
3+++ purchase_delivery_term/purchase.py 2014-06-20 09:43:34 +0000
4@@ -101,7 +101,7 @@
5 digits_compute= dp.get_precision('Product Price')),
6 'price_subtotal': fields.function(_amount_line, string='Subtotal',
7 digits_compute= dp.get_precision('Product Price')),
8- 'product_qty': fields.float('Quantity', digits_compute=dp.get_precision('Product UoM'), required=True),
9+ 'product_qty': fields.float('Quantity', digits_compute=dp.get_precision('Product Unit of Measure'), required=True),
10 'product_uom': fields.many2one('product.uom', 'Product UOM', required=True),
11 'order_line_ids': fields.one2many('purchase.order.line',
12 'master_line_id', 'Detailed lines'),
13
14=== modified file 'purchase_landed_costs/purchase.py'
15--- purchase_landed_costs/purchase.py 2014-03-03 13:49:27 +0000
16+++ purchase_landed_costs/purchase.py 2014-06-20 09:43:34 +0000
17@@ -486,7 +486,7 @@
18 string='Landed Costs Total Untaxed'),
19 'quantity_total': fields.function(
20 _quantity_total,
21- digits_compute=dp.get_precision('Product UoM'),
22+ digits_compute=dp.get_precision('Product Unit of Measure'),
23 string='Total Quantity'),
24 }
25

Subscribers

People subscribed via source and target branches