From f03e84da210a3e75290bea18421bc18f7bd3b194 Mon Sep 17 00:00:00 2001 From: "Chong Wang (cwg)" Date: Mon, 20 Mar 2023 12:41:17 +0000 Subject: [PATCH] [FIX] core: allow translated sized char fields in the commit 763fbb1c of #101115 an assert is added for translated sized char fields It is too strict for some legacy customized fields, we decide to remove it closes odoo/odoo#116538 X-original-commit: 44f09e927d0f9338a42a3f121377db00cc70f714 Signed-off-by: Raphael Collet Signed-off-by: Wang Chong (cwg) --- odoo/fields.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/odoo/fields.py b/odoo/fields.py index 753145b5de3..af0efad3b45 100644 --- a/odoo/fields.py +++ b/odoo/fields.py @@ -1847,8 +1847,6 @@ class Char(_String): super()._setup_attrs(model_class, name) assert self.size is None or isinstance(self.size, int), \ "Char field %s with non-integer size %r" % (self, self.size) - assert not(self.translate and self.size), \ - "Translated field %s cannot have size %r" % (self, self.size) @property def column_type(self):