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

Requested reviews:
  Naresh(OpenERP) (nch-openerp)
Related bugs:
  Bug #1030880 in OpenERP Addons: "Partial picking with tracking fails"
  https://bugs.launchpad.net/openobject-addons/+bug/1030880

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-577446-ado/+merge/117429

Steps:
1. Active the "Track outgoing lots" on the products CPU1 and CPU2.
2. Create a new sale order with 2 sale order line : 1 x CPU1 and 1 x CPU2
3. Validate the sale order and Go to the corresponding delivery order you will 
see 2 move lines, one with CPU1 and the other with CPU2.
4. Enter a prodlot for the move line of CPU1 and click on "Force availability", 
then click on "Process"
5. In partial picking wizard set the Quantity to 0 for CPU2
6. Click on the "Validate" button of wizard

Result : You get an warning message "Correct red fields ! Product Moves - 
Production Lot"

OpenERP wizard refuse to Validate the partial picking because he requires to 
have a prodlot for CPU2 although this line has a quantity of 0.

Regards,
Amit Dodiya
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-577446-ado/+merge/117429
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-577446-ado.
=== modified file 'stock/wizard/stock_partial_picking_view.xml'
--- stock/wizard/stock_partial_picking_view.xml	2011-12-30 11:06:04 +0000
+++ stock/wizard/stock_partial_picking_view.xml	2012-07-31 13:02:36 +0000
@@ -23,7 +23,7 @@
                             <field name="quantity" />
                             <field name="product_uom" />
                             <field name="tracking" invisible="1"/>
-                            <field name="prodlot_id" domain="[('product_id', '=', product_id)]" invisible="context.get('hide_tracking',False)" attrs="{'required':[('tracking','=',True)]}"/>
+                            <field name="prodlot_id" domain="[('product_id', '=', product_id)]" invisible="context.get('hide_tracking',False)" attrs="{'required':[('tracking','=',True),('quantity', '!=', 0)]}"/>
                             <!-- Removed as this feature is not logic: price must be updated upon reception of invoice -->
                             <field name="update_cost" invisible="1"/>
                             <field name="cost"  invisible="1"/>

_______________________________________________
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