Hi,
I need to add a field on product model to get the last cost price of the previous month. (taken from product_cost_history)
Some questions:
- I intend to use a function field, do think it’s the best choice ?
- To get the last cost price of the previous month, is it better to use a query or is it possible to do this with a search ?
Thanks for advices/help !