如何在Odoo中更新继承模型的Many2one字段的“ comodel_name”属性?

时间:2019-02-02 10:09:52

标签: odoo odoo-11

我想更新

address_id = fields.Many2one ( comodel_name = 'res.partner' )

到以下:

address_id = fields.Many2one ( comodel_name = 'res.company' )

但是它将引发以下错误:

insert or update on table "hr_employee" violates foreign key constraint "hr_employee_address_id_fkey"

0 个答案:

没有答案