跳至内容
菜单
此问题已终结
1 回复
2008 查看

I get product.product object using search method. Now I want to set a vendor (from res.partner data) for this product using orm. how can I achieve?

形象
丢弃
最佳答案

Hi

lets say the product.product object that you got be product_obj

Now to set vendors you have to write the seller_id field

eg: product_obj.write({'seller_ids': [(0, 0, [Vendor details])]})


Regards
形象
丢弃
编写者

thanks a lot.

相关帖文 回复 查看 活动
1
12月 22
2648
1
11月 21
4243
1
9月 21
6010
1
6月 21
2929
1
8月 20
4448