mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
16 lines
617 B
Python
16 lines
617 B
Python
from odoo import http
|
|
from odoo.http import request
|
|
|
|
from odoo.addons.portal.controllers import mail
|
|
|
|
|
|
class PortalChatter(mail.PortalChatter):
|
|
|
|
|
|
@http.route()
|
|
def portal_chatter_post(self, res_model, res_id, message, attachment_ids='', attachment_tokens='', **kwargs):
|
|
if request.httprequest.method == 'POST':
|
|
task = request.env['project.task'].browse([res_id])
|
|
task.task_acceptance = 'feedback'
|
|
return super(PortalChatter, self).portal_chatter_post(res_model, res_id, message, attachment_ids=attachment_ids, attachment_tokens=attachment_tokens, **kwargs)
|
|
|