Don't call fields_get in view_tree use the one that comes from fields_view_get

This commit is contained in:
Cédric Krier committed 2008-06-26 11:21:13 +02:00
1 parent 06d3f33144
commit 90a5a654b1
1 file changed
+1 -6
+1 -6
View File
@@ -320,12 +320,7 @@ class ViewTree(object):
self.context.update(rpc.CONTEXT)
if context:
self.context.update(context)
try:
self.fields = rpc.execute('object', 'execute',
view_info['model'], 'fields_get', False, self.context)
except Exception, exception:
common.process_exception(exception, self.window)
raise
self.fields = view_info['fields']
parse = Parse(self.fields)
parse.parse(view_info['arch'], self.view)
self.toolbar = parse.toolbar