Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][IMP] sale_stock_mto_as_mts_orderpoint: return executed op #1694

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sale_stock_mto_as_mts_orderpoint/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
orderpoints_to_procure_ids = []
mto_route = self.env.ref("stock.route_warehouse0_mto", raise_if_not_found=False)
if not mto_route:
return
return orderpoints_to_procure_ids

Check warning on line 21 in sale_stock_mto_as_mts_orderpoint/models/sale_order.py

View check run for this annotation

Codecov / codecov/patch

sale_stock_mto_as_mts_orderpoint/models/sale_order.py#L21

Added line #L21 was not covered by tests
for line in self:
delivery_moves = line.move_ids.filtered(
lambda m: m.picking_id.picking_type_code == "outgoing"
Expand All @@ -44,6 +44,7 @@
.create({})
)
wiz.make_procurement()
return orderpoints_to_procure_ids

def _get_mto_orderpoint(self, product_id):
self.ensure_one()
Expand Down
Loading