Browse Source

Merge pull request #334 from gurneyalex/9.0-fix-users_ldap_populate

9.0 users_ldap_populate fix 2 bugs
pull/342/head
Moises Lopez - https://www.vauxoo.com/ 9 years ago
parent
commit
5c26f4fc40
  1. 14
      users_ldap_populate/i18n/de.po
  2. 14
      users_ldap_populate/i18n/en.po
  3. 14
      users_ldap_populate/i18n/es.po
  4. 34
      users_ldap_populate/i18n/fr.po
  5. 14
      users_ldap_populate/i18n/fr_CA.po
  6. 14
      users_ldap_populate/i18n/it.po
  7. 88
      users_ldap_populate/i18n/nl.po
  8. 14
      users_ldap_populate/i18n/pt_BR.po
  9. 18
      users_ldap_populate/i18n/ru.po
  10. 17
      users_ldap_populate/i18n/sl.po
  11. 95
      users_ldap_populate/i18n/users_ldap_populate.pot
  12. 10
      users_ldap_populate/model/users_ldap.py

14
users_ldap_populate/i18n/de.po

@ -7,14 +7,15 @@ msgid ""
msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-12-15 01:55+0000\n"
"POT-Creation-Date: 2016-01-21 14:02+0000\n"
"PO-Revision-Date: 2015-12-13 15:21+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: German (http://www.transifex.com/oca/OCA-server-tools-9-0/language/de/)\n"
"Language-Team: German (http://www.transifex.com/oca/OCA-server-tools-9-0/"
"language/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: users_ldap_populate
@ -67,6 +68,13 @@ msgstr "Zuletzt aktualisiert am"
msgid "Name"
msgstr "Name"
#. module: users_ldap_populate
#: code:addons/users_ldap_populate/model/users_ldap.py:64
#, python-format
msgid ""
"No login attribute found: Could not extract login attribute from filter %s"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_users_created
msgid "Number of users created"

14
users_ldap_populate/i18n/en.po

@ -7,14 +7,15 @@ msgid ""
msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-12-15 01:55+0000\n"
"POT-Creation-Date: 2016-01-21 14:02+0000\n"
"PO-Revision-Date: 2015-12-13 15:21+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: English (http://www.transifex.com/oca/OCA-server-tools-9-0/language/en/)\n"
"Language-Team: English (http://www.transifex.com/oca/OCA-server-tools-9-0/"
"language/en/)\n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: en\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: users_ldap_populate
@ -67,6 +68,13 @@ msgstr "Last Updated on"
msgid "Name"
msgstr "Name"
#. module: users_ldap_populate
#: code:addons/users_ldap_populate/model/users_ldap.py:64
#, python-format
msgid ""
"No login attribute found: Could not extract login attribute from filter %s"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_users_created
msgid "Number of users created"

14
users_ldap_populate/i18n/es.po

@ -8,14 +8,15 @@ msgid ""
msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-01-06 09:17+0000\n"
"POT-Creation-Date: 2016-01-21 14:02+0000\n"
"PO-Revision-Date: 2016-01-05 11:54+0000\n"
"Last-Translator: Antonio Trueba\n"
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-server-tools-9-0/language/es/)\n"
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-server-tools-9-0/"
"language/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: users_ldap_populate
@ -68,6 +69,13 @@ msgstr "Última actualización en"
msgid "Name"
msgstr "Nombre"
#. module: users_ldap_populate
#: code:addons/users_ldap_populate/model/users_ldap.py:64
#, python-format
msgid ""
"No login attribute found: Could not extract login attribute from filter %s"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_users_created
msgid "Number of users created"

34
users_ldap_populate/i18n/fr.po

