79764042

Date: 2025-09-14 01:14:12
Score: 2
Natty:
Report link

addLineToCurrentOrder is an async function, that means you have to await for it to finish

https://github.com/odoo/odoo/blob/18.0/addons/point_of_sale/static/src/app/store/pos_store.js#L652

and a usage example
https://github.com/odoo/odoo/blob/022fcbcf40a28afa56010f6130c26bb0503d5467/addons/pos_discount/static/src/overrides/components/control_buttons/control_buttons.js#L60

Also, have a look at the ...line desctructuring; are all the values in there needed on the new line?

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: gdaramouskas