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
1=== modified file 'sale/wizard/sale_make_invoice.py'
2--- sale/wizard/sale_make_invoice.py 2011-12-19 16:54:40 +0000
3+++ sale/wizard/sale_make_invoice.py 2011-12-26 08:47:27 +0000
4@@ -45,6 +45,7 @@
5 def make_invoices(self, cr, uid, ids, context=None):
6 order_obj = self.pool.get('sale.order')
7 mod_obj = self.pool.get('ir.model.data')
8+ act_obj = self.pool.get('ir.actions.act_window')
9 newinv = []
10 if context is None:
11 context = {}
12@@ -58,19 +59,12 @@
13 for i in o.invoice_ids:
14 newinv.append(i.id)
15
16- res = mod_obj.get_object_reference(cr, uid, 'account', 'view_account_invoice_filter')
17+ result = mod_obj.get_object_reference(cr, uid, 'account', 'action_invoice_tree1')
18+ id = result and result[1] or False
19+ result = act_obj.read(cr, uid, [id], context=context)[0]
20+ result['domain'] = "[('id','in', ["+','.join(map(str,newinv))+"])]"
21
22- return {
23- 'domain': "[('id','in', ["+','.join(map(str,newinv))+"])]",
24- 'name': 'Invoices',
25- 'view_type': 'form',
26- 'view_mode': 'tree,form',
27- 'res_model': 'account.invoice',
28- 'view_id': False,
29- 'context': "{'type': 'out_refund'}",
30- 'type': 'ir.actions.act_window',
31- 'search_view_id': res and res[1] or False
32- }
33+ return result
34
35 sale_make_invoice()
36

Subscribers

People subscribed via source and target branches

to all changes: