Fixes #3323 : error with currencies in multi-company environnement

Please refer to my code analysis on the bug report #3323 on odoo/odoo