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'm writing a ticketing module and i need the assigned employee to a specific ticket to be automatically follow the ticket the thing as is it followers are added form res.partner model and i need to add them from hr.employee and res.partner
here is my work around
_name = 'itmangement.ticket'
_description = 'IT Ticket Management Process'
_inherit = ['mail.thread', 'ir.needaction_mixin']
#some other fields
assigned_to_id = fields.Many2many('hr.employee', string="Assigned To")
self.employee_message_follower_ids = [(6,0,self.assigned_to_id.ids)]and the view:
<field name="message_follower_ids" widget="mail_followers"/>
<field name="message_ids" widget="mail_thread"/>
<field name="employee_message_follower_ids" widget="mail_followers"/>
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: 2/23/16, 4:37 AM|
|Seen: 1435 times|
|Last updated: 2/23/16, 5:37 AM|