Skip to content

Commit

Permalink
[IMP] sale_manual_delivery: enable multiple deliveries
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnextev committed Dec 20, 2024
1 parent 5bd8959 commit 5de70da
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions sale_manual_delivery/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@ class SaleOrder(models.Model):
def _compute_delivery_pending(self):
for rec in self:
lines_pending = rec.order_line.filtered(
lambda x: x.product_id.type != "service"
and x.qty_to_procure > 0
and (
not x.move_ids
or all(state in ("cancel",) for state in x.move_ids.mapped("state"))
)
lambda x: x.product_id.type != "service" and x.qty_to_procure > 0
)
rec.has_pending_delivery = bool(lines_pending)

Expand Down

0 comments on commit 5de70da

Please sign in to comment.