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

[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?",
"fr": "Quelle version d'Odoo souhaitez-vous installer ?"
},
"choices": ["8.0", "9.0", "10.0", "11.0"],
"default": "11.0"
"choices": ["8.0", "9.0", "10.0", "11.0", "12.0"],
"default": "12.0"
}, {
"name": "oca",
"type": "boolean",

View file

@ -67,7 +67,7 @@ function setup_database() {
# Configure language, timezone and ldap
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.write({'tz':'$tz','lang':'$lang'})
self.env.cr.commit()