Merge lp:~openerp-community/openobject-addons/trunk-bugfix-1284238 into lp:openobject-addons

Proposed by Andres Calle (TRESCLOUD) on 2014-03-13
Status: Needs review
Proposed branch: lp:~openerp-community/openobject-addons/trunk-bugfix-1284238
Merge into: lp:openobject-addons
Diff against target: 12 lines (+1/-1)
1 file modified
account/account_move_line.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-community/openobject-addons/trunk-bugfix-1284238
Reviewer Review Type Date Requested Status
Amit Parik (community) 2014-03-13 Approve on 2014-03-25
Review via email: mp+210733@code.launchpad.net

Description of the change

According to bug https://bugs.launchpad.net/openobject-addons/+bug/1284238

The field product quantity in account.move.line is saved with only 2 decimal positions while it should be with as many decimal positions as the product.

To post a comment you must log in.
Amit Parik (amit-parik) :
review: Approve

Unmerged revisions

9195. By Andres Calle (TRESCLOUD) on 2014-03-13

[FIX] fixed rounding precition in product quantity for account.move.line

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-01-15 21:44:54 +0000
3+++ account/account_move_line.py 2014-03-13 03:07:34 +0000
4@@ -433,7 +433,7 @@
5
6 _columns = {
7 'name': fields.char('Name', size=64, required=True),
8- 'quantity': fields.float('Quantity', digits=(16,2), help="The optional quantity expressed by this line, eg: number of product sold. The quantity is not a legal requirement but is very useful for some reports."),
9+ 'quantity': fields.float('Quantity', digits_compute=dp.get_precision('Product Unit of Measure'), help="The optional quantity expressed by this line, eg: number of product sold. The quantity is not a legal requirement but is very useful for some reports."),
10 'product_uom_id': fields.many2one('product.uom', 'Unit of Measure'),
11 'product_id': fields.many2one('product.product', 'Product'),
12 'debit': fields.float('Debit', digits_compute=dp.get_precision('Account')),

Subscribers

People subscribed via source and target branches

to all changes: