Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2020 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

thanks a lot.

Post correlati Risposte Visualizzazioni Attività
1
dic 22
2671
1
nov 21
4288
1
set 21
6024
1
giu 21
2939
1
ago 20
4458