[FIX] base_import: currency removal

Typo in the currency removal method.

opw-787873
This commit is contained in:
Nicolas Martinelli
2017-12-15 10:55:03 +01:00
committed by Nicolas Martinelli
parent d223ba1484
commit 601bf82ba9
+1 -1
View File
@@ -586,7 +586,7 @@ class Import(models.TransientModel):
# Check that currency exists
currency = self.env['res.currency'].search([('symbol', '=', split_value[currency_index].strip())])
if len(currency):
return split_value[currency_index + 1 % 2] if not negative else '-' + split_value[currency_index + 1 % 2]
return split_value[(currency_index + 1) % 2] if not negative else '-' + split_value[(currency_index + 1) % 2]
# Otherwise it is not a float with a currency symbol
return False