Merge lp:~openerp-dev/openobject-addons/6.1-opw-578473-han into lp:openobject-addons/6.1

Proposed by Hardik Ansodariya (OpenERP)
Status: Approved
Approved by: Naresh(OpenERP)
Approved revision: 6967
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-578473-han
Merge into: lp:openobject-addons/6.1
Diff against target: 41 lines (+8/-2)
2 files modified
mrp_repair/mrp_repair_view.xml (+1/-1)
mrp_repair/wizard/make_invoice.py (+7/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-578473-han
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Approve
Review via email: mp+122514@code.launchpad.net

Description of the change

Hello,

Fixed the issue of wrong invoice view from mrp_repair.

With reference of Maintenance case: 578473

Kindly review it.

Thanks,

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) :
review: Approve
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

This bug was qualified as Confirmed on Trunk (means still existing and reproducible). A Merge Proposal for trunk was created to fix it. Here is the link to follow the MP on Launchpad https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-578473-port-mma/+merge/135108 and be informed once it's been merged in trunk: ... If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.

Thanks,
Naresh Soni

Unmerged revisions

6967. By Hardik Ansodariya (OpenERP)

[FIX] mrp_repair: Wrong view open when generate invoice from mrp_repair (Maintanace case:578473)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'mrp_repair/mrp_repair_view.xml'
--- mrp_repair/mrp_repair_view.xml 2011-12-13 07:28:24 +0000
+++ mrp_repair/mrp_repair_view.xml 2012-09-03 13:27:20 +0000
@@ -158,7 +158,7 @@
158 </field>158 </field>
159 </page>159 </page>
160 <page string="Extra Info" groups="base.group_extended">160 <page string="Extra Info" groups="base.group_extended">
161 <field name="invoice_id"/>161 <field name="invoice_id" context="{'form_view_ref': 'account.invoice_form'}"/>
162 <field name="picking_id"/>162 <field name="picking_id"/>
163 <field name="location_id"/>163 <field name="location_id"/>
164 <field name="location_dest_id" attrs="{'readonly':[('deliver_bool','=', False)], 'required':[('deliver_bool','=', True)]}"/>164 <field name="location_dest_id" attrs="{'readonly':[('deliver_bool','=', False)], 'required':[('deliver_bool','=', True)]}"/>
165165
=== modified file 'mrp_repair/wizard/make_invoice.py'
--- mrp_repair/wizard/make_invoice.py 2012-01-31 13:36:57 +0000
+++ mrp_repair/wizard/make_invoice.py 2012-09-03 13:27:20 +0000
@@ -53,6 +53,12 @@
53 for repair_id in context['active_ids']:53 for repair_id in context['active_ids']:
54 wf_service.trg_validate(uid, 'mrp.repair', repair_id, 'action_invoice_create', cr)54 wf_service.trg_validate(uid, 'mrp.repair', repair_id, 'action_invoice_create', cr)
5555
56 mod_obj = self.pool.get('ir.model.data')
57 form_res = mod_obj.get_object_reference(cr, uid, 'account', 'invoice_form')
58 form_id = form_res and form_res[1] or False
59 tree_res = mod_obj.get_object_reference(cr, uid, 'account', 'invoice_tree')
60 tree_id = tree_res and tree_res[1] or False
61
56 return {62 return {
57 'domain': [('id','in', newinv.values())],63 'domain': [('id','in', newinv.values())],
58 'name': 'Invoices',64 'name': 'Invoices',
@@ -60,10 +66,10 @@
60 'view_mode': 'tree,form',66 'view_mode': 'tree,form',
61 'res_model': 'account.invoice',67 'res_model': 'account.invoice',
62 'view_id': False,68 'view_id': False,
69 'views': [(tree_id, 'tree'),(form_id, 'form')],
63 'context': "{'type':'out_invoice'}",70 'context': "{'type':'out_invoice'}",
64 'type': 'ir.actions.act_window'71 'type': 'ir.actions.act_window'
65 }72 }
66
67make_invoice()73make_invoice()
6874
69# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:75# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: