Hi all,
Here i creating a database within openerp custom module. ERP is loading while creating database (i know it takes background process for db creation).
but i want creating database in background while clicking "create database" button. i don't want affect user interface by loading screen. How can i achieve this please help me...
and i running openerp under gunicorn mode...
is possible in python threading?
Here is my code
def create_template(self, cr, uid, ids, context=None):
obj = self.browse(cr, uid, ids[0])
openerp.service.db.exp_create_database(obj.database, False, 'en_US')
return self.write(cr, uid, obj.id, {'state': 'confirmed'})