changeset aebdc6a7a33f in modules/production_routing:default
details: 
https://hg.tryton.org/modules/production_routing?cmd=changeset&node=aebdc6a7a33f
description:
        Send only the required fields when fetching a readonly view definition

        issue11134
        review380081002
diffstat:

 product.py    |  6 ++----
 production.py |  3 +--
 2 files changed, 3 insertions(+), 6 deletions(-)

diffs (33 lines):

diff -r a26492234084 -r aebdc6a7a33f product.py
--- a/product.py        Wed Apr 06 23:37:43 2022 +0200
+++ b/product.py        Fri Apr 08 19:07:13 2022 +0200
@@ -11,8 +11,7 @@
         ondelete='CASCADE', select=True,
         domain=[
             ('boms', '=', Eval('bom', 0)),
-            ],
-        depends=['bom'])
+            ])
 
 
 class ProductionLeadTime(metaclass=PoolMeta):
@@ -21,5 +20,4 @@
         ondelete='CASCADE',
         domain=[
             ('boms', '=', Eval('bom', 0)),
-            ],
-        depends=['bom'])
+            ])
diff -r a26492234084 -r aebdc6a7a33f production.py
--- a/production.py     Wed Apr 06 23:37:43 2022 +0200
+++ b/production.py     Fri Apr 08 19:07:13 2022 +0200
@@ -14,8 +14,7 @@
         states={
             'readonly': ~Eval('state').in_(['request', 'draft']),
             'invisible': ~Eval('bom'),
-            },
-        depends=['bom', 'state'])
+            })
 
     @fields.depends('bom', 'routing')
     def on_change_bom(self):

Reply via email to