From 058000852aa43c9df5cb6b7bbc121aebbeb36ca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 20 May 2009 14:04:11 +0200 Subject: [PATCH] Don't use value to create inherits model if the field is overridden in model Like that we have the same behavior then write --- trytond/model/modelsql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/model/modelsql.py b/trytond/model/modelsql.py index e936d2a6d3..253848e6f9 100644 --- a/trytond/model/modelsql.py +++ b/trytond/model/modelsql.py @@ -270,7 +270,7 @@ class ModelSQL(ModelStorage): for i in values.keys(): if i in self._inherit_fields: (inherits, col, col_detail) = self._inherit_fields[i] - if i in self._columns and isinstance(col_detail, fields.Function): + if i in self._columns: continue if inherits in tocreate: tocreate[inherits][i] = values[i]