purchase_id = self.env['purchase.order'].sudo().create({ 'partner_id':self.vendor.id, 'company_id':self.env.user.company_id.id, })
my Code is working fine & Generate Purchase Order ....
but create wrong Deliver To
any solution pls
Please post the configuration settings you are using for Inventory and Warehouses
Also, for configuration settings for Purchase
can you tell me which setting i need to activate or which setting i will post ?