Hello All,
What is the missing thing?
I got AttributeError: environments error, while using thread.
Here is the sample code of my method
class test_class(models.TransientModel):
def main_method
#Code of method
@api.one
def test_thread(self):
thread_var = threading.Thread(target=self.main_method)
thread_var.start()
The method which is called from thread that the method of Transient Model
Regards,
Prince.