Skip to content

Commit

Permalink
[MIG] users_ldap_populate: Migration to 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosRoca13 authored and carolinafernandez-tecnativa committed Sep 27, 2023
1 parent ccb7204 commit eefbafc
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 53 deletions.
26 changes: 15 additions & 11 deletions users_ldap_populate/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
LDAP Populate
=============

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:eb65c8768a3d64adb8e08de006eece48f104e50660e6b5024223ba29657b63e1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
Expand All @@ -14,16 +17,16 @@ LDAP Populate
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github
:target: https://github.com/OCA/server-auth/tree/13.0/users_ldap_populate
:target: https://github.com/OCA/server-auth/tree/14.0/users_ldap_populate
:alt: OCA/server-auth
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-auth-13-0/server-auth-13-0-users_ldap_populate
:target: https://translation.odoo-community.org/projects/server-auth-14-0/server-auth-14-0-users_ldap_populate
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/251/13.0
:alt: Try me on Runbot
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-auth&target_branch=14.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|
|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends the functionality of auth_ldap by adding functionality so
that users can be populated from a LDAP server.
Expand Down Expand Up @@ -54,8 +57,8 @@ Bug Tracker

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-auth/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-auth/issues/new?body=module:%20users_ldap_populate%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-auth/issues/new?body=module:%20users_ldap_populate%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Expand All @@ -71,10 +74,11 @@ Contributors
~~~~~~~~~~~~

* Therp BV <https://therp.nl>
* Tecnativa <www.tecnativa.com>
* `Tecnativa <https://www.tecnativa.com>`_:

* Alexandre Díaz
* João Marques
* Carlos Roca

Maintainers
~~~~~~~~~~~
Expand All @@ -97,6 +101,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-joao-p-marques|

This module is part of the `OCA/server-auth <https://github.com/OCA/server-auth/tree/13.0/users_ldap_populate>`_ project on GitHub.
This module is part of the `OCA/server-auth <https://github.com/OCA/server-auth/tree/14.0/users_ldap_populate>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
8 changes: 6 additions & 2 deletions users_ldap_populate/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/gpl.html).
{
"name": "LDAP Populate",
"version": "13.0.1.0.0",
"version": "14.0.1.0.0",
"author": "Therp BV, Odoo Community Association (OCA)",
"maintainers": ["joao-p-marques"],
"website": "https://github.com/OCA/server-auth",
"license": "AGPL-3",
"category": "Tools",
"depends": ["auth_ldap"],
"external_dependencies": {"python": ["python-ldap"]},
"data": ["views/users_ldap.xml", "views/populate_wizard.xml"],
"data": [
"security/ir.model.access.csv",
"views/users_ldap.xml",
"views/populate_wizard.xml",
],
"installable": True,
}
13 changes: 7 additions & 6 deletions users_ldap_populate/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-06-26 20:39+0000\n"
"PO-Revision-Date: 2018-01-06 02:25+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"PO-Revision-Date: 2023-04-17 16:35+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.14.1\n"

#. module: users_ldap_populate
#: model_terms:ir.ui.view,arch_db:users_ldap_populate.populate_wizard_view
Expand Down Expand Up @@ -47,7 +48,7 @@ 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 "Nome da visualizzare"
msgstr "Nome visualizzato"

#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard__id
Expand All @@ -67,12 +68,12 @@ msgstr "Ultima modifica il"
#. 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 "Last Updated by"
msgstr "Ultimo aggiornamento di"

#. 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 "Last Updated on"
msgstr "Ultimo aggiornamento il"

#. module: users_ldap_populate
#: model:ir.model.fields,help:users_ldap_populate.field_res_company_ldap__no_deactivate_user_ids
Expand Down
11 changes: 6 additions & 5 deletions users_ldap_populate/i18n/sl.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-06-26 20:39+0000\n"
"PO-Revision-Date: 2017-12-01 02:11+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"PO-Revision-Date: 2023-03-31 21:25+0000\n"
"Last-Translator: Matjaz Mozetic <matjaz@luxim.si>\n"
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
"Language: sl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \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"
"X-Generator: Weblate 4.14.1\n"

#. module: users_ldap_populate
#: model_terms:ir.ui.view,arch_db:users_ldap_populate.populate_wizard_view
Expand Down Expand Up @@ -48,7 +49,7 @@ 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 "Prikazni naziv"
msgstr "Prikazani naziv"

#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard__id
Expand Down
5 changes: 4 additions & 1 deletion users_ldap_populate/i18n/users_ldap_populate.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
Expand Down Expand Up @@ -39,11 +39,13 @@ msgid "Deactivate unknown users"
msgstr ""

#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap__display_name
#: 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__id
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard__id
msgid "ID"
msgstr ""
Expand All @@ -54,6 +56,7 @@ msgid "LDAP Configuration"
msgstr ""

#. module: users_ldap_populate
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap____last_update
#: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard____last_update
msgid "Last Modified on"
msgstr ""
Expand Down
3 changes: 2 additions & 1 deletion users_ldap_populate/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
* Therp BV <https://therp.nl>
* Tecnativa <www.tecnativa.com>
* `Tecnativa <https://www.tecnativa.com>`_:

* Alexandre Díaz
* João Marques
* Carlos Roca
2 changes: 2 additions & 0 deletions users_ldap_populate/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_res_company_ldap_populate_wizard,access_res_company_ldap_populate_wizard,model_res_company_ldap_populate_wizard,base.group_system,1,1,1,1
51 changes: 27 additions & 24 deletions users_ldap_populate/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>LDAP Populate</title>
<style type="text/css">

/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.

See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/

Expand Down Expand Up @@ -366,26 +366,28 @@ <h1 class="title">LDAP Populate</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:eb65c8768a3d64adb8e08de006eece48f104e50660e6b5024223ba29657b63e1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/server-auth/tree/13.0/users_ldap_populate"><img alt="OCA/server-auth" src="https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/server-auth-13-0/server-auth-13-0-users_ldap_populate"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/251/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-auth/tree/14.0/users_ldap_populate"><img alt="OCA/server-auth" src="https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-auth-14-0/server-auth-14-0-users_ldap_populate"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/server-auth&amp;target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module extends the functionality of auth_ldap by adding functionality so
that users can be populated from a LDAP server.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#usage" id="id1">Usage</a></li>
<li><a class="reference internal" href="#known-issues-roadmap" id="id2">Known issues / Roadmap</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id3">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id4">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id5">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li>
<li><a class="reference internal" href="#usage" id="toc-entry-1">Usage</a></li>
<li><a class="reference internal" href="#known-issues-roadmap" id="toc-entry-2">Known issues / Roadmap</a></li>
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-3">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-4">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-5">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-6">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-7">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#id1">Usage</a></h1>
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p>To use this module, you need to:</p>
<ol class="arabic simple">
<li>Go to ‘Settings’ -&gt; ‘General Settings’</li>
Expand All @@ -396,48 +398,49 @@ <h1><a class="toc-backref" href="#id1">Usage</a></h1>
</ol>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#id2">Known issues / Roadmap</a></h1>
<h1><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h1>
<ul class="simple">
<li>Improve test coverage and port its LDAP Patch method to a module where they can be imported and reutilized on other tests.</li>
</ul>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1>
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-auth/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/server-auth/issues/new?body=module:%20users_ldap_populate%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/server-auth/issues/new?body=module:%20users_ldap_populate%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#id4">Credits</a></h1>
<h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#id5">Authors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
<ul class="simple">
<li>Therp BV</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#id6">Contributors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<ul class="simple">
<li>Therp BV &lt;<a class="reference external" href="https://therp.nl">https://therp.nl</a>&gt;</li>
<li>Tecnativa &lt;www.tecnativa.com&gt;<ul>
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
<li>Alexandre Díaz</li>
<li>João Marques</li>
<li>Carlos Roca</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#id7">Maintainers</a></h2>
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external" href="https://github.com/joao-p-marques"><img alt="joao-p-marques" src="https://github.com/joao-p-marques.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-auth/tree/13.0/users_ldap_populate">OCA/server-auth</a> project on GitHub.</p>
<p><a class="reference external image-reference" href="https://github.com/joao-p-marques"><img alt="joao-p-marques" src="https://github.com/joao-p-marques.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-auth/tree/14.0/users_ldap_populate">OCA/server-auth</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions users_ldap_populate/tests/test_users_ldap_populate.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def test_users_ldap_populate(self):
ldap_populate_wizard = self.env["res.company.ldap.populate_wizard"].browse(
res["res_id"]
)
self.assertEquals(ldap_populate_wizard.users_created, 1)
self.assertEquals(
self.assertEqual(ldap_populate_wizard.users_created, 1)
self.assertEqual(
ldap_populate_wizard.users_deactivated, previous_users_count - 1
) # Admin is not deactivated
self.assertFalse(self.env.ref("base.user_demo").active)
Expand Down Expand Up @@ -111,7 +111,7 @@ def test_users_ldap_populate_reactivate(self):
ldap_populate_wizard = self.env["res.company.ldap.populate_wizard"].browse(
res["res_id"]
)
self.assertEquals(ldap_populate_wizard.users_created, 1)
self.assertEqual(ldap_populate_wizard.users_created, 1)
self.assertTrue(inactive_user.active)
self.assertTrue(
self.env["res.users"].search([("login", "=", "test_inactive")])
Expand Down

0 comments on commit eefbafc

Please sign in to comment.