Odoo Help


product price calculation with Python code?

on 10/9/14, 7:08 AM 2,691 views

by default you can enter a costs price and a sales price for each product. Shortcoming: you can not reconstruct how you came to the sales price. For example it might be a policy to add a fixed rate for transportation plus a margin in % to cost price. For now you'd need to calculate that outside of odoo (and then have no record of how you did that) which reminds me of the many Excel's you are piling up somewhere on a fileserver and try to not loose track of them (a stone age scenario from an ERP perspective I think)

So if you could use python code in the odoo 'products' (as you can in the salary calculation [I think it's 'hr_payroll_account'] with "salary rules" and "salary structures") to calculate your Sales price that would be something nice. So, how can you achieve that?


Med Said BARA

--Med Said BARA--

| 5 5 7
--Med Said BARA--
Med Said BARA
On 10/10/14, 12:12 PM

You can use the Pricelist to achieve that. (Pricing Policies - On You Tube: Price List V7 and How to configure PriceList in OpenERP)

You can also use some extra modules like: Delivery Costs , Custom cost Price, Price List Builder ...

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

4 follower(s)


Asked: 10/9/14, 7:08 AM
Seen: 2691 times
Last updated: 3/16/15, 8:10 AM