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:
- CRM
- e-Commerce
- 会計
- 在庫
- PoS
- Project
- MRP
この質問にフラグが付けられました
1
返信
1918
ビュー
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
|
2479 | ||
|
1
11月 21
|
4103 | ||
|
1
9月 21
|
5843 | ||
|
1
6月 21
|
2804 | ||
|
1
8月 20
|
4286 |