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
- プロジェクト
- MRP
この質問にフラグが付けられました
1
返信
2536
ビュー
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
|
3093 | ||
|
|
2
10月 25
|
3888 | ||
|
|
1
11月 21
|
5080 | ||
|
|
1
9月 21
|
6703 | ||
|
|
1
6月 21
|
3377 |