Feng’ Blog

odoo10 many2many使用
建立many2many字段如:test = fields.Many2many('test.test', strin...
扫描右侧二维码阅读全文
05
2017/12

odoo10 many2many使用

建立many2many字段

如:test = fields.Many2many('test.test', string='测试多对多',)

odoo会自动生成一个中间表,
表名为:当前模型名称+many2many使用的模型名称+_rel
例:当前模型(project.test)

many2many字段为:test = fields.Many2many('test.test', string='测试多对多',)
则中间表名为:project_test_test_test_rel

Last modification:January 8th, 2019 at 09:23 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment