Hi all,
I need to send a messagge to another user when I create a task in a project and I select that user.
Example: I create a task for user "Sandro", I would like that Sandro receive a messagge that there is a task for him.
Kind regards
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi all,
I need to send a messagge to another user when I create a task in a project and I select that user.
Example: I create a task for user "Sandro", I would like that Sandro receive a messagge that there is a task for him.
Kind regards
thank you... in which add on?
Use below python code in your add-on to send a message to user.
from openerp.osv import fields, osv
from openerp.tools.translate import _
class project_task(osv.osv):
_name = 'project.task'
def create(self, cr, uid, vals, context=None):
new_id = super(project_task, self).create(cr, uid, vals, context=context)
self.message_post(cr, uid, [new_id], body=_("Task Created"), subtype='mail.mt_comment', context=context)
return new_id
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
5
sie 23
|
4094 | ||
|
1
mar 15
|
5407 | ||
Project View & Task View
Rozwiązane
|
|
4
sie 20
|
4082 | |
|
5
mar 16
|
4378 | ||
|
2
lut 16
|
6131 |