From 8ef837eb2578bf1a76b5bc84faae5d4149b3e22d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 20 Oct 2011 12:58:02 +0200 Subject: [PATCH] Ensure to always have the field name in the dictionary definition --- trytond/model/model.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/trytond/model/model.py b/trytond/model/model.py index 03953dae4a..67de426c88 100644 --- a/trytond/model/model.py +++ b/trytond/model/model.py @@ -502,7 +502,10 @@ class Model(WarningErrorMixin, URLMixin): self._columns.keys(), 'write', access=True) for field in (x for x in self._columns.keys() if ((not fields_names) or x in fields_names)): - res[field] = {'type': self._columns[field]._type} + res[field] = { + 'type': self._columns[field]._type, + 'name': field, + } for arg in ( 'string', 'readonly',