Skip to content

Commit 4710645

Browse files
[IMP] server_environment_autocreate: pre-commit execution
1 parent 511ea29 commit 4710645

5 files changed

Lines changed: 64 additions & 52 deletions

File tree

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# generated from manifests external_dependencies
2+
odoo-test-helper

server_environment/README.rst

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ You can edit the settings you need in the ``server_environment_files``
100100
addon. The ``server_environment_files_sample`` can be used as an
101101
example:
102102

103-
- values common to all / most environments can be stored in the
104-
``default/`` directory using the .ini file syntax;
105-
- each environment you need to define is stored in its own directory and
106-
can override or extend default values;
107-
- you can override or extend values in the main configuration file of
108-
your instance;
103+
- values common to all / most environments can be stored in the
104+
``default/`` directory using the .ini file syntax;
105+
- each environment you need to define is stored in its own directory
106+
and can override or extend default values;
107+
- you can override or extend values in the main configuration file of
108+
your instance;
109109

110110
Environment variable
111111
--------------------
@@ -217,13 +217,13 @@ If you want to have a technical name to reference:
217217
Known issues / Roadmap
218218
======================
219219

220-
- it is not possible to set the environment from the command line. A
221-
configuration file must be used.
222-
- the module does not allow to set low level attributes such as database
223-
server, etc.
224-
- server.env.techname.mixin's tech_name field could leverage the new
225-
option for computable / writable fields and get rid of some onchange /
226-
read / write code.
220+
- it is not possible to set the environment from the command line. A
221+
configuration file must be used.
222+
- the module does not allow to set low level attributes such as
223+
database server, etc.
224+
- server.env.techname.mixin's tech_name field could leverage the new
225+
option for computable / writable fields and get rid of some onchange
226+
/ read / write code.
227227

228228
Bug Tracker
229229
===========
@@ -246,18 +246,18 @@ Authors
246246
Contributors
247247
------------
248248

249-
- Florent Xicluna (Wingo) <florent.xicluna@gmail.com>
250-
- Nicolas Bessi <nicolas.bessi@camptocamp.com>
251-
- Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
252-
- Daniel Reis <dgreis@sapo.pt>
253-
- Holger Brunn <hbrunn@therp.nl>
254-
- Leonardo Pistone <leonardo.pistone@camptocamp.com>
255-
- Adrien Peiffer <adrien.peiffer@acsone.com>
256-
- Thierry Ducrest <thierry.ducrest@camptocamp.com>
257-
- Guewen Baconnier <guewen.baconnier@camptocamp.com>
258-
- Thomas Binfeld <thomas.binsfeld@acsone.eu>
259-
- Stéphane Bidoul <stefane.bidoul@acsone.com>
260-
- Simone Orsi <simahawk@gmail.com>
249+
- Florent Xicluna (Wingo) <florent.xicluna@gmail.com>
250+
- Nicolas Bessi <nicolas.bessi@camptocamp.com>
251+
- Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
252+
- Daniel Reis <dgreis@sapo.pt>
253+
- Holger Brunn <hbrunn@therp.nl>
254+
- Leonardo Pistone <leonardo.pistone@camptocamp.com>
255+
- Adrien Peiffer <adrien.peiffer@acsone.com>
256+
- Thierry Ducrest <thierry.ducrest@camptocamp.com>
257+
- Guewen Baconnier <guewen.baconnier@camptocamp.com>
258+
- Thomas Binfeld <thomas.binsfeld@acsone.eu>
259+
- Stéphane Bidoul <stefane.bidoul@acsone.com>
260+
- Simone Orsi <simahawk@gmail.com>
261261

262262
Maintainers
263263
-----------

