From 9bcb8e1a047094d7c494c480c0193dd72a85f5cb Mon Sep 17 00:00:00 2001 From: root Date: Wed, 14 Dec 2016 22:12:22 +0100 Subject: [PATCH] [fix] Concurent access --- scripts/install | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index bdc7a65..faf2d1c 100644 --- a/scripts/install +++ b/scripts/install @@ -120,13 +120,15 @@ sudo service postgresql reload database=${domain//./-} # Load translation +sudo /usr/bin/openerp-server -c /etc/odoo/openerp-server.conf --stop-after-init -d $database sudo /usr/bin/openerp-server -c /etc/odoo/openerp-server.conf --stop-after-init -d $database --load-language $lang - # Configure language, timezone and ldap -sudo /usr/bin/openerp-server shell -c /etc/odoo/openerp-server.conf --stop-after-init -d $database <<< \ +sudo /usr/bin/openerp-server shell -c /etc/odoo/openerp-server.conf -d $database <<< \ " self.change_password('admin','$admin_password') +self.env.cr.commit() self.write({'tz':'$tz','lang':'$lang'}) +self.env.cr.commit() template=env['res.users'].create({ 'login':'template', 'password':'', @@ -136,6 +138,7 @@ template=env['res.users'].create({ 'tz':'$tz', 'lang':'$lang' }) +self.env.cr.commit() self.company_id.ldaps.create({ 'ldap_server':'localhost', 'ldap_server_port':389,