Odoo Help


avoiding loading screen? Multi threading in openerp?

on 1/22/15, 3:57 AM 1,322 views

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'})       

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 1/22/15, 3:57 AM
Seen: 1322 times
Last updated: 3/16/15, 8:10 AM