@ -7,20 +7,21 @@ msgid ""
msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-12-15 01:55+0000\n"
"POT-Creation-Date: 2016-01-21 14:02+0000\n"
"PO-Revision-Date: 2015-12-13 15:21+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: French (http://www.transifex.com/oca/OCA-server-tools-9-0/language/fr/)\n"
"Language-Team: French (http://www.transifex.com/oca/OCA-server-tools-9-0/"
"language/fr/)\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: users_ldap_populate
#: model:ir.ui.view,arch_db:users_ldap_populate.populate_wizard_view
msgid "Add populate button to ldap view"
msgstr ""
msgstr "Ajout du bouton Remplir à la vue LDAP"
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_create_uid
@ -35,7 +36,7 @@ msgstr "Créé le"
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_display_name
msgid "Display Name"
msgstr ""
msgstr "Nom d'affichage"
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_id
@ -45,12 +46,12 @@ msgstr "ID"
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_ldap_id
msgid "LDAP Configuration"
msgstr ""
msgstr "Configuration LDAP"
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard___last_update
msgid "Last Modified on"
msgstr ""
msgstr "Dernière modification le"
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_write_uid
@ -67,32 +68,39 @@ msgstr "Dernière mise à jour le"
msgid "Name"
msgstr "Nom"
#. module: users_ldap_populate
#: code:addons/users_ldap_populate/model/users_ldap.py:64
#, python-format
msgid ""
"No login attribute found: Could not extract login attribute from filter %s"
msgstr "Pas d'attribut de login trouvé: impossible de trouver l'attribut de login dans le filtre %s"
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_users_created
msgid "Number of users created"
msgstr ""
msgstr "Nombre d'utilisateurs créés"
#. module: users_ldap_populate
#: model:ir.ui.view,arch_db:users_ldap_populate.populate_wizard_view
msgid "OK"
msgstr ""
msgstr "OK"
#. module: users_ldap_populate
#: model:ir.ui.view,arch_db:users_ldap_populate.company_form_view
msgid "Populate"
msgstr ""
msgstr "Remplir"
#. module: users_ldap_populate
#: model:ir.ui.view,arch_db:users_ldap_populate.company_form_view
msgid "Populate user database"
msgstr ""
msgstr "Remplir la base d'utilisateurs"
#. module: users_ldap_populate
#: model:ir.model,name:users_ldap_populate.model_res_company_ldap_populate_wizard
msgid "Populate users from LDAP"
msgstr ""
msgstr "Remplir les utilisateurs depuis le LDAP"
#. module: users_ldap_populate
#: model:ir.model,name:users_ldap_populate.model_res_company_ldap
msgid "res.company.ldap"
msgstr ""
msgstr "res.company.ldap"

14
users_ldap_populate/i18n/fr_CA.po

@ -7,14 +7,15 @@ msgid ""
msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-12-15 01:55+0000\n"
"POT-Creation-Date: 2016-01-21 14:02+0000\n"
"PO-Revision-Date: 2015-12-13 15:21+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: French (Canada) (http://www.transifex.com/oca/OCA-server-tools-9-0/language/fr_CA/)\n"
"Language-Team: French (Canada) (http://www.transifex.com/oca/OCA-server-"
"tools-9-0/language/fr_CA/)\n"
"Language: fr_CA\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: fr_CA\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: users_ldap_populate
@ -67,6 +68,13 @@ msgstr ""
msgid "Name"
msgstr "Nom"
#. module: users_ldap_populate
#: code:addons/users_ldap_populate/model/users_ldap.py:64
#, python-format
msgid ""
"No login attribute found: Could not extract login attribute from filter %s"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_users_created
msgid "Number of users created"

14
users_ldap_populate/i18n/it.po

@ -7,14 +7,15 @@ msgid ""
msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-12-15 01:55+0000\n"
"POT-Creation-Date: 2016-01-21 14:02+0000\n"
"PO-Revision-Date: 2015-12-13 15:21+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: Italian (http://www.transifex.com/oca/OCA-server-tools-9-0/language/it/)\n"
"Language-Team: Italian (http://www.transifex.com/oca/OCA-server-tools-9-0/"
"language/it/)\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: it\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: users_ldap_populate
@ -67,6 +68,13 @@ msgstr ""
msgid "Name"
msgstr "Nome"
#. module: users_ldap_populate
#: code:addons/users_ldap_populate/model/users_ldap.py:64
#, python-format
msgid ""
"No login attribute found: Could not extract login attribute from filter %s"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_users_created
msgid "Number of users created"

