SpreeTravel / odoo-saas-tools

Odoo (OpenERP) addons to provide SaaS
5 stars 4 forks source link

RegistryManager.get(db_name) #10

Open yelizariev opened 9 years ago

yelizariev commented 9 years ago

This

            registry = openerp.modules.registry.RegistryManager.get(db_name)
            with registry.cursor() as cr:

works only if db_name located on same server as the database where such code is executed. So it should be removed from saas_portal. Command to saas_server should be sent instead

./saas_portal/models/wizard.py:47:                with registry.cursor() as rcr:
./saas_portal/controllers/main.py:58:        with registry.cursor() as cr: