Merge lp:~openerp-dev/openobject-addons/7.0-opw-597660-rha into lp:openobject-addons/7.0

Proposed by Rifakat Husen (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-opw-597660-rha
Merge into: lp:openobject-addons/7.0
Diff against target: 13 lines (+3/-0)
1 file modified
stock/stock.py (+3/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-597660-rha
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email: mp+187443@code.launchpad.net

Description of the change

Confirming any Incoming Reception does not mark it's Stock Movements as Available. Currently Stock Movements are marked as Waiting Availability.

If we are receiving several goods from a supplier then in that case, confirming a Reception does currently marks Moves as Waiting Availability. As a result, a user has to manually open all the Stock Moves and mark them available but in earlier versions, there was a `Check Availability` button which used to set all stock moves as Available but we have removed that button from 7.0. This is time consuming and instead should be done automatically.

Fix: I have added procedure of button `Check Availability` in operation of confirming Reception. So as soon as you confirm any Reception/Shipment, Moves will be available.

To post a comment you must log in.

Unmerged revisions

9454. By Rifakat Husen (OpenERP)

[FIX] stock: confirming shipment should automatically mark all lines Available

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/stock.py'
2--- stock/stock.py 2013-09-20 11:24:37 +0000
3+++ stock/stock.py 2013-09-25 05:35:22 +0000
4@@ -2115,6 +2115,9 @@
5 moves = self.browse(cr, uid, ids, context=context)
6 self.write(cr, uid, ids, {'state': 'confirmed'})
7 self.create_chained_picking(cr, uid, moves, context)
8+ to_assign_moves = [move.id for move in moves if move.type == 'in']
9+ if to_assign_moves:
10+ self.action_assign(cr, uid, to_assign_moves)
11 return []
12
13 def action_assign(self, cr, uid, ids, *args):