Amit Dodiya (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-opw-574230-ado into 
lp:openobject-addons/6.0.

Requested reviews:
  Xavier ALT (OpenERP) (xal-openerp)
  Naresh(OpenERP) (nch-openerp)
Related bugs:
  Bug #981380 in OpenERP Addons: "[6.0] wrong location in 'split lots' (MO)"
  https://bugs.launchpad.net/openobject-addons/+bug/981380

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-574230-ado/+merge/105201

Hello,

"[FIX] wrong quantity in production lot due to wrong location from split lot 
wizard"

steps to reproduce:

- create MO with external production location (through routing)
- open picking list OUT, select an existing lot, process move 
'Stock'-->'external location'
- open move line in 'products to consume'

- use magnifying glass for production lot
--> qty available = qty you moved through OUT to external location

- use action 'Split Lots' and enable 'existing lots
- use magnifying glass for production lot
--> qty available = qty in 'Stock'

Regards,
Amit

-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-574230-ado/+merge/105201
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-574230-ado.
=== modified file 'stock/wizard/stock_move_view.xml'
--- stock/wizard/stock_move_view.xml	2011-06-16 07:35:51 +0000
+++ stock/wizard/stock_move_view.xml	2012-05-09 13:04:23 +0000
@@ -135,11 +135,11 @@
                   <group colspan="4" attrs="{'invisible':[('use_exist','!=',True)]}">
                         <field name="line_exist_ids" colspan="4" nolabel="1">
                             <tree string="Production Lot Numbers" editable="bottom">
-                                <field name="prodlot_id" string="Lot number" domain="[('product_id','=',parent.product_id)]" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)"/>
+                                <field name="prodlot_id" context="{'location_id': parent.location_id}"  string="Lot number" domain="[('product_id','=',parent.product_id)]" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)"/>
                                 <field name="quantity" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)" />
                             </tree>
                             <form string="Production Lot Number">
-                                <field name="prodlot_id" string="Lot number" domain="[('product_id','=',parent.product_id)]" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)"/>
+                                <field name="prodlot_id" context="{'location_id': parent.location_id}"  string="Lot number" domain="[('product_id','=',parent.product_id)]" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)"/>
                                 <field name="quantity" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)" />
                             </form>
                         </field>

_______________________________________________
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