[MERGE] mrp_repair: fixing the bug of operation type onchange, as of revision 8290, in a correct way

bzr revid: qdp-launchpad@openerp.com-20121213095304-1td16oqz66lnj08g
This commit is contained in:
Quentin (OpenERP)
2012-12-13 10:53:04 +01:00
parent e74f5cb05c
commit 02ebe3312b
+3 -1
View File
@@ -748,11 +748,13 @@ class mrp_repair_line(osv.osv, ProductChangeMixin):
'location_id': stock_id,
'location_dest_id': location_id
}}
obj_data = self.pool.get('ir.model.data')
dummy, scrapped_location_id = obj_data.get_object_reference(cr, uid, 'stock', 'stock_location_scrapped')
return {'value': {
'to_invoice': False,
'location_id': location_id,
'location_dest_id': False
'location_dest_id': scrapped_location_id,
}}
mrp_repair_line()