Odoo 10 ORM API - 为 ProductTemplate 创建卖家 ID

Odoo 10 ORM API - Create seller ids for ProductTemplate

我有

_seller_ids = [(0, 0, {'min_qty': 1.0, 'product_code': u'1006004', 'price': 1.0, 'name': res.partner(84,)})]

my_product_template = ProductTemplate(34,)

我如何为 my_product_template 创建那些 seller_ids - 在示例中它只是一个供应商,但它可能不止一个,因为它是一个列表? - 产品模板(34,)-

我试过:

my_product_template.seller_ids.create(_seller_ids)

没有成功

谢谢,

您可以尝试以下操作:

my_product_template.seller_ids = [(0, 0 , {'min_qty': 1.0, 'product_code': u'1006004', 'price': 1.0, 'name': seller.name}) for seller in sellers]