[FIX] Hr_timesheet_invoice : Wrong domain was sent for opening invoices created

lp bug: https://launchpad.net/bugs/450180 fixed

bzr revid: jvo@tinyerp.com-20091015145125-98o562uxoafp7m3t
This commit is contained in:
Jay (Open ERP) 2009-10-15 20:21:25 +05:30
parent 32d9623c38
commit df9f5fb23c
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ class invoice_create(wizard.interface):
mod_id = mod_obj.search(cr, uid, [('name', '=', 'action_invoice_tree1')])[0]
res_id = mod_obj.read(cr, uid, mod_id, ['res_id'])['res_id']
act_win = act_obj.read(cr, uid, res_id, [])
act_win['domain'] = [('id','in',[(','.join(map(str,invoices)))]),('type','=','out_invoice')]
act_win['domain'] = [('id','in',invoices),('type','=','out_invoice')]
act_win['name'] = _('Invoices')
return act_win