Akim Juillerat e9a88296ff Avoid error on installation with missing analytic account
When installing the module account_financial_report, a relational table between
account_move_line and account_analytic_account is created and computed.

However, if an analytic account was used only on draft invoices before being deleted,
its ID will remain in the JSON column analytic_distibution of account_move_line.
In that case we get a ForeignKeyViolation because the ID doesn't exist in
account_analytic_account table.

Therefore, we need to check if the ID exists during the computation to avoid
inserting it in the relational table and raising the error.
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%