如何将many2many字段添加到继承的模型

时间:2019-10-24 16:36:51

标签: orm many-to-many odoo-12

我尝试添加一个many2many字段,如下所示:

_inherit = 'mail.compose.message'

    partnercc_ids = fields.Many2many(comodel_name='res.partner', relation='mail_compose_message_res_partner_cc_rel',
                                     column1='partner_id', column2='wizard_id',
                                     string='Additional Contacts')

表“ mail_compose_message_res_partner_cc_rel”尚未添加。希望你能帮助我

0 个答案:

没有答案