From 9350bcc1c65ccc0f39b396859eda61c618d1d81e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 19 Sep 2026 15:39:08 +0200 Subject: [PATCH] Make customs boolean on product category not editable when in a tree --- modules/customs/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/customs/product.py b/modules/customs/product.py index 74788af3fe..916ad45bcf 100644 --- a/modules/customs/product.py +++ b/modules/customs/product.py @@ -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={