88
users_ldap_populate/i18n/nl.po

@ -6,14 +6,100 @@ msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 6.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-03-14 17:41+0000\n"
"POT-Creation-Date: 2016-01-21 14:02+0000\n"
"PO-Revision-Date: 2014-03-17 10:57+0000\n"
"Last-Translator: michele <michelemilidoni@gmail.com>\n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2014-05-24 06:46+0000\n"
"X-Generator: Launchpad (build 17017)\n"
#. module: users_ldap_populate
#: model:ir.ui.view,arch_db:users_ldap_populate.populate_wizard_view
msgid "Add populate button to ldap view"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_create_uid
msgid "Created by"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_create_date
msgid "Created on"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_display_name
msgid "Display Name"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_id
msgid "ID"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_ldap_id
msgid "LDAP Configuration"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard___last_update
msgid "Last Modified on"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_write_uid
msgid "Last Updated by"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_write_date
msgid "Last Updated on"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_name
msgid "Name"
msgstr ""
#. module: users_ldap_populate
#: code:addons/users_ldap_populate/model/users_ldap.py:64
#, python-format
msgid ""
"No login attribute found: Could not extract login attribute from filter %s"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_users_created
msgid "Number of users created"
msgstr ""
#. module: users_ldap_populate
#: model:ir.ui.view,arch_db:users_ldap_populate.populate_wizard_view
msgid "OK"
msgstr ""
#. module: users_ldap_populate
#: model:ir.ui.view,arch_db:users_ldap_populate.company_form_view
msgid "Populate"
msgstr ""
#. module: users_ldap_populate
#: model:ir.ui.view,arch_db:users_ldap_populate.company_form_view
msgid "Populate user database"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model,name:users_ldap_populate.model_res_company_ldap_populate_wizard
msgid "Populate users from LDAP"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model,name:users_ldap_populate.model_res_company_ldap
msgid "res.company.ldap"
msgstr ""

14
users_ldap_populate/i18n/pt_BR.po

@ -8,14 +8,15 @@ msgid ""
msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-12-15 01:55+0000\n"
"POT-Creation-Date: 2016-01-21 14:02+0000\n"
"PO-Revision-Date: 2015-12-13 15:21+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-server-tools-9-0/language/pt_BR/)\n"
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-server-"
"tools-9-0/language/pt_BR/)\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: pt_BR\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: users_ldap_populate
@ -68,6 +69,13 @@ msgstr "Última atualização em"
msgid "Name"
msgstr "Nome"
#. module: users_ldap_populate
#: code:addons/users_ldap_populate/model/users_ldap.py:64
#, python-format
msgid ""
"No login attribute found: Could not extract login attribute from filter %s"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_users_created
msgid "Number of users created"

18
users_ldap_populate/i18n/ru.po

@ -7,15 +7,18 @@ msgid ""
msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-12-15 01:55+0000\n"
"POT-Creation-Date: 2016-01-21 14:02+0000\n"
"PO-Revision-Date: 2015-12-13 15:21+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: Russian (http://www.transifex.com/oca/OCA-server-tools-9-0/language/ru/)\n"
"Language-Team: Russian (http://www.transifex.com/oca/OCA-server-tools-9-0/"
"language/ru/)\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: ru\n"
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n"
"%100>=11 && n%100<=14)? 2 : 3);\n"
#. module: users_ldap_populate
#: model:ir.ui.view,arch_db:users_ldap_populate.populate_wizard_view
@ -67,6 +70,13 @@ msgstr ""
msgid "Name"
msgstr "Название"
#. module: users_ldap_populate
#: code:addons/users_ldap_populate/model/users_ldap.py:64
#, python-format
msgid ""
"No login attribute found: Could not extract login attribute from filter %s"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_users_created
msgid "Number of users created"

17
users_ldap_populate/i18n/sl.po

