changeset d2acf3a9425e in modules/commission:default
details: 
https://hg.tryton.org/modules/commission?cmd=changeset&node=d2acf3a9425e
description:
        Add new depends from new get_eval_fields implementation

        issue11164
diffstat:

 invoice.py |  3 ++-
 sale.py    |  1 +
 2 files changed, 3 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 3bc37c5dcbce -r d2acf3a9425e invoice.py
--- a/invoice.py        Sun Jan 23 12:54:56 2022 +0100
+++ b/invoice.py        Sun Jan 30 20:17:47 2022 +0100
@@ -129,7 +129,8 @@
             'invisible': If(Bool(Eval('_parent_invoice')),
                 Eval('_parent_invoice', {}).get('type') == 'in',
                 Eval('invoice_type') == 'in'),
-            }, depends=['invoice_type', 'company'],
+            },
+        depends=['invoice_type', 'company', 'invoice'],
         help="The principal who pays a commission for the invoice line.")
     commissions = fields.One2Many('commission', 'origin', 'Commissions',
         readonly=True,
diff -r 3bc37c5dcbce -r d2acf3a9425e sale.py
--- a/sale.py   Sun Jan 23 12:54:56 2022 +0100
+++ b/sale.py   Sun Jan 30 20:17:47 2022 +0100
@@ -81,6 +81,7 @@
             ('type_', '=', 'principal'),
             ('company', '=', Eval('_parent_sale', {}).get('company', -1)),
             ],
+        depends=['sale'],
         help="The principal who pays a commission for the line.")
 
     def get_invoice_line(self):

Reply via email to