Merge lp:~openerp-dev/openobject-addons/6.0-opw-576328-dhs into lp:openobject-addons/6.0

Proposed by Dhruti Shastri(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.0-opw-576328-dhs
Merge into: lp:openobject-addons/6.0
Diff against target: 14 lines (+4/-0)
1 file modified
stock/wizard/stock_partial_move.py (+4/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.0-opw-576328-dhs
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email: mp+112531@code.launchpad.net

Description of the change

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.

To post a comment you must log in.

Unmerged revisions

5275. By Dhruti Shastri(OpenERP)

[stock] : Receive too many product doesn't raise Warning (Case:576328)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/wizard/stock_partial_move.py'
2--- stock/wizard/stock_partial_move.py 2012-02-21 15:24:32 +0000
3+++ stock/wizard/stock_partial_move.py 2012-06-28 10:12:20 +0000
4@@ -210,6 +210,10 @@
5 continue
6 if not p_moves.get(move.id):
7 continue
8+ if move.product_qty < p_moves[move.id].quantity :
9+ raise osv.except_osv(_('Processing Error'), _('Processing quantity %s is larger than the available quantity %s!')\
10+ %(p_moves[move.id].quantity, move.product_qty))
11+
12 partial_datas['move%s' % (move.id)] = {
13 'product_id' : p_moves[move.id].product_id.id,
14 'product_qty' : p_moves[move.id].quantity,