[FIX] base: python3 compatible code (from forward-port)

This commit is contained in:
Christophe Simonis
2018-01-12 18:26:04 +01:00
parent b42b9c936b
commit 3b80a059ff
+1 -2
View File
@@ -444,12 +444,11 @@ class IrActionsServer(models.Model):
if self._context.get('onchange_self'):
record_cached = self._context['onchange_self']
for field, new_value in res.iteritems():
for field, new_value in res.items():
record_cached[field] = new_value
else:
self.env[action.model_id.model].browse(self._context.get('active_id')).write(res)
@api.model
def run_action_object_create(self, action, eval_context=None):
""" Create and Copy server action.