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

[FIX] project_task_attachements: create only modify attach_to task #337

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

mathben
Copy link

@mathben mathben commented Oct 4, 2024

From a new database,
Install project_task_attachments and, only after, install hr_timesheet
A bug occur about

  File "/home/me/git/odoo16/addons/CybroOdoo_CybroAddons/project_task_attachments/models/ir_attachment.py", line 59, in create
    return super().create(vals_list)
psycopg2.errors.ForeignKeyViolation: insert or update on table "ir_attachment" violates foreign key constraint "ir_attachment_task_id_fkey"
DETAIL:  Key (task_id)=(131) is not present in table "project_task".

Thanks for your support!

@MagicFab
Copy link

MagicFab commented Oct 4, 2024

Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants