How to write “write” function without effecting inherited class in Odoo 8?
问题 The situation is as follows: This is my .py file class mom_meeting(osv.osv): _name = "mom.meeting" _rec_name = 'meet_ref' _inherit = ['mail.thread'] and I had added the mail followers or openchatter in my custom module, now when I tried writing a "write" function as follows: def write(self, cr, uid, ids, vals, context=None): user_ids = [] sobj = self.pool.get('mom.meeting').browse(cr, uid, ids, context=None) if rec.ch_prsn.user_id.id == uid or rec.min_prp.id == uid: return super(mom_meeting,