Use the decimal precision 'Product Unit of Measure' in the quantity field of Contract Line

This commit is contained in:
Daniel Palomar
2019-03-19 14:05:39 +01:00
parent 2d617b9e1f
commit 467fb8c02e

View File

@@ -35,6 +35,7 @@ class AccountAnalyticContractLine(models.Model):
)
quantity = fields.Float(
default=1.0,
digits=dp.get_precision('Product Unit of Measure'),
required=True,
)
uom_id = fields.Many2one(