插入到many2mano odoo(以前的openerp)中 [英] insert into many2many odoo (former openerp)
本文介绍了插入到many2mano odoo(以前的openerp)中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将值插入到odoo(以前的OpenERP)中的many2many或one2manhy关系表中.您知道如何执行此操作吗?
I'm trying to insert values into a many2many or one2manhy relation table in odoo (former OpenERP). Do you have any idea how to do this?
推荐答案
以下是 invoice_line_tax_id
字段是多对多关系,并且(6, 0, tax_ids)
表示将任何现有记录替换为tax_ids
中的记录.因为您正在呼叫create()
,所以没有什么可替换的.
The invoice_line_tax_id
field is a many-to-many relationship, and the (6, 0, tax_ids)
means to replace any existing records with those in tax_ids
. Because you're calling create()
, there's nothing to replace.
查看全文