19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:39 +01:00
parent 5df8c07b59
commit daa394e8b0
2114 changed files with 564841 additions and 299642 deletions

View file

@ -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)