Skip to content

Commit

Permalink
shopinvader_api_cart: add hook to prepare cart data
Browse files Browse the repository at this point in the history
  • Loading branch information
simahawk committed Mar 25, 2024
1 parent eb798cc commit 55d43c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shopinvader_api_cart/routers/cart.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,5 +236,8 @@ 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(self._update_prepare_data(data))
return cart

def _update_prepare_data(self, data):
return data.convert_to_sale_write()

0 comments on commit 55d43c6

Please sign in to comment.