I am facing an issue where I need to have one rate when doing purchase in a given currency and another rate when doing sales with the same currency.
How would I complete this in Odoo?
I would add a boolean or a selection field on the currency rate object.
That boolean or selection field could be used to determine if the rate is for buying or for selling.
Then, in the CRON action that retrieves the rates, i would duplicate every rate that are created (since we now need one for buying, one for selling)
Then of course, in every module that uses the currency rates, you will have to redefines the way odoo search for a currency rate, since he can't know which one you need to use :)
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 11/14/16, 6:24 AM|
|Seen: 98 times|
|Last updated: 11/14/16, 3:42 PM|