Skip to content

Commit

Permalink
[IMP] l10n_ch_adr_report: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviedoanhduy committed Oct 15, 2024
1 parent a2d0be5 commit 1a554d1
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 53 deletions.
46 changes: 25 additions & 21 deletions l10n_ch_adr_report/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,20 @@ ADR Products Swiss Report
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--switzerland-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-switzerland/tree/14.0/l10n_ch_adr_report
:target: https://github.com/OCA/l10n-switzerland/tree/18.0/l10n_ch_adr_report
:alt: OCA/l10n-switzerland
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-switzerland-14-0/l10n-switzerland-14-0-l10n_ch_adr_report
:target: https://translation.odoo-community.org/projects/l10n-switzerland-18-0/l10n-switzerland-18-0-l10n_ch_adr_report
: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/l10n-switzerland&target_branch=14.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-switzerland&target_branch=18.0
:alt: Try me on Runboat

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

Report for delivery of dangerous goods. We assume that product can be defined
on product and it will be the only dangerous good/(waste) on product
Report for delivery of dangerous goods. We assume that product can be
defined on product and it will be the only dangerous good/(waste) on
product

**Table of contents**

Expand All @@ -42,38 +43,41 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-switzerland/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/l10n-switzerland/issues/new?body=module:%20l10n_ch_adr_report%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/l10n-switzerland/issues/new?body=module:%20l10n_ch_adr_report%0Aversion:%2018.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
~~~~~~~~~~~~

* `Camptocamp <https://www.camptocamp.com>`_:
* Iryna Vyshnevska <[email protected]>
* Carlos Serra-Toro <[email protected]>
* Iryna Vyshnevska <[email protected]>
* Matthieu Méquignon <[email protected]>
* Sébastien Alix <[email protected]>
* Thierry Ducrest <[email protected]>
* `Trobz <https://trobz.com>`_:
* Son Ho <[email protected]>
------------

- `Camptocamp <https://www.camptocamp.com>`__:

- Iryna Vyshnevska <[email protected]>
- Carlos Serra-Toro <[email protected]>
- Iryna Vyshnevska <[email protected]>
- Matthieu Méquignon <[email protected]>
- Sébastien Alix <[email protected]>
- Thierry Ducrest <[email protected]>

- `Trobz <https://trobz.com>`__:

- Son Ho <[email protected]>

Other credits
~~~~~~~~~~~~~
-------------

The development of this module was financially supported by Camptocamp

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

This module is maintained by the OCA.

Expand All @@ -85,6 +89,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/l10n-switzerland <https://github.com/OCA/l10n-switzerland/tree/14.0/l10n_ch_adr_report>`_ project on GitHub.
This module is part of the `OCA/l10n-switzerland <https://github.com/OCA/l10n-switzerland/tree/18.0/l10n_ch_adr_report>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 1 addition & 2 deletions l10n_ch_adr_report/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class ProductProduct(models.Model):

_inherit = "product.product"

adr_report_class_display_name = fields.Char(
Expand All @@ -17,7 +16,7 @@ def _compute_adr_report_class_display_name(self):
for record in self:
adr_good = record.adr_goods_id
res = _("UN")
res += " {}, {}".format(adr_good.un_number, adr_good.name)
res += f" {adr_good.un_number}, {adr_good.name}"
if record.nag:
res += _(" {}").format(record.nag)

Expand Down
3 changes: 3 additions & 0 deletions l10n_ch_adr_report/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
10 changes: 10 additions & 0 deletions l10n_ch_adr_report/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- [Camptocamp](https://www.camptocamp.com):
- Iryna Vyshnevska \<<[email protected]>\>
- Carlos Serra-Toro \<<[email protected]>\>
- Iryna Vyshnevska \<<[email protected]>\>
- Matthieu Méquignon \<<[email protected]>\>
- Sébastien Alix \<<[email protected]>\>
- Thierry Ducrest \<<[email protected]>\>

- [Trobz](https://trobz.com):
- Son Ho \<<[email protected]>\>
9 changes: 0 additions & 9 deletions l10n_ch_adr_report/readme/CONTRIBUTORS.rst

This file was deleted.

File renamed without changes.
3 changes: 3 additions & 0 deletions l10n_ch_adr_report/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Report for delivery of dangerous goods. We assume that product can be
defined on product and it will be the only dangerous good/(waste) on
product
2 changes: 0 additions & 2 deletions l10n_ch_adr_report/readme/DESCRIPTION.rst

This file was deleted.

34 changes: 15 additions & 19 deletions l10n_ch_adr_report/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@

/*
:Author: David Goodger ([email protected])
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.

See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
Expand Down Expand Up @@ -274,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }

pre.code .ln { color: grey; } /* line numbers */
pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
Expand All @@ -300,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -368,9 +369,10 @@ <h1 class="title">ADR Products Swiss Report</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f413c71599be495d2419b6a665ebe1ae5f63de78610b15d222574d6908ba5c5a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/l10n-switzerland/tree/14.0/l10n_ch_adr_report"><img alt="OCA/l10n-switzerland" src="https://img.shields.io/badge/github-OCA%2Fl10n--switzerland-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-switzerland-14-0/l10n-switzerland-14-0-l10n_ch_adr_report"><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/l10n-switzerland&amp;target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Report for delivery of dangerous goods. We assume that product can be defined
on product and it will be the only dangerous good/(waste) on product</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/l10n-switzerland/tree/18.0/l10n_ch_adr_report"><img alt="OCA/l10n-switzerland" src="https://img.shields.io/badge/github-OCA%2Fl10n--switzerland-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-switzerland-18-0/l10n-switzerland-18-0-l10n_ch_adr_report"><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/l10n-switzerland&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Report for delivery of dangerous goods. We assume that product can be
defined on product and it will be the only dangerous good/(waste) on
product</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -389,7 +391,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/l10n-switzerland/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/l10n-switzerland/issues/new?body=module:%20l10n_ch_adr_report%0Aversion:%2014.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/l10n-switzerland/issues/new?body=module:%20l10n_ch_adr_report%0Aversion:%2018.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 @@ -403,26 +405,18 @@ <h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
<ul class="simple">
<li><dl class="first docutils">
<dt><a class="reference external" href="https://www.camptocamp.com">Camptocamp</a>:</dt>
<dd><ul class="first last">
<li><a class="reference external" href="https://www.camptocamp.com">Camptocamp</a>:<ul>
<li>Iryna Vyshnevska &lt;<a class="reference external" href="mailto:iryna.vyshnevska&#64;camptocamp.com">iryna.vyshnevska&#64;camptocamp.com</a>&gt;</li>
<li>Carlos Serra-Toro &lt;<a class="reference external" href="mailto:carlos.serra&#64;camptocamp.com">carlos.serra&#64;camptocamp.com</a>&gt;</li>
<li>Iryna Vyshnevska &lt;<a class="reference external" href="mailto:iryna.vyshnevska&#64;camptocamp.com">iryna.vyshnevska&#64;camptocamp.com</a>&gt;</li>
<li>Matthieu Méquignon &lt;<a class="reference external" href="mailto:matthieu.mequignon&#64;camptocamp.com">matthieu.mequignon&#64;camptocamp.com</a>&gt;</li>
<li>Sébastien Alix &lt;<a class="reference external" href="mailto:sebastien.alix&#64;camptocamp.com">sebastien.alix&#64;camptocamp.com</a>&gt;</li>
<li>Thierry Ducrest &lt;<a class="reference external" href="mailto:thierry.ducrest&#64;camptocamp.com">thierry.ducrest&#64;camptocamp.com</a>&gt;</li>
</ul>
</dd>
</dl>
</li>
<li><dl class="first docutils">
<dt><a class="reference external" href="https://trobz.com">Trobz</a>:</dt>
<dd><ul class="first last">
<li><a class="reference external" href="https://trobz.com">Trobz</a>:<ul>
<li>Son Ho &lt;<a class="reference external" href="mailto:sonhd&#64;trobz.com">sonhd&#64;trobz.com</a>&gt;</li>
</ul>
</dd>
</dl>
</li>
</ul>
</div>
Expand All @@ -433,11 +427,13 @@ <h2><a class="toc-backref" href="#toc-entry-5">Other credits</a></h2>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<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/l10n-switzerland/tree/14.0/l10n_ch_adr_report">OCA/l10n-switzerland</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-switzerland/tree/18.0/l10n_ch_adr_report">OCA/l10n-switzerland</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

0 comments on commit 1a554d1

Please sign in to comment.