Review: Needs Fixing
If we have specified currency_rate_type to "To currency" and not with "From
Currency" and try to compute the currency rate it gives warning while
validating invoice.
No rate found
for the currency: €
at the date: 2011-08-19
Solution for above problem is to have one new argument on compute method:
self.pool.get('res.currency').compute(cr, uid, to_currency, from_currency,
amount, currency_rate_type_from=False, currency_rate_type_to=False, context={})
Improve variable name rate_type in compute with above names.
Thanks,
Mustufa
--
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-currency_rate_type-mra/+merge/72143
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-server/trunk-currency_rate_type-mra.
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp