Merge lp:~dorian-kemps/unifield-server/US-6583 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 5520
Proposed branch: lp:~dorian-kemps/unifield-server/US-6583
Merge into: lp:unifield-server
Diff against target: 16 lines (+2/-2)
1 file modified
bin/addons/product_attributes/product_attributes.py (+2/-2)
To merge this branch: bzr merge lp:~dorian-kemps/unifield-server/US-6583
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+373878@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/product_attributes/product_attributes.py'
2--- bin/addons/product_attributes/product_attributes.py 2019-09-17 09:21:24 +0000
3+++ bin/addons/product_attributes/product_attributes.py 2019-10-09 13:13:09 +0000
4@@ -1552,10 +1552,10 @@
5 ('order_id.state', 'not in', ['draft', 'done', 'cancel'])], context=context)
6
7 # Check if the product is in stock picking
8- # All stock moves in a stock.picking not draft/cancel/done or all stock moves in a shipment not delivered/done/cancel
9+ # All stock moves in a stock.picking not draft/cancel/done/delivered or all stock moves in a shipment not delivered/done/cancel
10 has_move_line = move_obj.search(cr, uid, [('product_id', '=', product.id),
11 ('picking_id', '!=', False),
12- '|', ('picking_id.state', 'not in', ['draft', 'done', 'cancel']),
13+ '|', ('picking_id.state', 'not in', ['draft', 'done', 'delivered', 'cancel']),
14 '&', ('picking_id.shipment_id', '!=', False),
15 ('picking_id.shipment_id.state', 'not in', ['delivered', 'done', 'cancel']),
16 ], context=context)

Subscribers

People subscribed via source and target branches