server_environment/static/description/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,8 @@ <h3><a class="toc-backref" href="#toc-entry-3">server_environment_files</a></h3>
448448
<ul class="simple">
449449
<li>values common to all / most environments can be stored in the
450450
<tt class="docutils literal">default/</tt> directory using the .ini file syntax;</li>
451-
<li>each environment you need to define is stored in its own directory and
452-
can override or extend default values;</li>
451+
<li>each environment you need to define is stored in its own directory
452+
and can override or extend default values;</li>
453453
<li>you can override or extend values in the main configuration file of
454454
your instance;</li>
455455
</ul>
@@ -550,11 +550,11 @@ <h2><a class="toc-backref" href="#toc-entry-8">Known issues / Roadmap</a></h2>
550550
<ul class="simple">
551551
<li>it is not possible to set the environment from the command line. A
552552
configuration file must be used.</li>
553-
<li>the module does not allow to set low level attributes such as database
554-
server, etc.</li>
553+
<li>the module does not allow to set low level attributes such as
554+
database server, etc.</li>
555555
<li>server.env.techname.mixin’s tech_name field could leverage the new
556-
option for computable / writable fields and get rid of some onchange /
557-
read / write code.</li>
556+
option for computable / writable fields and get rid of some onchange
557+
/ read / write code.</li>
558558
</ul>
559559
</div>
560560
<div class="section" id="bug-tracker">

server_environment_autocreate/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
Server Environment Autocreate
37
=============================
@@ -13,17 +17,17 @@ Server Environment Autocreate
1317
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1418
:target: https://odoo-community.org/page/development-status
1519
:alt: Beta
16-
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
20+
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
1721
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
1822
:alt: License: LGPL-3
1923
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--env-lightgray.png?logo=github
20-
:target: https://github.com/OCA/server-env/tree/18.0/server_environment_autocreate
24+
:target: https://github.com/OCA/server-env/tree/19.0/server_environment_autocreate
2125
:alt: OCA/server-env
2226
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/server-env-18-0/server-env-18-0-server_environment_autocreate
27+
:target: https://translation.odoo-community.org/projects/server-env-19-0/server-env-19-0-server_environment_autocreate
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-env&target_branch=18.0
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-env&target_branch=19.0
2731
:alt: Try me on Runboat
2832

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

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

@@ -158,6 +162,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
158162
mission is to support the collaborative development of Odoo features and
159163
promote its widespread use.
160164

161-
This module is part of the `OCA/server-env <https://github.com/OCA/server-env/tree/18.0/server_environment_autocreate>`_ project on GitHub.
165+
This module is part of the `OCA/server-env <https://github.com/OCA/server-env/tree/19.0/server_environment_autocreate>`_ project on GitHub.
162166

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

server_environment_autocreate/static/description/index.html

