[FIX] account: decimal precision
Missing decimal precisions. opw-726110
This commit is contained in:
@@ -8,6 +8,7 @@ from odoo.exceptions import RedirectWarning, UserError, ValidationError
|
||||
from odoo.tools.misc import formatLang
|
||||
from odoo.tools import float_is_zero, float_compare
|
||||
from odoo.tools.safe_eval import safe_eval
|
||||
import odoo.addons.decimal_precision as dp
|
||||
from lxml import etree
|
||||
|
||||
#----------------------------------------------------------
|
||||
@@ -357,7 +358,7 @@ class AccountMoveLine(models.Model):
|
||||
self.counterpart = ",".join(counterpart)
|
||||
|
||||
name = fields.Char(required=True, string="Label")
|
||||
quantity = fields.Float(digits=(16, 2),
|
||||
quantity = fields.Float(digits=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.")
|
||||
product_uom_id = fields.Many2one('product.uom', string='Unit of Measure')
|
||||
product_id = fields.Many2one('product.product', string='Product')
|
||||
|
||||
Reference in New Issue
Block a user