[FIX] account: remove partial fix for forcing right active_ids
authorDenis Ledoux <dle@openerp.com>
Wed, 30 Apr 2014 12:50:33 +0000 (14:50 +0200)
committerDenis Ledoux <dle@openerp.com>
Wed, 30 Apr 2014 12:50:33 +0000 (14:50 +0200)
This has been fixed in the web client 3991 revid:dle@openerp.com-20140430123818-zzdxmat4c5yg9gg7

bzr revid: dle@openerp.com-20140430125033-44vbf00spawm9mbg

addons/account/account_invoice.py

index f7e561c..c23f0c3 100644 (file)
@@ -409,9 +409,7 @@ class account_invoice(osv.osv):
         '''
         assert len(ids) == 1, 'This option should only be used for a single id at a time.'
         self.write(cr, uid, ids, {'sent': True}, context=context)
-        context2 = context.copy()
-        context2['active_ids'] = ids
-        return self.pool['report'].get_action(cr, uid, [], 'account.report_invoice', context=context2)
+        return self.pool['report'].get_action(cr, uid, [], 'account.report_invoice', context=context)
 
     def action_invoice_sent(self, cr, uid, ids, context=None):
         '''