Make customs boolean on product category not editable when in a tree

This commit is contained in:
Cédric Krier
2026-09-19 15:39:08 +02:00
parent c25042df09
commit 9350bcc1c6
+1 -1
View File
@@ -12,7 +12,7 @@ class Category(metaclass=PoolMeta):
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={