mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[WIP] project_acceptance: new changes by functionality of buttons
H11043
This commit is contained in:
16
project_acceptance/controllers/mail.py
Normal file
16
project_acceptance/controllers/mail.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user