[FIX] base_import: currency removal
Typo in the currency removal method. opw-787873
This commit is contained in:
committed by
Nicolas Martinelli
parent
d223ba1484
commit
601bf82ba9
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user