[18.0][FIX] mail_gateway_whatsapp: Add parent_id when message is a response.#1848
Conversation
|
This is an enhancement of #1837. |
pedrobaeza
left a comment
There was a problem hiding this comment.
Thanks. Please check pre-commit
| ) | ||
| .mail_message_id | ||
| ) | ||
| new_message.parent_id = related_message and related_message.id |
There was a problem hiding this comment.
| new_message.parent_id = related_message and related_message.id | |
| new_message.parent_id = related_message.id |
|
Please always squash these suggestions/changes into the existing commit. |
a02dcd8 to
0be000d
Compare
|
|
Is there a way that I can run the pre-commit tests locally? |
When a message from whatsapp arrives and it's a response from a message sent from Odoo, set the parent_id field.
0be000d to
9d7a8e9
Compare
|
This PR has the |
|
/ocabot merge patch |
|
This PR looks fantastic, let's merge it! |
|
Congratulations, your PR was merged at f884128. Thanks a lot for contributing to OCA. ❤️ |
When a message from whatsapp arrives and it's a response from a message sent from Odoo, set the parent_id field.
In doing so, discuss correctly shows the message as a response, like this:

Also, having the parent_id set is very useful for detecting template's button responses.