콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
1953 화면

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