Skip to content

Commit

Permalink
[IMP] sale_manual_delivery: pre-commit stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnextev committed Dec 20, 2024
1 parent 90b2921 commit 90dfa3d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sale_manual_delivery/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +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
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 90dfa3d

Please sign in to comment.