Skip to content
Snippets Groups Projects
Commit 2e72e4f2 authored by Cédric Snauwaert's avatar Cédric Snauwaert
Browse files

[FIX] res_currency: wrong import that broke reconciliation view

fix error introduce in commit 7596fa3e
The get_format_currencies_js_function return javascript code and the openerp.web should not have been replaced by odoo.web. The result is that reconciliation view was broken.
parent d22676dc
No related branches found
No related tags found
No related merge requests found
......@@ -169,7 +169,7 @@ class Currency(models.Model):
function = ""
for currency in self.search([]):
symbol = currency.symbol or currency.name
format_number_str = "odoo.web.format_value(arguments[0], {type: 'float', digits: [69,%s]}, 0.00)" % currency.decimal_places
format_number_str = "openerp.web.format_value(arguments[0], {type: 'float', digits: [69,%s]}, 0.00)" % currency.decimal_places
if currency.position == 'after':
return_str = "return %s + '\\xA0' + %s;" % (format_number_str, json.dumps(symbol))
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment