From 49f107c62855dc2419a1d3f82029ff02f3354438 Mon Sep 17 00:00:00 2001 From: "saz(openerp)" <> Date: Tue, 31 Aug 2010 16:30:46 +0530 Subject: [PATCH] [iMP]:base:print screen report bzr revid: apa@tinyerp.com-20100831110046-h0z46hjccqh4x35a --- bin/report/printscreen/ps_form.py | 4 ++-- bin/report/printscreen/ps_list.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/report/printscreen/ps_form.py b/bin/report/printscreen/ps_form.py index 2ee22ebcaf9..312d5480a93 100644 --- a/bin/report/printscreen/ps_form.py +++ b/bin/report/printscreen/ps_form.py @@ -55,9 +55,9 @@ class report_printscreen_list(report_int): context={} datas['ids'] = ids pool = pooler.get_pool(cr.dbname) - model_id = pool.get('ir.model').search(cr, uid, [('model','=',model._name)]) + model_id = pool.get('ir.model').search(cr, uid, [('model','=',model._description)]) if model_id: - model_desc = pool.get('ir.model').browse(cr, uid, model_id, context).name + model_desc = pool.get('ir.model').browse(cr, uid, model_id, context).description self.title = model_desc else: model_desc = model._description diff --git a/bin/report/printscreen/ps_list.py b/bin/report/printscreen/ps_list.py index de54ef83c57..9525e0dd19d 100644 --- a/bin/report/printscreen/ps_list.py +++ b/bin/report/printscreen/ps_list.py @@ -65,9 +65,9 @@ class report_printscreen_list(report_int): self.groupby_no_leaf = context.get('group_by_no_leaf',False) pool = pooler.get_pool(cr.dbname) model = pool.get(datas['model']) - model_id = pool.get('ir.model').search(cr, uid, [('model','=',model._name)]) + model_id = pool.get('ir.model').search(cr, uid, [('model','=',model._description)]) if model_id: - model_desc = pool.get('ir.model').browse(cr, uid, model_id[0], context).name + model_desc = pool.get('ir.model').browse(cr, uid, model_id[0], context).description self.title = model_desc else: model_desc = model._description