Do not make Gross Price readonly on inactive

This is done automatically by the client.
This commit is contained in:
Cédric Krier committed 2021-10-17 10:44:08 +02:00
1 parent a5a2d04641
commit 23255b3c76
1 file changed
+1 -2
+1 -2
View File
@@ -15,9 +15,8 @@ class Template(metaclass=PoolMeta):
"Gross Price", digits=price_digits,
states={
'invisible': ~Eval('salable', False),
'readonly': ~Eval('active', True),
},
depends=['salable', 'active'],
depends=['salable'],
help="The price with default tax included."))
gross_prices = fields.One2Many(
'product.gross_price', 'template', "Gross Prices")