Mayur Maheshwari(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-opw-577446-port-mma into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-577446-port-mma/+merge/134899

Hello,

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 prodctlot 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.

Code is forward port from 6.1

Thanks,
Mayur
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-577446-port-mma/+merge/134899
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-opw-577446-port-mma.
=== modified file 'stock/wizard/stock_partial_picking_view.xml'
--- stock/wizard/stock_partial_picking_view.xml	2012-11-07 11:33:16 +0000
+++ stock/wizard/stock_partial_picking_view.xml	2012-11-19 13:19:21 +0000
@@ -23,7 +23,7 @@
                             <field name="quantity" />
                             <field name="product_uom" groups="product.group_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)]}" groups="stock.group_production_lot"/>
+                            <field name="prodlot_id" domain="[('product_id', '=', product_id)]" invisible="context.get('hide_tracking',False)" attrs="{'required':[('tracking','=',True), ('quantity', '!=', 0)]}" groups="stock.group_production_lot"/>
                             <!-- 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     : openerp-dev-gtk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to