Skip to content

Commit

Permalink
[IMP] base_user_show_email: pre-commit execution
Browse files Browse the repository at this point in the history
  • Loading branch information
lav-adhoc committed Jan 22, 2024
1 parent cd66892 commit 014806d
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 54 deletions.
46 changes: 27 additions & 19 deletions base_user_show_email/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,38 @@ Base User Show Email
: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/16.0/base_user_show_email
:target: https://github.com/OCA/server-auth/tree/17.0/base_user_show_email
: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-16-0/server-auth-16-0-base_user_show_email
:target: https://translation.odoo-community.org/projects/server-auth-17-0/server-auth-17-0-base_user_show_email
:alt: Translate me on Weblate
.. |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=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-auth&target_branch=17.0
:alt: Try me on Runboat

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

In recent Odoo versions, the login field is tightly linked to the email field
(the field is displayed with an "Email" label, and it will populate the email of the user if it contains an "@" character).
In recent Odoo versions, the login field is tightly linked to the email
field (the field is displayed with an "Email" label, and it will
populate the email of the user if it contains an "@" character).

Yet for the users who uses a distinct login and email, this is confusing.
Yet for the users who uses a distinct login and email, this is
confusing.

The goal of this module is to untangle (a bit) these two fields. Here are the changes:
The goal of this module is to untangle (a bit) these two fields. Here
are the changes:

* In the `res.users` form view:
* Display a "Login" label instead of "Email" on the `login` field
* Show the currently invisible `email` field and its label
* In the `res.users` tree view:
* Display the `email` field next to the `login` field
* Change the login layout to prompt for a "Login" instead of an "Email" (compatible with the web_enterprise layout)
- In the res.users form view:

- Display a "Login" label instead of "Email" on the login field
- Show the currently invisible email field and its label

- In the res.users tree view:

- Display the email field next to the login field

- Change the login layout to prompt for a "Login" instead of an "Email"
(compatible with the web_enterprise layout)

**Table of contents**

Expand All @@ -53,25 +61,25 @@ 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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-auth/issues/new?body=module:%20base_user_show_email%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/server-auth/issues/new?body=module:%20base_user_show_email%0Aversion:%2017.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
~~~~~~~
-------

* Camptocamp

Contributors
~~~~~~~~~~~~
------------

* Patrick Tombez <[email protected]>
- Patrick Tombez <[email protected]>

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -83,6 +91,6 @@ 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.

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions base_user_show_email/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions base_user_show_email/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Patrick Tombez \<<[email protected]>\>
1 change: 0 additions & 1 deletion base_user_show_email/readme/CONTRIBUTORS.rst

This file was deleted.

19 changes: 19 additions & 0 deletions base_user_show_email/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
In recent Odoo versions, the login field is tightly linked to the email
field (the field is displayed with an "Email" label, and it will
populate the email of the user if it contains an "@" character).

Yet for the users who uses a distinct login and email, this is
confusing.

The goal of this module is to untangle (a bit) these two fields. Here
are the changes:

- In the res.users form view:
- Display a "Login" label instead of "Email" on the login field
- Show the currently invisible email field and its label

- In the res.users tree view:
- Display the email field next to the login field

- Change the login layout to prompt for a "Login" instead of an "Email"
(compatible with the web_enterprise layout)
13 changes: 0 additions & 13 deletions base_user_show_email/readme/DESCRIPTION.rst

This file was deleted.

38 changes: 17 additions & 21 deletions base_user_show_email/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,30 +369,26 @@ <h1 class="title">Base User Show Email</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a154418165dd6b27836d16898940982533193930d361069ee0087ed1b09d544b
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/16.0/base_user_show_email"><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-16-0/server-auth-16-0-base_user_show_email"><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=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>In recent Odoo versions, the login field is tightly linked to the email field
(the field is displayed with an “Email” label, and it will populate the email of the user if it contains an “&#64;” character).</p>
<p>Yet for the users who uses a distinct login and email, this is confusing.</p>
<p>The goal of this module is to untangle (a bit) these two fields. Here are the changes:</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/17.0/base_user_show_email"><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-17-0/server-auth-17-0-base_user_show_email"><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=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>In recent Odoo versions, the login field is tightly linked to the email
field (the field is displayed with an “Email” label, and it will
populate the email of the user if it contains an “&#64;” character).</p>
<p>Yet for the users who uses a distinct login and email, this is
confusing.</p>
<p>The goal of this module is to untangle (a bit) these two fields. Here
are the changes:</p>
<ul class="simple">
<li><dl class="first docutils">
<dt>In the <cite>res.users</cite> form view:</dt>
<dd><ul class="first last">
<li>Display a “Login” label instead of “Email” on the <cite>login</cite> field</li>
<li>Show the currently invisible <cite>email</cite> field and its label</li>
<li>In the res.users form view:<ul>
<li>Display a “Login” label instead of “Email” on the login field</li>
<li>Show the currently invisible email field and its label</li>
</ul>
</dd>
</dl>
</li>
<li><dl class="first docutils">
<dt>In the <cite>res.users</cite> tree view:</dt>
<dd><ul class="first last">
<li>Display the <cite>email</cite> field next to the <cite>login</cite> field</li>
<li>In the res.users tree view:<ul>
<li>Display the email field next to the login field</li>
</ul>
</dd>
</dl>
</li>
<li>Change the login layout to prompt for a “Login” instead of an “Email” (compatible with the web_enterprise layout)</li>
<li>Change the login layout to prompt for a “Login” instead of an “Email”
(compatible with the web_enterprise layout)</li>
</ul>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
Expand All @@ -411,7 +407,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">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 to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/server-auth/issues/new?body=module:%20base_user_show_email%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/server-auth/issues/new?body=module:%20base_user_show_email%0Aversion:%2017.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">
Expand All @@ -435,7 +431,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
<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>This module is part of the <a class="reference external" href="https://github.com/OCA/server-auth/tree/16.0/base_user_show_email">OCA/server-auth</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-auth/tree/17.0/base_user_show_email">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
Binary file added pandoc-3.1.11.1-1-amd64.deb
Binary file not shown.

0 comments on commit 014806d

Please sign in to comment.