[FIX] res.currency: correctly compute the number of decimal places for currencies formatting in 'get_format_currencies_js_function'.
Merge branch '8.0' of https://github.com/odoo/odoo into 8.0-linux64