Skip to content

Commit

Permalink
Merge PR OCA#3171 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Jun 6, 2024
2 parents f271f82 + c9a08df commit b3418f0
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 b3418f0

Please sign in to comment.