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
=== modified file 'bin/addons/delivery_mechanism/delivery_mechanism.py'
--- bin/addons/delivery_mechanism/delivery_mechanism.py 2016-05-24 08:44:23 +0000
+++ bin/addons/delivery_mechanism/delivery_mechanism.py 2016-06-06 06:52:40 +0000
@@ -933,6 +933,7 @@
933 # Objects933 # Objects
934 inc_proc_obj = self.pool.get('stock.incoming.processor')934 inc_proc_obj = self.pool.get('stock.incoming.processor')
935 move_proc_obj = self.pool.get('stock.move.in.processor')935 move_proc_obj = self.pool.get('stock.move.in.processor')
936 proc_obj = self.pool.get('procurement.order')
936 loc_obj = self.pool.get('stock.location')937 loc_obj = self.pool.get('stock.location')
937 uom_obj = self.pool.get('product.uom')938 uom_obj = self.pool.get('product.uom')
938 move_obj = self.pool.get('stock.move')939 move_obj = self.pool.get('stock.move')
@@ -1188,6 +1189,7 @@
1188 move_obj.write(cr, uid, [proc.move_id.id],1189 move_obj.write(cr, uid, [proc.move_id.id],
1189 {'product_qty': diff_qty}, context=context)1190 {'product_qty': diff_qty}, context=context)
1190 else:1191 else:
1192 proc_obj.write(cr, uid, [proc.id], {'move_id': move.id}, context=context)
1191 # note: do not close move until a diff qty is applied above1193 # note: do not close move until a diff qty is applied above
1192 move_obj.write(cr, uid, [proc.move_id.id], {'product_qty': 0.00, 'state': 'done'}, context=context)1194 move_obj.write(cr, uid, [proc.move_id.id], {'product_qty': 0.00, 'state': 'done'}, context=context)
11931195

Subscribers

People subscribed via source and target branches

to all changes: