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.
I would like to change the standard_price of product to include the discount from my supplier. At the moment the standard_price is updated without the discount.
Where I can find the the code which updates the standard_price when the product is received after the purchase order?
Is average pricing what you want?
OpenERP will automatically set the product price in response to each goods receipt movement into the warehouse (a Purchase from a Supplier).
At each goods receipt, the product price is recalculated using the following accounting formula:
NP = (OP * QS + PP * QR) / (QS + QR)
The following notation is used:
NP: New Price,
OP: Old Price,
QS: Quantity actually in Stock,
PP: Price Paid for the quantity received,
QR: Quantity Received.
If the products are managed in this way, OpenERP will open a window that lets you specify the price of the product received at each goods receipt. The purchase price is, by default, set from the purchase order, but you can change the price to add the cost of delivery to the various received products.
Once the receipt has been confirmed, the price is automatically recalculated and entered on the product form.
To congfigure OpenERP to do this:
1) Navigate to
Settings --> Configuration --> Purchasing
2) Check the box next to Compute Product cost price based on average cost:
3) On each product you want managed this way, on the Procurements tab, set the Costing Method to Average Price:
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: 3/22/14, 2:38 PM|
|Seen: 2025 times|
|Last updated: 3/16/15, 8:10 AM|