ps_form: fix order of lines in create()
Found by pyflakes check: we need to define 'pool' first, and then call it! (cherry picked from commit 68c241ed3adce7737465577da70f1ff76ebdeb39) bzr revid: xrg@linux.gr-20110617151807-dfjyo4460hrrg7jy
This commit is contained in:
committed by
P. Christeas
parent
bcdae4b5c0
commit
2a6211e0a6
@@ -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