details:   https://code.tryton.org/tryton/commit/6a53a24b2aed
branch:    default
user:      Cédric Krier <[email protected]>
date:      Mon Dec 01 17:12:57 2025 +0100
description:
        Add depends to parent account_category for on_change_gross_price

        Since 101e1d87a261 product template has a One2Many field 
accounting_templates
        which requires the new dependency.
diffstat:

 modules/sale_point/product.py |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 5c0e57064e38 -r 6a53a24b2aed modules/sale_point/product.py
--- a/modules/sale_point/product.py     Mon Dec 01 16:52:59 2025 +0100
+++ b/modules/sale_point/product.py     Mon Dec 01 17:12:57 2025 +0100
@@ -11,7 +11,8 @@
     __slots__ = ()
 
     @fields.depends(
-        'gross_price', 'account_category', methods=['customer_taxes_used'])
+        'gross_price', 'account_category', '_parent_account_category.id',
+        methods=['customer_taxes_used'])
     def on_change_gross_price(self):
         pool = Pool()
         Date = pool.get('ir.date')

Reply via email to