Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0] Installation Error of account_analytic_distribution_manual #699

Open
cesarsc79 opened this issue Oct 9, 2024 · 0 comments
Open
Labels

Comments

@cesarsc79
Copy link

Module

account_analytic_distribution_manual

Describe the bug

The installation fails with the following error message:

psycopg2.errors.UndefinedColumn: column tag.active_analytic_distribution does not exist
LINE 10:             WHERE tag.active_analytic_distribution = true
                           ^

To Reproduce

Affected versions:
16.0

Steps to reproduce the behavior:
Install Odoo 16 without any HR-related modules.
Attempt to install the account_analytic_distribution_manual module.

Expected behavior
The account_analytic_distribution_manual module should install successfully without requiring HR modules.

Workaround:
Installing the hr_timesheet_analytic_tag module before installing account_analytic_distribution_manual resolves the issue.

Possible solution:

Add "hr_timesheet_analytic_tag" to the depends section of the module's manifest.py file:

"depends": [
    "account",
    "hr_timesheet_analytic_tag",
],

However, this approach forces the installation of HR modules, which may not be desirable for all users.

Alternatively, create an intermediary module that bridges account_analytic_distribution_manual and HR functionalities, avoiding direct dependency on HR modules.

Additional context
The error occurs because the field active_analytic_distribution does not exist in the account.analytic.tag model unless the hr_timesheet_analytic_tag module is installed. This field is required by account_analytic_distribution_manual during installation.

@cesarsc79 cesarsc79 added the bug label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant