Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Discussions and notifications in Odoo

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 286
    Comment on it

    One is likely to mistake Odoos technical models for directly fulfilling business needs. The models actually enable to add capabilities to business objects, by eliminating the need of building them by hand.
    Odoo's email and messaging system, called Chatter system, is one the brilliant examples of these. It allows to add notifications and discussion threads to any model. In order to to display the discussion thread, the model simply has to _inherit mail.thread, and add the message_ids field to its form view. Discussion threads are per-record.
    If you want to discussions and notifications in OpenERP(Odoo) paste the below mentioned code in your model.py file -

    model.py
      class Courses(models.Model):
        _name = 'academy.courses'
        _inherit = 'mail.thread'
    
        name = fields.Char()
        teacher_id = fields.Many2one('academy.teachers', string="Teacher")
    
    
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: