Merge lp:~unifield-team/unifield-server/us-1267 into lp:unifield-server

Proposed by Quentin THEURET @Amaris
Status: Merged
Merged at revision: 3883
Proposed branch: lp:~unifield-team/unifield-server/us-1267
Merge into: lp:unifield-server
Diff against target: 18 lines (+2/-0)
1 file modified
bin/addons/delivery_mechanism/delivery_mechanism.py (+2/-0)
To merge this branch: bzr merge lp:~unifield-team/unifield-server/us-1267
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+296512@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/addons/delivery_mechanism/delivery_mechanism.py'
2--- bin/addons/delivery_mechanism/delivery_mechanism.py 2016-05-24 08:44:23 +0000
3+++ bin/addons/delivery_mechanism/delivery_mechanism.py 2016-06-06 06:52:40 +0000
4@@ -933,6 +933,7 @@
5 # Objects
6 inc_proc_obj = self.pool.get('stock.incoming.processor')
7 move_proc_obj = self.pool.get('stock.move.in.processor')
8+ proc_obj = self.pool.get('procurement.order')
9 loc_obj = self.pool.get('stock.location')
10 uom_obj = self.pool.get('product.uom')
11 move_obj = self.pool.get('stock.move')
12@@ -1188,6 +1189,7 @@
13 move_obj.write(cr, uid, [proc.move_id.id],
14 {'product_qty': diff_qty}, context=context)
15 else:
16+ proc_obj.write(cr, uid, [proc.id], {'move_id': move.id}, context=context)
17 # note: do not close move until a diff qty is applied above
18 move_obj.write(cr, uid, [proc.move_id.id], {'product_qty': 0.00, 'state': 'done'}, context=context)
19

Subscribers

People subscribed via source and target branches

to all changes: