[Fix] email_template: Fix the syntax error

bzr revid: sbh@tinyerp.com-20101116091815-rarq13d9dabq0woz
This commit is contained in:
sbh (Open ERP) 2010-11-16 14:48:15 +05:30
parent 1edeaa9fd7
commit c197227fff
1 changed files with 1 additions and 1 deletions

View File

@ -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 = []