Odoo Help

Welcome!

This community 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.

0

avoiding loading screen? Multi threading in openerp?

By
Jo
on 1/22/15, 3:57 AM 737 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'})       

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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