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][UPD][FIX] tracking_manager: specific O2M fields notify #3140

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

Conversation

acsonefho
Copy link

In some case, we may have some unconventionals O2M like on ir.attachment. The O2M relation is done on res_id value. This commit take them in consideration and avoid a traceback.

How to reproduce:
Just add a dynamic track on attachment_ids (example on account.move).
Then add an attachment on the account.move: you should see a new message into the chatter (that works perfectly)
Finally, remove this attachment: without this PR, you should see a traceback into logs. But with this PR, you should see a new message (about the unlink) in the chatter.

image

In some case, we may have some unconventionals O2M like on ir.attachment. The O2M relation is done on res_id value.
This commit take them in consideration and avoid a traceback
@OCA-git-bot
Copy link
Contributor

Hi @sebastienbeau, @Kev-Roche,
some modules you are maintaining are being modified, check this out!

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.

3 participants