mirror of
https://github.com/bringout/oca-ocb-mail.git
synced 2026-04-21 20:42:08 +02:00
19.0 vanilla
This commit is contained in:
parent
5df8c07b59
commit
daa394e8b0
2114 changed files with 564841 additions and 299642 deletions
|
|
@ -0,0 +1,12 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo.http import request, route
|
||||
from odoo.addons.mail.controllers import thread
|
||||
|
||||
|
||||
class ThreadController(thread.ThreadController):
|
||||
@route()
|
||||
def mail_message_post(self, thread_model, thread_id, post_data, context=None, **kwargs):
|
||||
if selected_answer_id := kwargs.pop("selected_answer_id", None):
|
||||
request.update_context(selected_answer_id=selected_answer_id)
|
||||
return super().mail_message_post(thread_model, thread_id, post_data, context, **kwargs)
|
||||
Loading…
Add table
Add a link
Reference in a new issue