Filling Many2many field (odoo 8)

前端 未结 4 392
梦毁少年i
梦毁少年i 2020-12-02 18:00

What I\'ve done:

I have a module with

myfield = fields.Many2one(\'res.partner\', string=\"Graduate\", domain=[(\'is_graduated\', \'         


        
4条回答
  •  渐次进展
    2020-12-02 18:35

    _inherit = 'crm.phonecall'    
    alarm_ids = fields.Many2many('calendar.alarm',string="Reminders") 
     set the alarm_ids of calendar.event model in create method of crm phonecall...
     alarm_ids = [(6,0,self.alarm_ids.ids)] 
    
    _inherit = 'calendar.event'
     alarm_ids = fields.Many2many('calendar.alarm',string="Reminders") 
    

提交回复
热议问题