From c197227fff84539cedf63e4b903045ec4ea16ba9 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Tue, 16 Nov 2010 14:48:15 +0530 Subject: [PATCH] [Fix] email_template: Fix the syntax error bzr revid: sbh@tinyerp.com-20101116091815-rarq13d9dabq0woz --- addons/email_template/email_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/email_template/email_template.py b/addons/email_template/email_template.py index 5db7538d952..763d11e277e 100644 --- a/addons/email_template/email_template.py +++ b/addons/email_template/email_template.py @@ -731,7 +731,7 @@ class email_template_preview(osv.osv_memory): ref_obj_id = self.pool.get('email.template').read(cr, uid, context['template_id'], ['object_name'], context) ref_obj_name = self.pool.get('ir.model').read(cr, uid, ref_obj_id['object_name'][0], ['model'], context)['model'] model_obj = self.pool.get(ref_obj_name) - ref_obj_ids = model_obj.search(cr, uid, [], 0, 20, 'id desc', context=context) + ref_obj_ids = model_obj.search(cr, uid, [], 0, 20, 'id', context=context) if not ref_obj_ids: ref_obj_ids = []