[IMP] performance improvement in MRP

bzr revid: fp@tinyerp.com-20120929133917-x6dlgou1te98962z
This commit is contained in:
Fabien Pinckaers
2012-09-29 15:39:17 +02:00
+1 -1
View File
@@ -672,7 +672,7 @@ class mrp_production(osv.osv):
for (production_id,name) in self.name_get(cr, uid, ids):
production = self.browse(cr, uid, production_id)
if production.move_prod_id:
if production.move_prod_id and production.move_prod_id.location_id.id != production.location_dest_id.id:
move_obj.write(cr, uid, [production.move_prod_id.id],
{'location_id': production.location_dest_id.id})
self.action_ready_send_note(cr, uid, [production_id], context)