mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[WIP] project_acceptance: change on controllers for exception rule
H11043
This commit is contained in:
@@ -11,6 +11,8 @@ class PortalChatter(mail.PortalChatter):
|
||||
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'
|
||||
task.sudo().ignore_exception = True
|
||||
task.sudo().task_acceptance = 'feedback'
|
||||
task.sudo().ignore_exception = False
|
||||
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