details: https://code.tryton.org/tryton/commit/cc6914a97aad
branch: default
user: Cédric Krier <[email protected]>
date: Sat Sep 19 15:39:08 2026 +0200
description:
Make customs boolean on product category not editable when in a tree
diffstat:
modules/customs/product.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 4329c94e8d69 -r cc6914a97aad modules/customs/product.py
--- a/modules/customs/product.py Sat Sep 19 15:36:05 2026 +0200
+++ b/modules/customs/product.py Sat Sep 19 15:39:08 2026 +0200
@@ -12,7 +12,7 @@
customs = fields.Boolean(
"Customs",
states={
- 'readonly': Bool(Eval('childs', [0])) | Bool(Eval('parent')),
+ 'editable': Bool(Eval('childs', [0])) | Bool(Eval('parent')),
})
tariff_codes_parent = fields.Boolean("Use Parent's Tariff Codes",
states={