Skip to content

Commit

Permalink
[IMP] automatically sync server before creating new database
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Yelizariev committed Jul 22, 2015
1 parent eaa36dc commit 76a1b53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Expand Up @@ -111,7 +111,6 @@ Usage

8. Try to create database from template
* open SaaS/Saas/Plans - select plan
* click [Sync Server]
* click [Create Client]
* set DB Name, e.g. client-x.odoo.local
* click [Create]
Expand Down
2 changes: 2 additions & 0 deletions saas_portal/models/saas_portal.py
Expand Up @@ -172,6 +172,8 @@ def _create_new_database(self, scheme='http', dbname=None, client_id=None, partn
if not server:
server = self.env['saas_portal.server'].get_saas_server()

server.action_sync_server()

vals = {'name': dbname or self.generate_dbname()[0],
'server_id': server.id,
'plan_id': self.id,
Expand Down

0 comments on commit 76a1b53

Please sign in to comment.