diff --git a/account_banking_camt/camt.py b/account_banking_camt/camt.py index c27956b4b..627a0419c 100644 --- a/account_banking_camt/camt.py +++ b/account_banking_camt/camt.py @@ -150,7 +150,12 @@ CAMT Format parser identifier) ) - statement.local_currency = self.xpath(node, './ns:Acct/ns:Ccy')[0].text + # Assuming If there is no Ccy tag then it belongs to defaut currency + if not self.xpath(node, './ns:Acct/ns:Ccy'): + statement.local_currency = statement.company_id.currency_id.id + else: + statement.local_currency = self.xpath(node, + './ns:Acct/ns:Ccy')[0].text statement.start_balance = self.get_start_balance(node) statement.end_balance = self.get_end_balance(node) number = 0