summaryrefslogtreecommitdiff
path: root/addons/base_import/models
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-01-02 16:54:38 +0100
committerChristophe Simonis <chs@odoo.com>2018-01-02 16:54:38 +0100
commitf02ed9ab9abfc614ec7d2a1d1a7a24253ce8c7c4 (patch)
treecdd17aed72d95ee2711038ea670fb756666f0b9b /addons/base_import/models
parenta8527a16b6c887aa55eaf6ecb43a9a1a5067fd30 (diff)
parent0af13af5de42d64ef9e5a944890e6d6368391b7f (diff)
[MERGE] forward port branch saas-16 up to 0af13af5de4
Diffstat (limited to 'addons/base_import/models')
-rw-r--r--addons/base_import/models/base_import.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/base_import/models/base_import.py b/addons/base_import/models/base_import.py
index 9699ff753aa..9d34fc6a07c 100644
--- a/addons/base_import/models/base_import.py
+++ b/addons/base_import/models/base_import.py
@@ -578,7 +578,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