Skip to content

Commit 45b746a

Browse files
committed
[MIG] base_technical_user: Migration to 19.0
1 parent 35cfae1 commit 45b746a

File tree

4 files changed

+35
-23
lines changed

4 files changed

+35
-23
lines changed

base_technical_user/README.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.. image:: https://odoo-community.org/readme-banner-image
2+
:target: https://odoo-community.org/get-involved?utm_source=readme
3+
:alt: Odoo Community Association
4+
15
===================
26
Base Technical User
37
===================
@@ -13,17 +17,17 @@ Base Technical User
1317
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
1418
:target: https://odoo-community.org/page/development-status
1519
:alt: Production/Stable
16-
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
20+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
1721
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1822
:alt: License: AGPL-3
1923
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
20-
:target: https://github.com/OCA/server-tools/tree/18.0/base_technical_user
24+
:target: https://github.com/OCA/server-tools/tree/19.0/base_technical_user
2125
:alt: OCA/server-tools
2226
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-base_technical_user
27+
:target: https://translation.odoo-community.org/projects/server-tools-19-0/server-tools-19-0-base_technical_user
2428
:alt: Translate me on Weblate
2529
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=18.0
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=19.0
2731
:alt: Try me on Runboat
2832

2933
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -68,7 +72,7 @@ Bug Tracker
6872
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
6973
In case of trouble, please check there if your issue has already been reported.
7074
If you spotted it first, help us to smash it by providing a detailed and welcomed
71-
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20base_technical_user%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
75+
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20base_technical_user%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
7276

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

@@ -107,6 +111,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
107111
mission is to support the collaborative development of Odoo features and
108112
promote its widespread use.
109113

110-
This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/18.0/base_technical_user>`_ project on GitHub.
114+
This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/19.0/base_technical_user>`_ project on GitHub.
111115

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

base_technical_user/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
88
"website": "https://github.com/OCA/server-tools",
99
"category": "Hidden/Dependency",
10-
"version": "18.0.1.0.1",
10+
"version": "19.0.1.0.0",
1111
"license": "AGPL-3",
1212
"development_status": "Production/Stable",
1313
"depends": ["base"],

base_technical_user/models/models.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
44

55

6-
from odoo import _, models
6+
from odoo import models
77
from odoo.exceptions import UserError
88

99

@@ -29,8 +29,10 @@ def sudo_tech(self, raise_if_missing=False):
2929
)
3030
elif raise_if_missing:
3131
raise UserError(
32-
_("The technical user is missing in the company {}").format(
33-
self.env.company.name
32+
self.env._(
33+
"The technical user is missing in the company %s",
34+
self.env.company.name,
3435
)
3536
)
37+
3638
return self_sudoer

base_technical_user/static/description/index.html

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
55
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6-
<title>Base Technical User</title>
6+
<title>README.rst</title>
77
<style type="text/css">
88

99
/*
@@ -360,16 +360,21 @@
360360
</style>
361361
</head>
362362
<body>
363-
<div class="document" id="base-technical-user">
364-
<h1 class="title">Base Technical User</h1>
363+
<div class="document">
365364

365+
366+
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367+
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368+
</a>
369+
<div class="section" id="base-technical-user">
370+
<h1>Base Technical User</h1>
366371
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367372
!! This file is generated by oca-gen-addon-readme !!
368373
!! changes will be overwritten. !!
369374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370375
!! source digest: sha256:6b9aa9e6df3dd5d831874f6d9d9f252d4da28ffc66930408903c3befdbeffb8f
371376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.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-tools/tree/18.0/base_technical_user"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-base_technical_user"><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-tools&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
377+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.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/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-tools/tree/19.0/base_technical_user"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-19-0/server-tools-19-0-base_technical_user"><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-tools&amp;target_branch=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373378
<p>This module extends the functionality of company management. It allows
374379
you to bind a technical user on the company in order to use it in batch
375380
processes.</p>
@@ -390,7 +395,7 @@ <h1 class="title">Base Technical User</h1>
390395
</ul>
391396
</div>
392397
<div class="section" id="usage">
393-
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
398+
<h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
394399
<p>If you install the module, you will find a tab on the company form
395400
allowing to define the technical user.</p>
396401
<p>In your code you can use the following helper that will return you</p>
@@ -408,49 +413,50 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
408413
</pre>
409414
</div>
410415
<div class="section" id="bug-tracker">
411-
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
416+
<h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
412417
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>.
413418
In case of trouble, please check there if your issue has already been reported.
414419
If you spotted it first, help us to smash it by providing a detailed and welcomed
415-
<a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20base_technical_user%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
420+
<a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20base_technical_user%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
416421
<p>Do not contact contributors directly about support or help with technical issues.</p>
417422
</div>
418423
<div class="section" id="credits">
419-
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
424+
<h2><a class="toc-backref" href="#toc-entry-3">Credits</a></h2>
420425
<div class="section" id="authors">
421-
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
426+
<h3><a class="toc-backref" href="#toc-entry-4">Authors</a></h3>
422427
<ul class="simple">
423428
<li>ACSONE SA/NV</li>
424429
</ul>
425430
</div>
426431
<div class="section" id="contributors">
427-
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
432+
<h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
428433
<ul class="simple">
429434
<li>Cédric Pigeon &lt;<a class="reference external" href="mailto:cedric.pigeon&#64;acsone.eu">cedric.pigeon&#64;acsone.eu</a>&gt;</li>
430435
<li>Khoi (Kien Kim) &lt;<a class="reference external" href="mailto:khoikk&#64;trobz.com">khoikk&#64;trobz.com</a>&gt;</li>
431436
</ul>
432437
</div>
433438
<div class="section" id="other-credits">
434-
<h2><a class="toc-backref" href="#toc-entry-6">Other credits</a></h2>
439+
<h3><a class="toc-backref" href="#toc-entry-6">Other credits</a></h3>
435440
<p>The migration of this module from 17.0 to 18.0 was financially supported
436441
by:</p>
437442
<ul class="simple">
438443
<li>Camptocamp.</li>
439444
</ul>
440445
</div>
441446
<div class="section" id="maintainers">
442-
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
447+
<h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
443448
<p>This module is maintained by the OCA.</p>
444449
<a class="reference external image-reference" href="https://odoo-community.org">
445450
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
446451
</a>
447452
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
448453
mission is to support the collaborative development of Odoo features and
449454
promote its widespread use.</p>
450-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/18.0/base_technical_user">OCA/server-tools</a> project on GitHub.</p>
455+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/19.0/base_technical_user">OCA/server-tools</a> project on GitHub.</p>
451456
<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>
452457
</div>
453458
</div>
454459
</div>
460+
</div>
455461
</body>
456462
</html>

0 commit comments

Comments
 (0)