Skip to content

Commit

Permalink
pre-commit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteMeAsap committed Dec 16, 2024
1 parent 7eb01b5 commit 8cb4028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion delivery_sendcloud_official/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _sendcloud_convert_price_in_euro(self, price):
def _compute_sendcloud_order_weight(self):
for order in self:
lines = order.order_line.filtered(
lambda l: not l.display_type and l.product_id.weight
lambda ol: not ol.display_type and ol.product_id.weight
)
weight = sum(
[(line.product_id.weight * line.product_qty) for line in lines]
Expand Down

0 comments on commit 8cb4028

Please sign in to comment.