changeset 43e0d0067320 in modules/account_invoice_stock:default details: https://hg.tryton.org/modules/account_invoice_stock?cmd=changeset&node=43e0d0067320 description: Send only the required fields when fetching a readonly view definition
issue11134 review380081002 diffstat: account.py | 4 +--- stock.py | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diffs (34 lines): diff -r b39929689c4c -r 43e0d0067320 account.py --- a/account.py Wed Apr 06 23:37:41 2022 +0200 +++ b/account.py Fri Apr 08 19:07:12 2022 +0200 @@ -67,8 +67,7 @@ 'invisible': ( (Eval('type') != 'line') | ~Eval('product')), - }, - depends=['type', 'product_uom_category', 'invoice', 'invoice_type']) + }) shipments = fields.Function(fields.Char("Shipments"), 'get_shipments') correction = fields.Boolean( "Correction", @@ -76,7 +75,6 @@ 'invisible': ((Eval('_parent_invoice', {}).get('type') == 'out') | (Eval('invoice_type') == 'out')), }, - depends=['invoice_type'], help="Check to correct price of already posted invoice.") @classmethod diff -r b39929689c4c -r 43e0d0067320 stock.py --- a/stock.py Wed Apr 06 23:37:41 2022 +0200 +++ b/stock.py Fri Apr 08 19:07:12 2022 +0200 @@ -25,8 +25,7 @@ ], states={ 'invisible': ~Eval('invoice_types', []), - }, - depends=['product_uom_category', 'invoice_types']) + }) invoice_types = fields.Function( fields.MultiSelection('get_invoice_types', "Invoice Types"), 'on_change_with_invoice_types')