跳至內容
選單
此問題已被標幟
1 回覆
2022 瀏覽次數

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
2676
1
11月 21
4308
1
9月 21
6027
1
6月 21
2942
1
8月 20
4461