Hi everybody,
I'm stuck in catch onchange event of o2m field (order_line). The first time I add a record, it work fine. But when I add the second row the onchange does not work (the Amount_Total is not updated). I dont know how to fix it.
Pls Help me out :((
Thank all.
Here is my code:
@api.onchange('order_line') def _onchange_add_product(self): for lines in self.order_line: if lines.price_unit > 1: vals_tool.append((0, 0, {'product_id': line.product_id.id, ......})) self.update({ 'order_line': vals_tool, }) |