we created an add-on which puts different information from business one into another database. Its necessary to get data during a job at night for every company.
How can I perform an automatic company change, like the company change I perform manually. I tried the way with clicking the menu "company change", choose the company from the matrix an click ok.
The problem: the add-on crashes after company change. if i do this manually everything is ok!!!