Skip to Content
Menu
This question has been flagged
1805 Views

Hello,


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.  

Avatar
Discard