openerp-community team mailing list archive
-
openerp-community team
-
Mailing list archive
-
Message #00799
[Merge] lp:~openerp-community/openobject-addons/trunk-bug-919572-pslt into lp:openobject-addons
Paulius Sladkevičius has proposed merging lp:~openerp-community/openobject-addons/trunk-bug-919572-pslt into lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #919572 in OpenERP Addons: "Invoice line quantity must have "Product UoS" decimal precision"
https://bugs.launchpad.net/openobject-addons/+bug/919572
For more details, see:
https://code.launchpad.net/~openerp-community/openobject-addons/trunk-bug-919572-pslt/+merge/89528
Add UoS deciaml presition for invoice quantity
--
https://code.launchpad.net/~openerp-community/openobject-addons/trunk-bug-919572-pslt/+merge/89528
Your team OpenERP Community is subscribed to branch lp:~openerp-community/openobject-addons/trunk-bug-919572-pslt.
=== modified file 'account/account_invoice.py'
--- account/account_invoice.py 2012-01-10 14:09:12 +0000
+++ account/account_invoice.py 2012-01-21 10:34:25 +0000
@@ -1295,7 +1295,7 @@
'price_unit': fields.float('Unit Price', required=True, digits_compute= dp.get_precision('Account')),
'price_subtotal': fields.function(_amount_line, string='Subtotal', type="float",
digits_compute= dp.get_precision('Account'), store=True),
- 'quantity': fields.float('Quantity', required=True),
+ 'quantity': fields.float('Quantity', digits_compute=dp.get_precision('Product UoS'), required=True),
'discount': fields.float('Discount (%)', digits_compute= dp.get_precision('Account')),
'invoice_line_tax_id': fields.many2many('account.tax', 'account_invoice_line_tax', 'invoice_line_id', 'tax_id', 'Taxes', domain=[('parent_id','=',False)]),
'note': fields.text('Notes'),