If I do not have a specific vendors pricing assigned to a product, the price will always show up as $0.00 when adding to a purchase order. How can I make it default to the Cost (standard_price) field instead of 0.00 ?
Odoo 10 CE
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
If I do not have a specific vendors pricing assigned to a product, the price will always show up as $0.00 when adding to a purchase order. How can I make it default to the Cost (standard_price) field instead of 0.00 ?
Odoo 10 CE
Hi,
To get the cost price of the product in the order lines if the vendor and his price is not set for the products.
Navigate to purchase -> models -> purchase.py
Then search the function named _onchange_quantity , ie, def _onchange_quantity , in this add an extra line
if not seller:
self.price_unit = self.product_id.standard_price #add this line
return
You can override this method to achieve this
Thanks
@Niyas Raphy this doesn't work for me in 10 CE, an ideas? It gives me error on startup...
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up