Modify the calculation of the price in an order / Odoo V10
I'm trying to see if Odoo can be a solution for my business. The business of my company is to be a broker : to be simple, my clients buy products to supplier, and i take a commission for services rendered in the sale.
For example the client C want to buy one quantity of the product P, the price is 100 euros, my commission is 8 %, so my invoice to he client C is 8% of 100 euros, so 8 euros. The price 100 euro of the product must be mentionned in the invoice, and of course to total invoiced to the customer, 8 euros.
In odoo if i make an order from the client for the product, i will have an invoice of 100. I would like the calculation of the pricee modified so it is price of product x commission.
So I would like to modify the way the price is calculated in a quotation and order. It seems that i need to create a module which modify the calculation by inheriting the method which do that. My questions are :
1. Should i create a module which will just modify one method ?
2. How can i find the method who do this calulation ? Having the method will help me, but knowing how to find it will help me also for the whole dev i have to do on odoo