diff --git a/account_financial_report/i18n/fr.po b/account_financial_report/i18n/fr.po index 5d69f600eade..3b4b8c99aff9 100644 --- a/account_financial_report/i18n/fr.po +++ b/account_financial_report/i18n/fr.po @@ -1467,6 +1467,11 @@ msgstr "Afficher le détail des écritures" msgid "Show Partner Details" msgstr "Afficher le détail du partenaire" +#. module: account_financial_report +#: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__show_currency_name +msgid "Show currency name" +msgstr "Afficher le nom de la devise" + #. module: account_financial_report #. odoo-python #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0 diff --git a/account_financial_report/report/general_ledger_xlsx.py b/account_financial_report/report/general_ledger_xlsx.py index 3dd46fd47bef..570eaa4a5b2b 100644 --- a/account_financial_report/report/general_ledger_xlsx.py +++ b/account_financial_report/report/general_ledger_xlsx.py @@ -67,6 +67,16 @@ def _get_report_columns(self, report): "width": 14, }, ] + if report.foreign_currency and report.show_cost_center: + res += [ + { + "header": _("Cur."), + "field": "currency_name", + "field_currency_balance": "currency_name", + "type": "currency_name", + "width": 7, + }, + ] if report.foreign_currency: res += [ { diff --git a/account_financial_report/wizard/general_ledger_wizard.py b/account_financial_report/wizard/general_ledger_wizard.py index 761bc1e88d80..0cacf37140a8 100644 --- a/account_financial_report/wizard/general_ledger_wizard.py +++ b/account_financial_report/wizard/general_ledger_wizard.py @@ -65,6 +65,10 @@ class GeneralLedgerReportWizard(models.TransientModel): "will display initial and final balance in that currency.", default=lambda self: self._default_foreign_currency(), ) + show_currency_name = fields.Boolean( + string="Show currency name", + help="Display foreign currency name for move lines", + ) account_code_from = fields.Many2one( comodel_name="account.account", help="Starting account in a range", diff --git a/account_financial_report/wizard/general_ledger_wizard_view.xml b/account_financial_report/wizard/general_ledger_wizard_view.xml index 623f6c487fc4..0ffe3d004d5d 100644 --- a/account_financial_report/wizard/general_ledger_wizard_view.xml +++ b/account_financial_report/wizard/general_ledger_wizard_view.xml @@ -29,6 +29,10 @@ +