Odoo Help


Linking POs to a SO

on 11/30/14, 7:10 AM 1,172 views

At the moment I am implementing OE v7 in an existing company. This production-company is used to custom make goods (all make-to-order). To complete production of a sales order 3different costs can occur: stock items are used, hours logged to this SO, and PO's linked to this order(external rented people, special purchased items). Now in the end I need a summary of each sales order telling me the margin made. So 1 report telling me the sales price substracted by all the costs.

What is the best to do? I is there a way to link PO's to a SO? Or do I have to work with projects or analytic accounts?

Thaks a lot!


on 11/30/14, 7:12 AM

Are you using MRP? If so, a PO may create MO and MO may then create Procurement Order which in turn will create Sale Order. You might want to try that route.

on 11/30/14, 10:35 PM


The sale_margin module does just that. It "gives the profitability by calculating the difference between the Unit Price and Cost Price."

1. Install the module from Settings > Local Modules > sale_margin

2. Go to Settings > Configuration > Sales and tick the "Display margins on sales orders"

3. Test this by generating a sales order. Make sure to set correct costs on your products.

The following link to the code can clairify the computations made: https://github.com/steedos/odoo8/blob/master/openerp/addons/sale_margin/sale_margin.py

I hope this helps.

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

3 follower(s)


Asked: 11/30/14, 7:10 AM
Seen: 1172 times
Last updated: 3/16/15, 8:10 AM