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

Proposed by Andres Calle (TRESCLOUD)
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) Approve
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.
Revision history for this message
Amit Parik (amit-parik) :
review: Approve

Unmerged revisions

9195. By Andres Calle (TRESCLOUD)

[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
=== modified file 'account/account_move_line.py'
--- account/account_move_line.py 2014-01-15 21:44:54 +0000
+++ account/account_move_line.py 2014-03-13 03:07:34 +0000
@@ -433,7 +433,7 @@
433433
434 _columns = {434 _columns = {
435 'name': fields.char('Name', size=64, required=True),435 'name': fields.char('Name', size=64, required=True),
436 '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."),436 '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."),
437 'product_uom_id': fields.many2one('product.uom', 'Unit of Measure'),437 'product_uom_id': fields.many2one('product.uom', 'Unit of Measure'),
438 'product_id': fields.many2one('product.product', 'Product'),438 'product_id': fields.many2one('product.product', 'Product'),
439 'debit': fields.float('Debit', digits_compute=dp.get_precision('Account')),439 'debit': fields.float('Debit', digits_compute=dp.get_precision('Account')),

Subscribers

People subscribed via source and target branches

to all changes: