[MERGE] Merged Panos' branch for the fix of the problem found by pyflakes
bzr revid: jvo@tinyerp.com-20110623113520-kd1ji63mlg69ur3d
This commit is contained in:
@@ -54,15 +54,15 @@ class report_printscreen_list(report_int):
|
||||
if not context:
|
||||
context={}
|
||||
datas['ids'] = ids
|
||||
model = pool.get(datas['model'])
|
||||
pool = pooler.get_pool(cr.dbname)
|
||||
model = pool.get(datas['model'])
|
||||
# title come from description of model which are specified in py file.
|
||||
self.title = model._description
|
||||
result = model.fields_view_get(cr, uid, view_type='form', context=context)
|
||||
|
||||
fields_order = self._parse_string(result['arch'])
|
||||
rows = model.read(cr, uid, datas['ids'], result['fields'].keys() )
|
||||
res = self._create_table(uid, datas['ids'], result['fields'], fields_order, rows, context, model._description)
|
||||
self._create_table(uid, datas['ids'], result['fields'], fields_order, rows, context, model._description)
|
||||
return (self.obj.get(), 'pdf')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user