Hi,
Create a controller for the button submit
do this in the controller
order = request.website.sale_get_order(force_create=True)
values = order._cart_update(
product_id=product_id,
add_qty=add_qty,
set_qty=set_qty,
unit_price=unit_price,
)
now inherit sale.order and add the code below
def _prepare_order_line_update_values(
self, order_line, quantity, linked_line_id=False, **kwargs
):
values = super()._prepare_order_line_update_values(order_line, quantity, linked_line_id, **kwargs)
if 'unit_price' in kwargs:
values["unit_price"] = kwargs.get('unit_price')
return values
Regards