Members mailing list archives

members@odoo-community.org

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

by
Alexinux, Alexis de Lattre
- 23/07/2015 09:31:38


2015-07-23 9:38 GMT+02:00 Frédéric Clementi <frederic.clementi@camptocamp.com>:
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.

It should be easier in v8 because the field "standard_price" is now a property field (it was a regular field in v7), so it has a different value per company.

Here is the definition of the "standard_price" field in v8 :
https://github.com/odoo/odoo/blob/8.0/addons/product/product.py#L528

--
Alexis de Lattre
Akretion France - 35B rue Montgolfier - 69100 Villeurbanne - France
Mail : alexis.delattre@akretion.com
Tel : +33 4 82 53 84 58
Mobile : +33 6 99 08 92 45
Jabber/Gtalk : alexis.delattre@akretion.com.br