Send only the required fields when fetching a readonly view definition

issue11134
review380081002
This commit is contained in:
Nicolas Évrard
2022-04-08 19:07:13 +02:00
parent 13e5478613
commit fa9726c1cb
-2
View File
@@ -21,8 +21,6 @@ class PurchaseLine(AnalyticMixin, metaclass=PoolMeta):
'invisible': Eval('type') != 'line',
'readonly': Eval('purchase_state') != 'draft',
}
cls.analytic_accounts.depends.extend(
['type', 'purchase_state', 'purchase'])
def get_invoice_line(self):
pool = Pool()