Skip to content

Commit

Permalink
[IMP] sale_elaboration: Clean route when change from elaboration with…
Browse files Browse the repository at this point in the history
… route to elaboration without route

TT49441
  • Loading branch information
carlosdauden committed Jun 4, 2024
1 parent f271f82 commit c9a08df
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sale_elaboration/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ def get_elaboration_stock_route(self):
@api.depends("elaboration_ids")
def _compute_route_id(self):
for line in self:
route_id = line.get_elaboration_stock_route()
if route_id:
line.route_id = route_id
line.route_id = line.get_elaboration_stock_route()

@api.depends("elaboration_ids", "order_id.pricelist_id")
def _compute_elaboration_price_unit(self):
Expand Down

0 comments on commit c9a08df

Please sign in to comment.