Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2029 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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
Ảnh đại diện
Huỷ bỏ
Tác giả

thanks a lot.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 22
2680
1
thg 11 21
4331
1
thg 9 21
6028
1
thg 6 21
2946
1
thg 8 20
4464