From 601bf82ba9e9cd7037ba5fdfc0dec483b72e10f6 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Fri, 15 Dec 2017 10:02:13 +0100 Subject: [PATCH] [FIX] base_import: currency removal Typo in the currency removal method. opw-787873 --- addons/base_import/models/base_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/base_import/models/base_import.py b/addons/base_import/models/base_import.py index 0be10bf6da8..13ce712bb1b 100644 --- a/addons/base_import/models/base_import.py +++ b/addons/base_import/models/base_import.py @@ -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