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
회신
1953
화면
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
|
2535 | ||
|
1
11월 21
|
4137 | ||
|
1
9월 21
|
5878 | ||
|
1
6월 21
|
2842 | ||
|
1
8월 20
|
4321 |