Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
How can I put subtotal result into untaxed result when I changed the item fields?
For example I add a item (100$), subtotal is 100$, so the untaxed amount it will be 100$
and if I change the quantity for two items the amounts change to 200$.
You can also try this one...
In Order object: write an onchange which takes "order_lines" as parameter... and also in xml view, specify the onchange on the "order_lines" [o2m field]
So now in the onchange method, you can evaluate the lines,
by using orm method "resolve_o2m_commands_to_record_dicts" , which will help you to retrive the values of One2many lines in either case (i.e, saved or unsaved records)
Even I had the same requirement, and this works just perfect....
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 12/9/14, 9:35 AM|
|Seen: 1065 times|
|Last updated: 3/16/15, 8:10 AM|