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?
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
- सीआरएम
- e-Commerce
- लेखांकन
- इन्वेंटरी
- PoS
- Project
- MRP
This question has been flagged
            
                1
                
                    Reply
                
            
        
        
            
                2436
                
                    Views
                
            
        
    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
thanks a lot.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|  | 1 दिस॰ 22  | 2988 | ||
|  | 2 अक्तू॰ 25  | 3791 | ||
|  | 1 नव॰ 21  | 4826 | ||
|  | 1 सित॰ 21  | 6539 | ||
|  | 1 जून 21  | 3264 | 
