Skip to content

Commit

Permalink
Merge PR #1534 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by lmignon
  • Loading branch information
shopinvader-git-bot committed Apr 19, 2024
2 parents 37163a2 + 2f9b17f commit d268364
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shopinvader_api_cart/routers/cart.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,5 +236,5 @@ def _update(self, partner, data, uuid):
cart = self.env["sale.order"]._find_open_cart(partner.id, uuid)
if not cart:
cart = self.env["sale.order"]._create_empty_cart(partner.id)
cart.write(data.convert_to_sale_write())
cart.write(data.convert_to_sale_write(cart))
return cart
2 changes: 1 addition & 1 deletion shopinvader_api_cart/schemas/cart.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class CartUpdateInput(StrictExtendableBaseModel, extra="ignore"):
invoicing: InvoicingUpdateInfo | None = None
note: str | None = None

def convert_to_sale_write(self):
def convert_to_sale_write(self, cart):
vals = {}
data = self.model_dump(exclude_unset=True)
if "client_order_ref" in data:
Expand Down

0 comments on commit d268364

Please sign in to comment.