1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libreerp_ynh.git synced 2024-09-03 19:36:13 +02:00

[fix] Concurent access

This commit is contained in:
root 2016-12-14 22:12:22 +01:00
parent c67112a771
commit 9bcb8e1a04

View file

@ -120,13 +120,15 @@ sudo service postgresql reload
database=${domain//./-} database=${domain//./-}
# Load translation # 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 sudo /usr/bin/openerp-server -c /etc/odoo/openerp-server.conf --stop-after-init -d $database --load-language $lang
# Configure language, timezone and ldap # 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.change_password('admin','$admin_password')
self.env.cr.commit()
self.write({'tz':'$tz','lang':'$lang'}) self.write({'tz':'$tz','lang':'$lang'})
self.env.cr.commit()
template=env['res.users'].create({ template=env['res.users'].create({
'login':'template', 'login':'template',
'password':'', 'password':'',
@ -136,6 +138,7 @@ template=env['res.users'].create({
'tz':'$tz', 'tz':'$tz',
'lang':'$lang' 'lang':'$lang'
}) })
self.env.cr.commit()
self.company_id.ldaps.create({ self.company_id.ldaps.create({
'ldap_server':'localhost', 'ldap_server':'localhost',
'ldap_server_port':389, 'ldap_server_port':389,