Merge lp:~openerp-dev/openobject-addons/6.0-opw-574230-ado into lp:openobject-addons/6.0

Proposed by Amit Dodiya (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.0-opw-574230-ado
Merge into: lp:openobject-addons/6.0
Diff against target: 17 lines (+2/-2)
1 file modified
stock/wizard/stock_move_view.xml (+2/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.0-opw-574230-ado
Reviewer Review Type Date Requested Status
Xavier ALT Pending
Naresh(OpenERP) Pending
Review via email: mp+105201@code.launchpad.net

Description of the change

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

To post a comment you must log in.

Unmerged revisions

5222. By Amit Dodiya<email address hidden>

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/wizard/stock_move_view.xml'
2--- stock/wizard/stock_move_view.xml 2011-06-16 07:35:51 +0000
3+++ stock/wizard/stock_move_view.xml 2012-05-09 13:04:23 +0000
4@@ -135,11 +135,11 @@
5 <group colspan="4" attrs="{'invisible':[('use_exist','!=',True)]}">
6 <field name="line_exist_ids" colspan="4" nolabel="1">
7 <tree string="Production Lot Numbers" editable="bottom">
8- <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)"/>
9+ <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)"/>
10 <field name="quantity" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)" />
11 </tree>
12 <form string="Production Lot Number">
13- <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)"/>
14+ <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)"/>
15 <field name="quantity" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)" />
16 </form>
17 </field>