From 436c5023d7792b3babf9c9d5160a8bfef11203dc Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Fri, 6 Aug 2021 09:19:47 +0000 Subject: [PATCH] [IMP] odoo: models: add field name in field descr The fields dict maps field names to their description. Before this commit, the field name wasn't specified in the description, meaning that we could never manipulate the field description without its key, which would often be convenient. closes odoo/odoo#75121 Signed-off-by: Raphael Collet (rco) --- odoo/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/odoo/models.py b/odoo/models.py index e906f5865a3..7a42e9a8754 100644 --- a/odoo/models.py +++ b/odoo/models.py @@ -3079,6 +3079,7 @@ class BaseModel(metaclass=MetaModel): continue description = field.get_description(self.env) + description['name'] = fname if readonly: description['readonly'] = True description['states'] = {}