OK. Based on that I changed the code to load only English in setup_languages() as follows:
langs = Lang.find(['code', '=', 'en_US']) # Load only US English
#langs = Lang.find() # Comment out Load all languages
print ("languagues are : ", langs)
Now it is fast (about 3-4 mins) but I get following error in Tryton client when I click say Invoices. What should I change instead to have it fast. I need only one language for now.
Error
======
Traceback (most recent call last):
File "/trytond/wsgi.py", line 47, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 59, in rpc
request, database_name, *request.params)
File "/trytond/wsgi.py", line 39, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 40, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 177, in _dispatch
obj, method = get_object_method(request, pool)
File "/trytond/protocols/dispatcher.py", line 162, in get_object_method
return pool.get(name, type=type), method
File "/trytond/pool.py", line 172, in get
return self._pool[self.database_name][type][name]
KeyError: u'account.invoice'