Fix creation of export_fields

issue3219
review874002
(transplanted from 339eb0e9bf5d648ec482a0804198c947fa61749c)
This commit is contained in:
Cédric Krier committed 2013-05-17 10:03:25 +02:00
1 parent 9c15038345
commit c7ccb4e8a2
1 file changed
+3 -3
+3 -3
View File
@@ -316,9 +316,9 @@ class WinExport(NoModal):
new_id, = RPCExecute('model', 'ir.export', 'create', [{
'name': name,
'resource': self.model,
'export_fields': ('create', [{
'name': x,
} for x in fields]),
'export_fields': [('create', [{
'name': x,
} for x in fields])],
}])
except RPCException:
return