Review: Needs Fixing
Overriding context with context={'date':inv.date_invoice} is not proper way.
You can use context.copy() and pass this copy to compute method by updating its
dictionary by invoice date.
I have created invoice (more then two invoice lines) with 1/1/2011 and with
period=01/2011 and try to validate that invoice but does not find the problem
in move lines. As i am getting currency rate of January Month only not current
date.
You have to check it again for the various test cases.
And look _current_rate method on currency object which will help you to find
the solution.
Thanks,
Mustafa
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-812261-bde/+merge/69954
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-812261-bde.
_______________________________________________
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