Merge lp:~openerp-dev/openobject-addons/trunk-bug-1116004-dharmang into lp:openobject-addons

Proposed by Dharmang Soni (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1116004-dharmang
Merge into: lp:openobject-addons
Diff against target: 22 lines (+5/-0)
1 file modified
stock/wizard/stock_partial_move.py (+5/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1116004-dharmang
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+151420@code.launchpad.net

This proposal supersedes a proposal from 2013-02-22.

Description of the change

Deliver/Receive products gives a error (When incomming product shipment is done and trying to Deliver/Receive Products it cause error.)

To post a comment you must log in.

Unmerged revisions

8565. By Dharmang Soni (OpenERP)

[FIX] stock : Deliver/Receive products gives a error (When incomming product shipment is done and trying to Deliver/Recive Products it cause error.)

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-12-06 15:13:16 +0000
3+++ stock/wizard/stock_partial_move.py 2013-03-04 06:46:25 +0000
4@@ -21,6 +21,7 @@
5
6 from openerp.osv import fields, osv
7 from openerp.tools.misc import DEFAULT_SERVER_DATETIME_FORMAT
8+from openerp.tools.translate import _
9 import time
10
11 class stock_partial_move_line(osv.osv_memory):
12@@ -65,6 +66,10 @@
13 partial_data = {
14 'delivery_date' : partial.date
15 }
16+ active_id = context.get("active_id",[])
17+ stock_move = self.pool.get("stock.move").browse(cr, uid, active_id, context=context)
18+ if stock_move.state == "done":
19+ raise osv.except_osv(_('Warning!'),_('Shipment was already processed. Unable to perform operation.'))
20 moves_ids = []
21 for move in partial.move_ids:
22 move_id = move.move_id.id

Subscribers

People subscribed via source and target branches

to all changes: