Merge lp:~unifield-team/unifield-wm/us-476 into lp:unifield-wm

Proposed by jftempo
Status: Needs review
Proposed branch: lp:~unifield-team/unifield-wm/us-476
Merge into: lp:unifield-wm
Diff against target: 19 lines (+2/-0)
1 file modified
purchase_override/purchase.py (+2/-0)
To merge this branch: bzr merge lp:~unifield-team/unifield-wm/us-476
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+266091@code.launchpad.net
To post a comment you must log in.

Unmerged revisions

2564. By Quentin THEURET @Amaris

US-476 [FIX] In case of confirmation of PO that sources only IR lines, don't wait other PO confirmation to continue the flow

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'purchase_override/purchase.py'
2--- purchase_override/purchase.py 2015-06-04 12:40:04 +0000
3+++ purchase_override/purchase.py 2015-07-28 13:16:10 +0000
4@@ -1637,6 +1637,7 @@
5
6 # corresponding sale order
7 so_ids = self.get_so_ids_from_po_ids(cr, uid, ids, context=context)
8+ so_ids = so_obj.search(cr, uid, [('id', 'in', so_ids), ('procurement_request', '=', False)], context=context)
9 # from so, list corresponding po
10 all_po_ids = so_obj.get_po_ids_from_so_ids(cr, uid, so_ids, context=context)
11
12@@ -1655,6 +1656,7 @@
13 ('type', '=', 'make_to_order'),
14 ('product_id', '!=', False),
15 ('procurement_id.state', '!=', 'cancel'),
16+ ('order_id.procurement_request', '=', False),
17 ('state', 'not in', ['confirmed', 'done'])], context=context)
18
19 all_exp_sol_not_confirmed_ids = exp_sol_obj.search(cr, uid, [('order_id', 'in', all_so_ids)], context=context)

Subscribers

People subscribed via source and target branches