Merge lp:~openerp-dev/openobject-addons/trunk-bug-908057-mdi into lp:openobject-addons

Proposed by DJ Patel (OpenERP)
Status: Merged
Merged at revision: 6187
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-908057-mdi
Merge into: lp:openobject-addons
Diff against target: 35 lines (+6/-12)
1 file modified
sale/wizard/sale_make_invoice.py (+6/-12)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-908057-mdi
Reviewer Review Type Date Requested Status
Purnendu Singh (OpenERP) (community) Approve
qdp (OpenERP) Pending
Review via email: mp+86883@code.launchpad.net

Description of the change

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)

To post a comment you must log in.
Revision history for this message
Purnendu Singh (OpenERP) (purnendu-singh) wrote :

seems ok!!!

review: Approve
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

thanks for the good fix.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== 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 @@
45 def make_invoices(self, cr, uid, ids, context=None):45 def make_invoices(self, cr, uid, ids, context=None):
46 order_obj = self.pool.get('sale.order')46 order_obj = self.pool.get('sale.order')
47 mod_obj = self.pool.get('ir.model.data')47 mod_obj = self.pool.get('ir.model.data')
48 act_obj = self.pool.get('ir.actions.act_window')
48 newinv = []49 newinv = []
49 if context is None:50 if context is None:
50 context = {}51 context = {}
@@ -58,19 +59,12 @@
58 for i in o.invoice_ids:59 for i in o.invoice_ids:
59 newinv.append(i.id)60 newinv.append(i.id)
6061
61 res = mod_obj.get_object_reference(cr, uid, 'account', 'view_account_invoice_filter')62 result = mod_obj.get_object_reference(cr, uid, 'account', 'action_invoice_tree1')
63 id = result and result[1] or False
64 result = act_obj.read(cr, uid, [id], context=context)[0]
65 result['domain'] = "[('id','in', ["+','.join(map(str,newinv))+"])]"
6266
63 return {67 return result
64 'domain': "[('id','in', ["+','.join(map(str,newinv))+"])]",
65 'name': 'Invoices',
66 'view_type': 'form',
67 'view_mode': 'tree,form',
68 'res_model': 'account.invoice',
69 'view_id': False,
70 'context': "{'type': 'out_refund'}",
71 'type': 'ir.actions.act_window',
72 'search_view_id': res and res[1] or False
73 }
7468
75sale_make_invoice()69sale_make_invoice()
7670

Subscribers

People subscribed via source and target branches

to all changes: