Divyesh Makwana(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-908057-mdi into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #908057 in OpenERP Addons: "[trunk]sale:Group the invoices wizard open 
wrong view"
  https://bugs.launchpad.net/openobject-addons/+bug/908057

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-908057-mdi/+merge/86883

Hello Sir,

I have fix the issue: https://bugs.launchpad.net/openobject-addons/+bug/908057 
"sale:Group the invoices wizard open wrong view".

Thanks and Regards,

Divyesh Makwana(MDI)
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-908057-mdi/+merge/86883
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-908057-mdi.
=== modified file 'sale/wizard/sale_make_invoice.py'
--- sale/wizard/sale_make_invoice.py	2011-12-19 16:54:40 +0000
+++ sale/wizard/sale_make_invoice.py	2011-12-26 08:47:27 +0000
@@ -45,6 +45,7 @@
     def make_invoices(self, cr, uid, ids, context=None):
         order_obj = self.pool.get('sale.order')
         mod_obj = self.pool.get('ir.model.data')
+        act_obj = self.pool.get('ir.actions.act_window')
         newinv = []
         if context is None:
             context = {}
@@ -58,19 +59,12 @@
             for i in o.invoice_ids:
                 newinv.append(i.id)
 
-        res = mod_obj.get_object_reference(cr, uid, 'account', 'view_account_invoice_filter')
+        result = mod_obj.get_object_reference(cr, uid, 'account', 'action_invoice_tree1')
+        id = result and result[1] or False
+        result = act_obj.read(cr, uid, [id], context=context)[0]
+        result['domain'] = "[('id','in', ["+','.join(map(str,newinv))+"])]"
 
-        return {
-            'domain': "[('id','in', ["+','.join(map(str,newinv))+"])]",
-            'name': 'Invoices',
-            'view_type': 'form',
-            'view_mode': 'tree,form',
-            'res_model': 'account.invoice',
-            'view_id': False,
-            'context': "{'type': 'out_refund'}",
-            'type': 'ir.actions.act_window',
-            'search_view_id': res and res[1] or False
-        }
+        return result
 
 sale_make_invoice()
 

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to