Skip to content

Commit 29d6da1

Browse files
committed
[MIG] impersonate_login: migrate to V18
1 parent dda5bbd commit 29d6da1

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

impersonate_login/README.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Impersonate Login
77
!! This file is generated by oca-gen-addon-readme !!
88
!! changes will be overwritten. !!
99
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10-
!! source digest: sha256:a6ef4269b5ac503aec0a6312e847529a1209890f9fda86cc1f083730520fba34
10+
!! source digest: sha256:1fca331cbc5f2dcb804e5612e5669a9ab4998d80f22d46d6683266580f9ca40f
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
1313
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -17,13 +17,13 @@ Impersonate Login
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github
20-
:target: https://github.com/OCA/server-auth/tree/17.0/impersonate_login
20+
:target: https://github.com/OCA/server-auth/tree/18.0/impersonate_login
2121
:alt: OCA/server-auth
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/server-auth-17-0/server-auth-17-0-impersonate_login
23+
:target: https://translation.odoo-community.org/projects/server-auth-18-0/server-auth-18-0-impersonate_login
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-auth&target_branch=17.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-auth&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -70,7 +70,7 @@ Bug Tracker
7070
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-auth/issues>`_.
7171
In case of trouble, please check there if your issue has already been reported.
7272
If you spotted it first, help us to smash it by providing a detailed and welcomed
73-
`feedback <https://github.com/OCA/server-auth/issues/new?body=module:%20impersonate_login%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
73+
`feedback <https://github.com/OCA/server-auth/issues/new?body=module:%20impersonate_login%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
7474

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

@@ -111,6 +111,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
111111

112112
|maintainer-Kev-Roche|
113113

114-
This module is part of the `OCA/server-auth <https://github.com/OCA/server-auth/tree/17.0/impersonate_login>`_ project on GitHub.
114+
This module is part of the `OCA/server-auth <https://github.com/OCA/server-auth/tree/18.0/impersonate_login>`_ project on GitHub.
115115

116116
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

impersonate_login/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"name": "Impersonate Login",
77
"summary": "tools",
8-
"version": "17.0.1.0.1",
8+
"version": "18.0.1.0.0",
99
"category": "Tools",
1010
"website": "https://github.com/OCA/server-auth",
1111
"author": "Akretion, Odoo Community Association (OCA)",

impersonate_login/models/impersonate_log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ImpersonateLog(models.Model):
1111
_description = "Impersonate Logs"
1212

1313
user_id = fields.Many2one(
14-
comodel_name="res.partner",
14+
comodel_name="res.users",
1515
)
1616
impersonated_partner_id = fields.Many2one(
1717
comodel_name="res.partner",

impersonate_login/models/res_users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def action_impersonate_login(self):
7878
action = self.env["ir.actions.act_window"]._for_xml_id(
7979
"base.action_res_users"
8080
)
81-
action["views"] = [[self.env.ref("base.view_users_tree").id, "tree"]]
81+
action["views"] = [[self.env.ref("base.view_users_tree").id, "list"]]
8282
action["domain"] = [
8383
("id", "!=", self.env.user.id),
8484
("share", "=", False),
-9.23 KB
Binary file not shown.

impersonate_login/static/description/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,9 @@ <h1 class="title">Impersonate Login</h1>
367367
!! This file is generated by oca-gen-addon-readme !!
368368
!! changes will be overwritten. !!
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370-
!! source digest: sha256:a6ef4269b5ac503aec0a6312e847529a1209890f9fda86cc1f083730520fba34
370+
!! source digest: sha256:1fca331cbc5f2dcb804e5612e5669a9ab4998d80f22d46d6683266580f9ca40f
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<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/impersonate_login"><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-impersonate_login"><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>
372+
<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/18.0/impersonate_login"><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-18-0/server-auth-18-0-impersonate_login"><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=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>This module allows one user (for example, a member of the support team)
374374
to log in as another user. The impersonation session can be exited by
375375
clicking on the button “Back to Original User”.</p>
@@ -418,7 +418,7 @@ <h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
418418
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-auth/issues">GitHub Issues</a>.
419419
In case of trouble, please check there if your issue has already been reported.
420420
If you spotted it first, help us to smash it by providing a detailed and welcomed
421-
<a class="reference external" href="https://github.com/OCA/server-auth/issues/new?body=module:%20impersonate_login%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
421+
<a class="reference external" href="https://github.com/OCA/server-auth/issues/new?body=module:%20impersonate_login%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
422422
<p>Do not contact contributors directly about support or help with technical issues.</p>
423423
</div>
424424
<div class="section" id="credits">
@@ -450,7 +450,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
450450
promote its widespread use.</p>
451451
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
452452
<p><a class="reference external image-reference" href="https://github.com/Kev-Roche"><img alt="Kev-Roche" src="https://github.com/Kev-Roche.png?size=40px" /></a></p>
453-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-auth/tree/17.0/impersonate_login">OCA/server-auth</a> project on GitHub.</p>
453+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-auth/tree/18.0/impersonate_login">OCA/server-auth</a> project on GitHub.</p>
454454
<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>
455455
</div>
456456
</div>

impersonate_login/views/impersonate_log.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
<field name="name">impersonate.log.tree</field>
99
<field name="model">impersonate.log</field>
1010
<field name="arch" type="xml">
11-
<tree>
11+
<list>
1212
<field name="user_id" />
1313
<field name="impersonated_partner_id" />
1414
<field name="date_start" />
1515
<field name="date_end" />
16-
</tree>
16+
</list>
1717
</field>
1818
</record>
1919

@@ -22,7 +22,7 @@
2222
<field name="name">Impersonate Login Logs</field>
2323
<field name="res_model">impersonate.log</field>
2424
<field name="view_id" ref="impersonate_log_tree" />
25-
<field name="view_mode">tree</field>
25+
<field name="view_mode">list</field>
2626
</record>
2727

2828
<menuitem

impersonate_login/views/res_users.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<record model="ir.ui.view" id="impersonate_res_users_tree">
77
<field name="model">res.users</field>
88
<field name="inherit_id" ref="base.view_users_tree" />
9-
<field name="type">tree</field>
9+
<field name="type">list</field>
1010
<field name="arch" type="xml">
1111
<field name="name" position="before">
1212
<button

0 commit comments

Comments
 (0)