CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Hello, I want to automatically calculate the subtotal with taxes in each line of sale.order.
I added a column "subtotal_with_taxes" and then I define this method (the two things in sale.order.line model):
@api.onchange('WHAT?')I want to execute this method every time when user presses "update" in the sale.order but I didn't see the way. How can I do this? I try with api.onchange('id') but not works, also I try api.onchange('price_subtotal') but not works because 'price_subtotal' is function field.
About This Community
Odoo Training Center
|Asked: 9/29/15, 8:33 AM|
|Seen: 1118 times|
|Last updated: 9/30/15, 1:49 AM|