From 467fb8c02e1011bc2074fec77c643c6faef093e5 Mon Sep 17 00:00:00 2001 From: Daniel Palomar Date: Tue, 19 Mar 2019 14:05:39 +0100 Subject: [PATCH] Use the decimal precision 'Product Unit of Measure' in the quantity field of Contract Line --- contract/models/account_analytic_contract_line.py | 1 + 1 file changed, 1 insertion(+) diff --git a/contract/models/account_analytic_contract_line.py b/contract/models/account_analytic_contract_line.py index 9dbb0f05..5143c901 100644 --- a/contract/models/account_analytic_contract_line.py +++ b/contract/models/account_analytic_contract_line.py @@ -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(