Skip to content

[FIX] helpdesk_mgmt_crm: ensure attachments on created leads are readable to people without helpdesk access. - #1101

Open
Dirbaio wants to merge 1 commit into
OCA:17.0from
akiles-dev:fix-create-lead-attachments
Open

Dirbaio wants to merge 1 commit into
OCA:17.0from
akiles-dev:fix-create-lead-attachments

Conversation

@Dirbaio

@Dirbaio Dirbaio commented Sep 3, 2026

Copy link
Copy Markdown

When creating a lead from a ticket, the new mail.messages point to the same ir.attachments as the old
messages. Those are still associated to a ticket, so users that dont' have helpdesk permissions cannot
see them.

This fixes it by creating a new ir.attachment associated to the crm.lead. This doesn't duplicate
the data on disk, both point to the same file.

…able to people without helpdesk access.

When creating a lead from a ticket, the new mail.messages point to the same ir.attachments as the old
messages. Those are still associated to a ticket, so users that dont' have helpdesk permissions cannot
see them.

This fixes it by creating a new ir.attachment associated to the crm.lead. This doesn't duplicate
the data on disk, both point to the same file.
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @victoralmau,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added series:17.0 mod:helpdesk_mgmt_crm Module helpdesk_mgmt_crm labels Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:helpdesk_mgmt_crm Module helpdesk_mgmt_crm series:17.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants