Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2299 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
2899
1
nov 21
4697
1
set 21
6386
1
giu 21
3172
1
ago 20
4742