@ -8,15 +8,17 @@ msgid ""
msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-12-15 01:55+0000\n"
"POT-Creation-Date: 2016-01-21 14:02+0000\n"
"PO-Revision-Date: 2015-12-14 06:46+0000\n"
"Last-Translator: Matjaž Mozetič <m.mozetic@matmoz.si>\n"
"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-server-tools-9-0/language/sl/)\n"
"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-server-tools-9-0/"
"language/sl/)\n"
"Language: sl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: sl\n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
"%100==4 ? 2 : 3);\n"
#. module: users_ldap_populate
#: model:ir.ui.view,arch_db:users_ldap_populate.populate_wizard_view
@ -68,6 +70,13 @@ msgstr "Zadnjič posodobljeno"
msgid "Name"
msgstr "Naziv"
#. module: users_ldap_populate
#: code:addons/users_ldap_populate/model/users_ldap.py:64
#, python-format
msgid ""
"No login attribute found: Could not extract login attribute from filter %s"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_users_created
msgid "Number of users created"

95
users_ldap_populate/i18n/users_ldap_populate.pot

@ -1,12 +1,13 @@
# Translation of OpenERP Server.
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * users_ldap_populate
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Project-Id-Version: Odoo Server 9.0e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-03-14 17:41+0000\n"
"PO-Revision-Date: 2014-03-14 17:41+0000\n"
"POT-Creation-Date: 2016-01-21 14:02+0000\n"
"PO-Revision-Date: 2016-01-21 14:02+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@ -14,3 +15,89 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: users_ldap_populate
#: model:ir.ui.view,arch_db:users_ldap_populate.populate_wizard_view
msgid "Add populate button to ldap view"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_create_uid
msgid "Created by"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_create_date
msgid "Created on"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_display_name
msgid "Display Name"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_id
msgid "ID"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_ldap_id
msgid "LDAP Configuration"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard___last_update
msgid "Last Modified on"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_write_uid
msgid "Last Updated by"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_write_date
msgid "Last Updated on"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_name
msgid "Name"
msgstr ""
#. module: users_ldap_populate
#: code:addons/users_ldap_populate/model/users_ldap.py:64
#, python-format
msgid "No login attribute found: Could not extract login attribute from filter %s"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard_users_created
msgid "Number of users created"
msgstr ""
#. module: users_ldap_populate
#: model:ir.ui.view,arch_db:users_ldap_populate.populate_wizard_view
msgid "OK"
msgstr ""
#. module: users_ldap_populate
#: model:ir.ui.view,arch_db:users_ldap_populate.company_form_view
msgid "Populate"
msgstr ""
#. module: users_ldap_populate
#: model:ir.ui.view,arch_db:users_ldap_populate.company_form_view
msgid "Populate user database"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model,name:users_ldap_populate.model_res_company_ldap_populate_wizard
msgid "Populate users from LDAP"
msgstr ""
#. module: users_ldap_populate
#: model:ir.model,name:users_ldap_populate.model_res_company_ldap
msgid "res.company.ldap"
msgstr ""

10
users_ldap_populate/model/users_ldap.py

@ -21,7 +21,7 @@
import re
from openerp import models, api
from openerp import models, api, _
from openerp.exceptions import UserError
import logging
@ -52,7 +52,7 @@ class CompanyLDAP(models.Model):
logger.debug("action_populate called on res.company.ldap ids %s",
self.ids)
for conf in self.get_ldap_dicts(self.cr, self.ids):
for conf in self.get_ldap_dicts():
if not conf['create_user']:
continue
attribute_match = re.search(
@ -61,11 +61,11 @@ class CompanyLDAP(models.Model):
login_attr = attribute_match.group(1)
else:
raise UserError(
"No login attribute found"
"Could not extract login attribute from filter %s" %
_("No login attribute found: "
"Could not extract login attribute from filter %s") %
conf['ldap_filter'])
ldap_filter = filter_format(conf['ldap_filter'] % '*', ())
for result in self.query(conf, ldap_filter):
for result in self.query(conf, ldap_filter.encode('utf-8')):
self.get_or_create_user(conf, result[1][login_attr][0], result)
users_no_after = users_pool.search_count([])

Loading…
Cancel
Save