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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
1
回覆
2128
瀏覽次數
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
|
2773 | ||
|
1
11月 21
|
4521 | ||
|
1
10月 21
|
6181 | ||
|
1
6月 21
|
3055 | ||
|
1
8月 20
|
4604 |