diff --git a/account_invoice_import_invoice2data/readme/CONFIGURE.rst b/account_invoice_import_invoice2data/readme/CONFIGURE.rst index 6e49c72263d..f63f4fc199e 100644 --- a/account_invoice_import_invoice2data/readme/CONFIGURE.rst +++ b/account_invoice_import_invoice2data/readme/CONFIGURE.rst @@ -59,6 +59,7 @@ Invoice Fields (on document level) | fieldname | type | Description | | -------------- | :---------: | :-------------------------------------- | | currency | char | The currency of the invoice in iso format (EUR, USD) | +| currency_symbol | char | The currency symbol of the invoice (€, $) | | bic | char | Bank Identifier Code | | iban | char | International Bank Account Number | | amount | float | The total amount of the invoice (including taxes) | diff --git a/account_invoice_import_invoice2data/wizard/account_invoice_import.py b/account_invoice_import_invoice2data/wizard/account_invoice_import.py index 41b635235d2..22ee0a28afd 100644 --- a/account_invoice_import_invoice2data/wizard/account_invoice_import.py +++ b/account_invoice_import_invoice2data/wizard/account_invoice_import.py @@ -173,6 +173,9 @@ def invoice2data_to_parsed_inv(self, invoice2data_res): "iban": re.sub(r"\W+", "", invoice2data_res.get("iban", "")).upper(), "currency": { "iso": invoice2data_res.get("currency"), + "currency_symbol": invoice2data_res.get("currency_symbol"), + "country_code": invoice2data_res.get("country_code"), + "iso_or_symbol": invoice2data_res.get("currency"), }, "amount_total": invoice2data_res.get("amount"), "date": invoice2data_res.get("date"),