diff --git a/manifest.json b/manifest.json index d6d0f7b..a0ad2e5 100644 --- a/manifest.json +++ b/manifest.json @@ -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", diff --git a/scripts/install b/scripts/install index 0c67829..bb5aeff 100644 --- a/scripts/install +++ b/scripts/install @@ -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()