Lines changed: 21 additions & 15 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>Server Environment Autocreate</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="server-environment-autocreate">
364-
<h1 class="title">Server Environment Autocreate</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="server-environment-autocreate">
370+
<h1>Server Environment Autocreate</h1>
366371
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367372
!! This file is generated by oca-gen-addon-readme !!
368373
!! changes will be overwritten. !!
369374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370375
!! source digest: sha256:c41974e39c6f11adbecf0ad0a3a5d3ce800c956e62b57a0ba270146c2de654a1
371376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
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/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-env/tree/18.0/server_environment_autocreate"><img alt="OCA/server-env" src="https://img.shields.io/badge/github-OCA%2Fserver--env-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-env-18-0/server-env-18-0-server_environment_autocreate"><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-env&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="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/license-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-env/tree/19.0/server_environment_autocreate"><img alt="OCA/server-env" src="https://img.shields.io/badge/github-OCA%2Fserver--env-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-env-19-0/server-env-19-0-server_environment_autocreate"><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-env&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 adds a way to create automaticaly records using
374379
server_environment server.env.mixin.</p>
375380
<p><strong>Table of contents</strong></p>
@@ -389,13 +394,13 @@ <h1 class="title">Server Environment Autocreate</h1>
389394
</ul>
390395
</div>
391396
<div class="section" id="use-cases-context">
392-
<h1><a class="toc-backref" href="#toc-entry-1">Use Cases / Context</a></h1>
397+
<h2><a class="toc-backref" href="#toc-entry-1">Use Cases / Context</a></h2>
393398
<p>Modules that uses server_environment server.env.mixin need to be created
394399
manually in the database. This module avoid that needs by adding a way
395400
to autocreate records.</p>
396401
</div>
397402
<div class="section" id="configuration">
398-
<h1><a class="toc-backref" href="#toc-entry-2">Configuration</a></h1>
403+
<h2><a class="toc-backref" href="#toc-entry-2">Configuration</a></h2>
399404
<p>This module does not need any configuration in Odoo.</p>
400405
<p>The configuration is made in either server_environment_files, the
401406
environment variable or the configuration file as described in
@@ -449,11 +454,11 @@ <h1><a class="toc-backref" href="#toc-entry-2">Configuration</a></h1>
449454
configuration.</p>
450455
</div>
451456
<div class="section" id="usage">
452-
<h1><a class="toc-backref" href="#toc-entry-3">Usage</a></h1>
457+
<h2><a class="toc-backref" href="#toc-entry-3">Usage</a></h2>
453458
<p>This module does not impact the user interface.</p>
454459
</div>
455460
<div class="section" id="known-issues-roadmap">
456-
<h1><a class="toc-backref" href="#toc-entry-4">Known issues / Roadmap</a></h1>
461+
<h2><a class="toc-backref" href="#toc-entry-4">Known issues / Roadmap</a></h2>
457462
<ul class="simple">
458463
<li>This module does not guarantee that any model record can be created,
459464
extra steps might be needed.</li>
@@ -462,23 +467,23 @@ <h1><a class="toc-backref" href="#toc-entry-4">Known issues / Roadmap</a></h1>
462467
</ul>
463468
</div>
464469
<div class="section" id="bug-tracker">
465-
<h1><a class="toc-backref" href="#toc-entry-5">Bug Tracker</a></h1>
470+
<h2><a class="toc-backref" href="#toc-entry-5">Bug Tracker</a></h2>
466471
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-env/issues">GitHub Issues</a>.
467472
In case of trouble, please check there if your issue has already been reported.
468473
If you spotted it first, help us to smash it by providing a detailed and welcomed
469-
<a class="reference external" href="https://github.com/OCA/server-env/issues/new?body=module:%20server_environment_autocreate%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
474+
<a class="reference external" href="https://github.com/OCA/server-env/issues/new?body=module:%20server_environment_autocreate%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
470475
<p>Do not contact contributors directly about support or help with technical issues.</p>
471476
</div>
472477
<div class="section" id="credits">
473-
<h1><a class="toc-backref" href="#toc-entry-6">Credits</a></h1>
478+
<h2><a class="toc-backref" href="#toc-entry-6">Credits</a></h2>
474479
<div class="section" id="authors">
475-
<h2><a class="toc-backref" href="#toc-entry-7">Authors</a></h2>
480+
<h3><a class="toc-backref" href="#toc-entry-7">Authors</a></h3>
476481
<ul class="simple">
477482
<li>XCG Consulting</li>
478483
</ul>
479484
</div>
480485
<div class="section" id="contributors">
481-
<h2><a class="toc-backref" href="#toc-entry-8">Contributors</a></h2>
486+
<h3><a class="toc-backref" href="#toc-entry-8">Contributors</a></h3>
482487
<ul class="simple">
483488
<li>XCG Consulting, part of <a class="reference external" href="https://orbeet.io/">Orbeet</a>:<ul>
484489
<li>Vincent Hatakeyama &lt;<a class="reference external" href="mailto:vincent.hatakeyama&#64;orbeet.io">vincent.hatakeyama&#64;orbeet.io</a>&gt;</li>
@@ -487,18 +492,19 @@ <h2><a class="toc-backref" href="#toc-entry-8">Contributors</a></h2>
487492
</ul>
488493
</div>
489494
<div class="section" id="maintainers">
490-
<h2><a class="toc-backref" href="#toc-entry-9">Maintainers</a></h2>
495+
<h3><a class="toc-backref" href="#toc-entry-9">Maintainers</a></h3>
491496
<p>This module is maintained by the OCA.</p>
492497
<a class="reference external image-reference" href="https://odoo-community.org">
493498
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
494499
</a>
495500
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
496501
mission is to support the collaborative development of Odoo features and
497502
promote its widespread use.</p>
498-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-env/tree/18.0/server_environment_autocreate">OCA/server-env</a> project on GitHub.</p>
503+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-env/tree/19.0/server_environment_autocreate">OCA/server-env</a> project on GitHub.</p>
499504
<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>
500505
</div>
501506
</div>
502507
</div>
508+
</div>
503509
</body>
504510
</html>

0 commit comments

Comments
 (0)