Members mailing list archives

members@odoo-community.org

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

by
Groupement Régional Alimentaire de Proximité, Sylvain LE GAL
- 23/07/2015 07:51:02
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 :
(+33) 09.72.32.33.17
Astreinte :
(+33) 06.81.85.61.43
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 <frederic.clementi@camptocamp.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.










_______________________________________________
Mailing-List: http://odoo-community.org/groups/members-4
Post to: mailto:members@odoo-community.org
Unsubscribe: http://odoo-community.org/groups?unsubscribe