Dhruti Shastri has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-opw-576328-dhs into 
lp:openobject-addons/6.0.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-576328-dhs/+merge/112531

To do this,

- Make a PO with two Basic PC (example PO001) 
- Confirm the PO
- Go to Warehouse\Product Moves\Receive Products
- Click on Partial
- In this pop up, change the quantity from 2 to 5.
- Click on receive

You can see that the field quantity is on read only with the quantity = 2 and 
not 5.
So you lose all the change you did in the pop up.

It should not allow you to process more then available Quantity.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-576328-dhs/+merge/112531
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-576328-dhs.
=== modified file 'stock/wizard/stock_partial_move.py'
--- stock/wizard/stock_partial_move.py	2012-02-21 15:24:32 +0000
+++ stock/wizard/stock_partial_move.py	2012-06-28 10:12:20 +0000
@@ -210,6 +210,10 @@
                 continue
             if not p_moves.get(move.id):
                 continue
+            if move.product_qty < p_moves[move.id].quantity :
+                raise osv.except_osv(_('Processing Error'), _('Processing quantity %s is larger than the available quantity %s!')\
+                                     %(p_moves[move.id].quantity, move.product_qty))
+
             partial_datas['move%s' % (move.id)] = {
                 'product_id' : p_moves[move.id].product_id.id,
                 'product_qty' : p_moves[move.id].quantity,

_______________________________________________
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