changeset bdee25aec797 in modules/project_revenue:default details: https://hg.tryton.org/modules/project_revenue?cmd=changeset&node=bdee25aec797 description: Send only the required fields when fetching a readonly view definition
issue11134 review380081002 diffstat: purchase.py | 2 +- work.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diffs (32 lines): diff -r 5268a7fb4825 -r bdee25aec797 purchase.py --- a/purchase.py Wed Apr 06 23:37:43 2022 +0200 +++ b/purchase.py Fri Apr 08 19:07:13 2022 +0200 @@ -15,5 +15,5 @@ states={ 'invisible': Eval('type') != 'line', }, - depends=['type', 'purchase'], + depends={'purchase'}, help="Add to the cost of the work effort.") diff -r 5268a7fb4825 -r bdee25aec797 work.py --- a/work.py Wed Apr 06 23:37:43 2022 +0200 +++ b/work.py Fri Apr 08 19:07:13 2022 +0200 @@ -24,7 +24,7 @@ context={ 'company': Eval('company', -1), }, - depends=['company']) + depends={'company'}) list_price = Monetary( "List Price", currency='currency', digits=price_digits) revenue = fields.Function(Monetary( @@ -52,8 +52,7 @@ 'Purchase Lines', domain=[ ('purchase.company', '=', Eval('company', -1)), ('type', '=', 'line'), - ], - depends=['company']) + ]) @classmethod def _get_cost(cls, works):