Members mailing list archives
Re: [V8][PORT] margin-analysis (product_get_cost_field / product_standard_margin)by
6it, Jean-Marc Dupont
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 <firstname.lastname@example.org>:
Have a nice day.@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 ?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 ?I'll begin to port 'product_get_cost_field' (if necessary) and 'product_standard_margin' tomorrow.
Review & comment welcome.2015-07-23 9:38 GMT+02:00 Frédéric Clementi <email@example.com>:Alexis,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 2...so 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.
Groupement Régional Alimentaire de Proximité, Sylvain LE GAL