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

        issue11134
        review380081002
diffstat:

 product.py |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (32 lines):

diff -r 5d334e570cab -r c37f88a4b75e product.py
--- a/product.py        Wed Apr 06 23:37:43 2022 +0200
+++ b/product.py        Fri Apr 08 19:07:13 2022 +0200
@@ -86,8 +86,7 @@
         'product.image', 'product', "Images",
         domain=[
             ('template', '=', Eval('template', -1)),
-            ],
-        depends=['template'])
+            ])
 
     @property
     def images_used(self):
@@ -114,16 +113,14 @@
             If(Bool(Eval('product')),
                 ('products', '=', Eval('product')),
                 ()),
-            ],
-        depends=['product'])
+            ])
     product = fields.Many2One(
         'product.product', "Variant", select=True,
         domain=[
             If(Bool(Eval('template')),
                 ('template', '=', Eval('template')),
                 ()),
-            ],
-        depends=['template'])
+            ])
     cache = fields.One2Many(
         'product.image.cache', 'product_image', "Cache", readonly=True)
 

Reply via email to