changeset 6dc86cd483bd in modules/account_invoice:default
details: 
https://hg.tryton.org/modules/account_invoice?cmd=changeset;node=6dc86cd483bd
description:
        Add company as product context field

        issue9111
        review275031002
diffstat:

 invoice.py |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r bb9d4e9c7a49 -r 6dc86cd483bd invoice.py
--- a/invoice.py        Mon Apr 13 12:21:55 2020 +0200
+++ b/invoice.py        Sat Apr 25 09:18:06 2020 +0200
@@ -1679,7 +1679,10 @@
             'invisible': Eval('type') != 'line',
             'readonly': _states['readonly'],
             },
-        depends=['type', 'product_uom_category'] + _depends)
+        context={
+            'company': Eval('company', None),
+            },
+        depends=['type', 'product_uom_category', 'company'] + _depends)
     product_uom_category = fields.Function(
         fields.Many2One('product.uom.category', 'Product Uom Category'),
         'on_change_with_product_uom_category')

Reply via email to