Sale Order
Sale Order
if record.order_line:
record.write({
'order_line': [
Command.update(record.order_line[0].id, { # Updating the
first order line
'product_id': product_id.id,
'price_unit': new_price,
'product_uom_qty': new_qty
})
]
})