Amit Bhavsar (Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-963750-amb into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
  Amit Parik (OpenERP) (amp-openerp)
Related bugs:
  Bug #963750 in OpenERP Addons: "[trunk] scrap in incoming shipment, source 
location wrong"
  https://bugs.launchpad.net/openobject-addons/+bug/963750

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-963750-amb/+merge/99497

Hello,

Fixes the location problem, action_scrap need to use supplier location as a 
source location currently it takes the Stock location which is wrong because it 
affects to real stock also.

This fix will solve the problem and takes the supplier location as a source 
location

Thanks
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-963750-amb/+merge/99497
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-963750-amb.
=== modified file 'stock/stock.py'
--- stock/stock.py	2012-08-29 09:48:28 +0000
+++ stock/stock.py	2012-09-03 05:38:21 +0000
@@ -2409,7 +2409,7 @@
                 'prodlot_id': move.prodlot_id.id,
             }
             if move.location_id.usage <> 'internal':
-                default_val.update({'location_id': move.location_dest_id.id})
+                default_val.update({'location_id': move.location_id.id})
             new_move = self.copy(cr, uid, move.id, default_val)
 
             res += [new_move]

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to