Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
2094 Visualizações

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?

Avatar
Cancelar
Melhor resposta

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
Avatar
Cancelar
Autor

thanks a lot.

Publicações relacionadas Respostas Visualizações Atividade
1
dez. 22
2732
1
nov. 21
4411
1
out. 21
6119
1
jun. 21
3005
1
ago. 20
4529