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.
This commit is contained in:
Cédric Krier committed 2025-12-01 17:12:57 +01:00
1 parent 998aa90a72
commit 76cc0945e3
1 file changed
+2 -1
+2 -1
View File
@@ -11,7 +11,8 @@ class _GrossPriceMixin:
__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')