Hello Odooers,
I have enabled multi company mode, so i can be able to switch to any company which i have access.
But i am fetching current company_id in python and it's giving me default company. Also i have noticed few points:
- I can be able to select more than one company to switch (which is not possible in odoo 12)
- Whenever i switch to any company then my active company_id is not changing.
Can anyone suggest me how to get current company_id in multicompany in odoo13
try with
self.env.company
self.env.company worked for me