Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
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 _
_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)
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 1/8/16, 10:55 AM|
|Seen: 843 times|
|Last updated: 1/12/16, 10:54 AM|