1
내가 many2many 필드에 값을 삽입 할 onchnage
many2one 필드에 따라 달라집니다odoo 10의 many2many에 대한 onchange api? <code>odoo10</code>에서
support_id = fields.Many2one('printshop2.support', 'Print Media', required=False)
support_ids = fields.Many2many('printshop2.support.line', 'printshop_support_line_rel', 'printshop_id', 'support_id',
string='Print Media')
나는이 기능을 수행하지만 작동하지 것 :
def support_onchange(self):
printshop = self.env['offset.printshop'].browse(self.id)
allpaper = self.env['printshop2.support.line'].search([('support_id', '=', printshop.support_id.id)])
self.write({'support_ids':allpaper})
감사합니다!