Víctor Martínez fce83228b9 [FIX] account_financial_report: Prevent error related to currency from General ledger
Use case: Generate report (showing foreign currency) with accounts with defined currency.

Traceback:

File "/odoo/odoo-server/odoo/addons/base/models/ir_qweb_fields.py", line 448, in value_to_html
fmt = "%.{0}f".format(display_currency.decimal_places)
AttributeError: 'int' object has no attribute 'decimal_places'

The above exception was the direct cause of the following exception:

Error to render compiling AST
AttributeError: 'int' object has no attribute 'decimal_places'
Template: account_financial_report.report_general_ledger_lines
Path: /t/div/div[2]/t[6]/t[1]/div[1]/t[1]/span/t
Node: <t t-raw="account_or_group_item_object['init_bal']['bal_curr']" t-options="{'widget': 'monetary', 'display_currency': account['currency_id']}"/>

TT42804

[FIX] account_financial_report: Prevent error related to currency from General ledger

Use case: Generate xlsx report (showing foreign currency) with accounts with defined currency.

Traceback:

File "/opt/odoo/auto/addons/account_financial_report/report/abstract_report_xlsx.py", line 535, in _get_currency_amt_format
    field_name = "{}_{}".format(field_prefix, currency.name)
AttributeError: 'int' object has no attribute 'name'
2024-11-29 15:38:41 +07:00
2024-10-08 12:47:04 +00:00
2024-10-20 15:39:21 +00:00
2024-10-08 12:47:04 +00:00
2024-10-08 12:47:04 +00:00
2024-10-20 15:39:21 +00:00
2024-10-08 12:47:04 +00:00
2024-10-08 12:47:04 +00:00
2024-10-08 12:47:04 +00:00
2024-10-20 15:39:21 +00:00
2024-10-08 12:47:04 +00:00
2024-10-20 15:39:21 +00:00
2024-10-08 12:47:04 +00:00

Runboat Pre-commit Status Build Status codecov Translation Status

account-financial-reporting

account-financial-reporting

This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools.

Licenses

This repository is licensed under AGPL-3.0.

However, each module can have a totally different license, as long as they adhere to Odoo Community Association (OCA) policy. Consult each module's __manifest__.py file, which contains a license key that explains its license.


OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Description
No description provided
Readme 31 MiB
Languages
HTML 40.2%
Python 39%
JavaScript 18.6%
CSS 1.9%
SCSS 0.3%