Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] users_ldap_mail: Migration to version 16.0 #512

Merged
merged 13 commits into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions setup/users_ldap_mail/odoo/addons/users_ldap_mail
6 changes: 6 additions & 0 deletions setup/users_ldap_mail/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
108 changes: 108 additions & 0 deletions users_ldap_mail/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
=====================================
LDAP mapping for user name and e-mail
=====================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
: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/14.0/users_ldap_mail
: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-14-0/server-auth-14-0-users_ldap_mail
: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/14.0
:alt: Try me on Runbot

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

This module extends the functionality of the auth_ldap module to support mail
from LDAP and to allow you to get an e-mail address from LDAP accounts to Odoo
users.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

#. Open Odoo in your browser
#. Go to **Settings > General Settings**
#. In the **Integrations** section click on **LDAP Server** under
**LDAP Authentication**. This will allow you to create your LDAP integration
settings.
#. When creating or editing a record, under the **Process Parameter** section
there are two new fields: mail and name, the name of these items will
correspond with a new user that is created, when a user logs in via LDAP in
Odoo.

Known issues / Roadmap
======================


* Add tests (use LDAP Mocking through something like https://mockldap.readthedocs.io/en/latest/overview.html)

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_mail%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.

Credits
=======

Authors
~~~~~~~

* Daniel Reis

Contributors
~~~~~~~~~~~~

* Daniel Reis (https://launchpad.com/~dreis-pt),
* `Tecnativa <https://www.tecnativa.com>`_:

* Alexandre Díaz
* João Marques

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

.. |maintainer-joao-p-marques| image:: https://github.com/joao-p-marques.png?size=40px
:target: https://github.com/joao-p-marques
:alt: joao-p-marques

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/14.0/users_ldap_mail>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions users_ldap_mail/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright Daniel Reis (https://launchpad.com/~dreis-pt)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
16 changes: 16 additions & 0 deletions users_ldap_mail/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright Daniel Reis (https://launchpad.com/~dreis-pt)
# Copyright 2021 Tecnativa - João Marques
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "LDAP mapping for user name and e-mail",
"version": "16.0.1.0.0",
"depends": ["auth_ldap"],
"author": "Daniel Reis," "Odoo Community Association (OCA)",
"maintainers": ["joao-p-marques"],
"website": "https://github.com/OCA/server-auth",
"license": "AGPL-3",
"category": "Tools",
"data": ["views/res_company_ldap.xml"],
"installable": True,
}
52 changes: 52 additions & 0 deletions users_ldap_mail/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * users_ldap_mail
#
# Translators:
# Rudolf Schnapka <[email protected]>, 2016
msgid ""
msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-04-17 12:15+0000\n"
"PO-Revision-Date: 2016-04-21 09:16+0000\n"
"Last-Translator: Rudolf Schnapka <[email protected]>\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"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: users_ldap_mail
#: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__name_attribute
msgid ""
"By default 'cn' is used. For ActiveDirectory you might use 'displayName' "
"instead."
msgstr ""
"'cn' wird per Vorgabe benutzt. Bei ActiveDirectory können Sie stattdessen "
"'displayName' verwenden."

#. module: users_ldap_mail
#: model:ir.model,name:users_ldap_mail.model_res_company_ldap
msgid "Company LDAP configuration"
msgstr ""

#. module: users_ldap_mail
#: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__mail_attribute
msgid "E-mail attribute"
msgstr "Email-Attribut"

#. module: users_ldap_mail
#: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__mail_attribute
msgid "LDAP attribute to use to retrieve em-mail address."
msgstr "LDAP-Attribut, um eine Email-Adresse zu erhalten."

#. module: users_ldap_mail
#: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__name_attribute
msgid "Name Attribute"
msgstr "Namens-Attribut"

#~ msgid "res.company.ldap"
#~ msgstr "res.company.ldap"
53 changes: 53 additions & 0 deletions users_ldap_mail/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * users_ldap_mail
#
# Translators:
# Antonio Trueba, 2016
# Antonio Trueba, 2016
msgid ""
msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-01-19 14:46+0000\n"
"PO-Revision-Date: 2016-02-16 12:32+0000\n"
"Last-Translator: Antonio Trueba\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"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: users_ldap_mail
#: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__name_attribute
msgid ""
"By default 'cn' is used. For ActiveDirectory you might use 'displayName' "
"instead."
msgstr ""
"Por defecto se usa «cn». En Directorio Activo se podría usar «displayName» "
"en su lugar."

#. module: users_ldap_mail
#: model:ir.model,name:users_ldap_mail.model_res_company_ldap
msgid "Company LDAP configuration"
msgstr ""

#. module: users_ldap_mail
#: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__mail_attribute
msgid "E-mail attribute"
msgstr "Atributo e-mail"

#. module: users_ldap_mail
#: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__mail_attribute
msgid "LDAP attribute to use to retrieve em-mail address."
msgstr "Atributo LDAP a utilizar para recumerar la dirección em-mail."

#. module: users_ldap_mail
#: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__name_attribute
msgid "Name Attribute"
msgstr "Atributo Nombre"

#~ msgid "res.company.ldap"
#~ msgstr "res.company.ldap"
49 changes: 49 additions & 0 deletions users_ldap_mail/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * users_ldap_mail
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-01-19 14:46+0000\n"
"PO-Revision-Date: 2015-12-13 15:21+0000\n"
"Last-Translator: <>\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"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: users_ldap_mail
#: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__name_attribute
msgid ""
"By default 'cn' is used. For ActiveDirectory you might use 'displayName' "
"instead."
msgstr ""

#. module: users_ldap_mail
#: model:ir.model,name:users_ldap_mail.model_res_company_ldap
msgid "Company LDAP configuration"
msgstr ""

#. module: users_ldap_mail
#: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__mail_attribute
msgid "E-mail attribute"
msgstr ""

#. module: users_ldap_mail
#: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__mail_attribute
msgid "LDAP attribute to use to retrieve em-mail address."
msgstr ""

#. module: users_ldap_mail
#: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__name_attribute
msgid "Name Attribute"
msgstr ""

#~ msgid "res.company.ldap"
#~ msgstr "res.company.ldap"
53 changes: 53 additions & 0 deletions users_ldap_mail/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * users_ldap_mail
#
# Translators:
# OCA Transbot <[email protected]>, 2017
# Bole <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-10 00:47+0000\n"
"PO-Revision-Date: 2017-05-10 00:47+0000\n"
"Last-Translator: Bole <[email protected]>, 2017\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"

#. module: users_ldap_mail
#: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__name_attribute
msgid ""
"By default 'cn' is used. For ActiveDirectory you might use 'displayName' "
"instead."
msgstr ""
"Zadano se koristi 'CN'. za ActiveDirectory možete koristiti 'displayName' "
"umjesto zadanog."

#. module: users_ldap_mail
#: model:ir.model,name:users_ldap_mail.model_res_company_ldap
msgid "Company LDAP configuration"
msgstr ""

#. module: users_ldap_mail
#: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__mail_attribute
msgid "E-mail attribute"
msgstr "Atribut e-mail"

#. module: users_ldap_mail
#: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__mail_attribute
msgid "LDAP attribute to use to retrieve em-mail address."
msgstr "LDAP atribut za dohvat email adresa."

#. module: users_ldap_mail
#: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__name_attribute
msgid "Name Attribute"
msgstr "Atribut naziva"

#~ msgid "res.company.ldap"
#~ msgstr "res.company.ldap"
Loading
Loading