Odoo Help


onchange product_id not changing price

John Doe
on 4/27/16, 4:24 AM 234 views


When I want to override/edit the product_id onchange method the price is not changing:

To the line: 

if self.order_id.pricelist_id and self.order_id.partner_id:

vals['price_unit'] = self.env['account.tax']._fix_tax_included_price(product.price, product.taxes_id, self.tax_id)    

I added: / self.product_id.uos_coeff, when I wanted to change the value from the one displaying now to the new divided by the coefficient.

Something I experienced is when I removed the whole code from onchange product_id it still did display the price, but the different one.

Hope someone can help.  

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/27/16, 4:24 AM
Seen: 234 times
Last updated: 4/27/16, 5:56 AM