Do not make Gross Price readonly on inactive
This is done automatically by the client.
This commit is contained in:
1 parent
a5a2d04641
commit
23255b3c76
1 file changed
+1
-2
+1
-2
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user