Rifakat (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-890476-rha into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #890476 in OpenERP Addons: "Picking List & Delivery Order "internal move"
or "outgoing move" ?"
https://bugs.launchpad.net/openobject-addons/+bug/890476
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-890476-rha/+merge/127256
Hello,
I have fixed issue for the type of an internal picking. When we have two picking
associated(chaining), it shows Internal picking type as "Outgoing" instead of
"Internal".
Steps to re-produce:
1. Install Sale module
2. Change location "Output" configuration, Chaining Type as Automatic Move
3. Create a sales order with one product(take any product) and validate it
4. Two pickings will be generated containing 1 stock move each,
* INT Picking: Stock -> Output(this shows type as Outgoing, instead of
Internal)
* OUT picking: Output -> Customer
Thanks for your review.
Regards,
Rifakat
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-890476-rha/+merge/127256
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-890476-rha.
=== modified file 'stock/stock.py'
--- stock/stock.py 2012-09-30 19:47:08 +0000
+++ stock/stock.py 2012-10-01 12:15:40 +0000
@@ -2125,7 +2125,7 @@
old_ptype = location_obj.picking_type_get(cr, uid, picking.move_lines[0].location_id, picking.move_lines[0].location_dest_id)
if old_ptype != picking.type:
old_pick_name = seq_obj.get(cr, uid, 'stock.picking.' + old_ptype)
- self.pool.get('stock.picking').write(cr, uid, [picking.id], {'name': old_pick_name}, context=context)
+ self.pool.get('stock.picking').write(cr, uid, [picking.id], {'name': old_pick_name, 'type': old_ptype}, context=context)
else:
pickid = False
for move, (loc, dummy, delay, dummy, company_id, ptype) in todo:
_______________________________________________
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