[FIX] pad: allow to create records with unknown fields

This commit is contained in:
Christophe Simonis
2018-01-26 12:44:18 +01:00
parent 222cadda41
commit ea879956b1
+1 -1
View File
@@ -113,7 +113,7 @@ class pad_common(osv.osv_memory):
# Set the pad content in vals
def _set_pad_value(self, cr, uid, vals, context=None):
for k,v in vals.items():
field = self._fields[k]
field = self._fields.get(k)
if hasattr(field,'pad_content_field'):
vals[field.pad_content_field] = self.pad_get_content(cr, uid, v, context=context)