Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
2021 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
2673
1
nov. 21
4291
1
set. 21
6025
1
jun. 21
2941
1
ago. 20
4459