Skip to content

Commit

Permalink
[FIX] shopinvader_sale_cart: Fix bad rebase, update _get_cart_line si…
Browse files Browse the repository at this point in the history
…gnature
  • Loading branch information
paradoxxxzero committed Nov 7, 2024
1 parent 23617f2 commit a609ec8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shopinvader_sale_cart/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class SaleOrder(models.Model):

_inherit = "sale.order"

uuid = fields.Char(string="EShop Unique identifier", readonly=True)
Expand Down Expand Up @@ -93,7 +92,9 @@ def _update_cart_lines_from_cart(self, cart):
self.ensure_one()
update_cmds = []
for cart_line in cart.order_line:
line = self._get_cart_line(cart_line.product_id.id)
line = self._get_cart_line(
cart_line.product_id.id, {}
) # FIXME pass options
if line:
new_qty = line.product_uom_qty + cart_line.product_uom_qty
vals = {"product_uom_qty": new_qty}
Expand Down

0 comments on commit a609ec8

Please sign in to comment.