summaryrefslogtreecommitdiff
path: root/addons/auth_ldap
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-12-12 11:38:25 +0100
committerChristophe Simonis <chs@odoo.com>2018-12-12 11:38:25 +0100
commitf351dd8cab980a67ee17c431574d8ba9c37b8fdc (patch)
tree2cb6e64d0a5083aade80206ea7fbfbcda69992b8 /addons/auth_ldap
parent1144235d06a2ad42060c05d4ece145ce46a660e1 (diff)
parent047e2b28de4653f11e097e6232d7fb79d54ce3af (diff)
[MERGE] forward port branch 12.0 up to 047e2b28de4
Diffstat (limited to 'addons/auth_ldap')
-rw-r--r--addons/auth_ldap/i18n/nb.po8
-rw-r--r--addons/auth_ldap/models/res_company_ldap.py2
2 files changed, 6 insertions, 4 deletions
diff --git a/addons/auth_ldap/i18n/nb.po b/addons/auth_ldap/i18n/nb.po
index c3f7bc3f014..07514110029 100644
--- a/addons/auth_ldap/i18n/nb.po
+++ b/addons/auth_ldap/i18n/nb.po
@@ -4,13 +4,15 @@
#
# Translators:
# Martin Trigaux, 2018
+# Marius Stedjan <marius@stedjan.com>, 2018
+#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server saas~11.5\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-09-21 13:17+0000\n"
-"PO-Revision-Date: 2018-09-21 13:17+0000\n"
-"Last-Translator: Martin Trigaux, 2018\n"
+"PO-Revision-Date: 2018-08-24 09:15+0000\n"
+"Last-Translator: Marius Stedjan <marius@stedjan.com>, 2018\n"
"Language-Team: Norwegian Bokmål (https://www.transifex.com/odoo/teams/41243/nb/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -45,7 +47,7 @@ msgstr ""
#. module: auth_ldap
#: model:ir.model,name:auth_ldap.model_res_config_settings
msgid "Config Settings"
-msgstr ""
+msgstr "Konfigurasjonsinnstillinger"
#. module: auth_ldap
#: model:ir.model.fields,field_description:auth_ldap.field_res_company_ldap__create_user
diff --git a/addons/auth_ldap/models/res_company_ldap.py b/addons/auth_ldap/models/res_company_ldap.py
index 7f36b1ba2dc..7c809f3aaeb 100644
--- a/addons/auth_ldap/models/res_company_ldap.py
+++ b/addons/auth_ldap/models/res_company_ldap.py
@@ -192,7 +192,7 @@ class CompanyLDAP(models.Model):
elif conf['create_user']:
_logger.debug("Creating new Odoo user \"%s\" from LDAP" % login)
values = self._map_ldap_attributes(conf, login, ldap_entry)
- SudoUser = self.env['res.users'].sudo()
+ SudoUser = self.env['res.users'].sudo().with_context(no_reset_password=True)
if conf['user']:
values['active'] = True
return SudoUser.browse(conf['user'][0]).copy(default=values).id