Members mailing list archives

Re: [V8][PORT] margin-analysis (product_get_cost_field / product_standard_margin)

6it, Jean-Marc Dupont
- 23/07/2015 08:06:40
Thanks for the initiative, and good luck
Cost management in Odoo is a real mess

2015-07-23 9:53 GMT+02:00 Sylvain LE GAL <>:
Thanks for your answers,

I have a question about the main "cost" field. in Odoo, the field used is standard_price (= "Cost Price"), in OCA, the field used is "cost_price" (="Replenishment Cost"), field.function based on standard_price).

@FR : what is the exact translation of Replenishment ?
@Alexandre, @Other : If I understand correctly "cost_price" was introduced to manage correctly cost price in BoM case, and other special case. Is this module necessary in v8 ?

I'll begin to port 'product_get_cost_field' (if necessary) and 'product_standard_margin' tomorrow.

Review & comment welcome.

Have a nice day.

Sylvain LE GAL
Service informatique
GRAP - Groupement Régional Alimentaire de Proximité

3 Grande rue des Feuillants, 69001 Lyon
Bureau :
Astreinte :
GRAP sur le Web : Site Web | Facebook | Twitter
GRAP - service Informatique sur le Web : Twitter

2015-07-23 9:38 GMT+02:00 Frédéric Clementi <>:

just a warning... when we worked on these modules with Joel I remember (but my memory is not that good) that we struggled on how to treat the std_price in multicurrency and multicompany environnement. 
ie : 2 companies one in EUR, one in CHF where products are shared between the the std_price field.

At the time, Joel found a hack with the price type (OPW + big launchpad MP) I think but it is obsolet now.
So we must apply the correct conversion rate according the the use case. (BTW our hypothesis was : the currency rate date we used for std_price was the date of the invoice validation...not perfect but acceptable I think)

About rewriting the modules, I cannot juge but I wonder if it still necessary to store the std_price in the invoice line since it is already stored in the quant and the BI could do calculations on the fly (perf issues?)

Anyway, the most important is to keep all yaml tests since we spend more time on these than coding modules.

Post to:

Post to: