[enh] Allow to install Odoo 12

This commit is contained in:
ljf 2018-12-13 13:07:01 +01:00
parent 1a65e55969
commit 14965bd324
2 changed files with 3 additions and 3 deletions

View file

@ -38,8 +38,8 @@
"en": "Which version of Odoo do you want to install?", "en": "Which version of Odoo do you want to install?",
"fr": "Quelle version d'Odoo souhaitez-vous installer ?" "fr": "Quelle version d'Odoo souhaitez-vous installer ?"
}, },
"choices": ["8.0", "9.0", "10.0", "11.0"], "choices": ["8.0", "9.0", "10.0", "11.0", "12.0"],
"default": "11.0" "default": "12.0"
}, { }, {
"name": "oca", "name": "oca",
"type": "boolean", "type": "boolean",

View file

@ -67,7 +67,7 @@ function setup_database() {
# Configure language, timezone and ldap # Configure language, timezone and ldap
sudo -u odoo $bin_file shell -c $conf_file -d $database <<< \ sudo -u odoo $bin_file shell -c $conf_file -d $database <<< \
" "
self.change_password('admin','$admin_password') self.env['res.users'].search([['login', '=', 'admin']])[0].write({'password': '$admin_password'})
self.env.cr.commit() self.env.cr.commit()
self.write({'tz':'$tz','lang':'$lang'}) self.write({'tz':'$tz','lang':'$lang'})
self.env.cr.commit() self.env.cr.commit()