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?