From 64e2eb86a203dc6810847252f5b35037cd01cb02 Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Thu, 2 Jan 2025 16:26:29 +0100
Subject: [PATCH] [IMP] l10n_fr_chorus_*: pre-commit fixes
---
l10n_fr_chorus_account/README.rst | 10 ++++-----
l10n_fr_chorus_account/data/mail_template.xml | 20 ++++++++---------
l10n_fr_chorus_account/models/res_company.py | 2 +-
.../static/description/index.html | 17 ++++++++------
l10n_fr_chorus_account/views/account_move.xml | 22 +++++++++----------
l10n_fr_chorus_facturx/README.rst | 10 ++++-----
.../static/description/index.html | 17 ++++++++------
l10n_fr_chorus_sale/README.rst | 10 ++++-----
.../static/description/index.html | 17 ++++++++------
requirements.txt | 1 +
10 files changed, 68 insertions(+), 58 deletions(-)
diff --git a/l10n_fr_chorus_account/README.rst b/l10n_fr_chorus_account/README.rst
index 7f1b9596a..b95acdb6c 100644
--- a/l10n_fr_chorus_account/README.rst
+++ b/l10n_fr_chorus_account/README.rst
@@ -17,13 +17,13 @@ L10n FR Chorus
: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--france-lightgray.png?logo=github
- :target: https://github.com/OCA/l10n-france/tree/17.0/l10n_fr_chorus_account
+ :target: https://github.com/OCA/l10n-france/tree/18.0/l10n_fr_chorus_account
:alt: OCA/l10n-france
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/l10n-france-17-0/l10n-france-17-0-l10n_fr_chorus_account
+ :target: https://translation.odoo-community.org/projects/l10n-france-18-0/l10n-france-18-0-l10n_fr_chorus_account
: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-france&target_branch=17.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-france&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -129,7 +129,7 @@ Bug Tracker
Bugs are tracked on `GitHub 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 `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -167,6 +167,6 @@ Current `maintainer `__:
|maintainer-alexis-via|
-This module is part of the `OCA/l10n-france `_ project on GitHub.
+This module is part of the `OCA/l10n-france `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/l10n_fr_chorus_account/data/mail_template.xml b/l10n_fr_chorus_account/data/mail_template.xml
index 0b2392586..73a507317 100644
--- a/l10n_fr_chorus_account/data/mail_template.xml
+++ b/l10n_fr_chorus_account/data/mail_template.xml
@@ -16,21 +16,21 @@
name="subject"
>[{{ object.name }}] Action needed to continue to use the Chorus Pro API
-
The Odoo server of company My company is configured to access the Chorus Pro API. Accessing the Chorus Pro API requires a technical user login and password. The password of the technical user has an expiry date. The password of the technical user expires on 08/08/2021 (in 7 days).
+
The Odoo server of company My company is configured to access the Chorus Pro API. Accessing the Chorus Pro API requires a technical user login and password. The password of the technical user has an expiry date. The password of the technical user expires on 08/08/2021 (in 7 days).
-
In order to continue to access the Chorus Pro API without problems, you should connect to Chorus Pro, generate a new password for the technical user and copy it in Odoo on the accounting configuration page.
-
+
--
Automatic e-mail sent by Odoo.
-
+
diff --git a/l10n_fr_chorus_account/models/res_company.py b/l10n_fr_chorus_account/models/res_company.py
index ddecd1be0..56afebb81 100644
--- a/l10n_fr_chorus_account/models/res_company.py
+++ b/l10n_fr_chorus_account/models/res_company.py
@@ -189,7 +189,7 @@ def _get_new_token(self, oauth_id, oauth_secret, qualif):
try:
token = r.json()
except Exception:
- logger.error("JSON decode failed. HTTP error code: %s." % r.status_code)
+ logger.error("JSON decode failed. HTTP error code: %s.", r.status_code)
raise UserError(
_(
"Error in the request to get a new token via PISTE. "
diff --git a/l10n_fr_chorus_account/static/description/index.html b/l10n_fr_chorus_account/static/description/index.html
index 584bb2475..3c8a689ba 100644
--- a/l10n_fr_chorus_account/static/description/index.html
+++ b/l10n_fr_chorus_account/static/description/index.html
@@ -8,10 +8,11 @@
/*
:Author: David Goodger (goodger@python.org)
-: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.
@@ -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 }
@@ -300,7 +301,7 @@
span.pre {
white-space: pre }
-span.problematic {
+span.problematic, pre.problematic {
color: red }
span.section-subtitle {
@@ -368,7 +369,7 @@
This is the base module for the support of Chorus
Pro, the electronic invoicing plateform
of the French administration. Chorus Pro specifications are available on
@@ -469,7 +470,7 @@
Bugs are tracked on GitHub 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.
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.
diff --git a/l10n_fr_chorus_account/views/account_move.xml b/l10n_fr_chorus_account/views/account_move.xml
index 06c4501dc..4e58a5c7e 100644
--- a/l10n_fr_chorus_account/views/account_move.xml
+++ b/l10n_fr_chorus_account/views/account_move.xml
@@ -27,13 +27,13 @@
invisible="transmit_method_code != 'fr-chorus'"
groups="l10n_fr_chorus_account.group_chorus_api"
>
-
-
-
-
-
-
-
diff --git a/l10n_fr_chorus_facturx/README.rst b/l10n_fr_chorus_facturx/README.rst
index 4ae58651f..127cec486 100644
--- a/l10n_fr_chorus_facturx/README.rst
+++ b/l10n_fr_chorus_facturx/README.rst
@@ -17,13 +17,13 @@ L10n FR Chorus Factur-X
: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--france-lightgray.png?logo=github
- :target: https://github.com/OCA/l10n-france/tree/17.0/l10n_fr_chorus_facturx
+ :target: https://github.com/OCA/l10n-france/tree/18.0/l10n_fr_chorus_facturx
:alt: OCA/l10n-france
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/l10n-france-17-0/l10n-france-17-0-l10n_fr_chorus_facturx
+ :target: https://translation.odoo-community.org/projects/l10n-france-18-0/l10n-france-18-0-l10n_fr_chorus_facturx
: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-france&target_branch=17.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-france&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -60,7 +60,7 @@ Bug Tracker
Bugs are tracked on `GitHub 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 `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -98,6 +98,6 @@ Current `maintainer `__:
|maintainer-alexis-via|
-This module is part of the `OCA/l10n-france `_ project on GitHub.
+This module is part of the `OCA/l10n-france `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/l10n_fr_chorus_facturx/static/description/index.html b/l10n_fr_chorus_facturx/static/description/index.html
index 590657460..517ee60cb 100644
--- a/l10n_fr_chorus_facturx/static/description/index.html
+++ b/l10n_fr_chorus_facturx/static/description/index.html
@@ -8,10 +8,11 @@
/*
:Author: David Goodger (goodger@python.org)
-: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.
@@ -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 }
@@ -300,7 +301,7 @@
span.pre {
white-space: pre }
-span.problematic {
+span.problematic, pre.problematic {
color: red }
span.section-subtitle {
@@ -368,7 +369,7 @@
With this module, Odoo will be able to generate Factur-X invoices that
comply with the Chorus Pro specifications available on Chorus Pro
Community website.
@@ -406,7 +407,7 @@
Bugs are tracked on GitHub 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.
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.
diff --git a/l10n_fr_chorus_sale/README.rst b/l10n_fr_chorus_sale/README.rst
index 65cdc7aec..7e8de287e 100644
--- a/l10n_fr_chorus_sale/README.rst
+++ b/l10n_fr_chorus_sale/README.rst
@@ -17,13 +17,13 @@ L10n FR Chorus Sale
: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--france-lightgray.png?logo=github
- :target: https://github.com/OCA/l10n-france/tree/17.0/l10n_fr_chorus_sale
+ :target: https://github.com/OCA/l10n-france/tree/18.0/l10n_fr_chorus_sale
:alt: OCA/l10n-france
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/l10n-france-17-0/l10n-france-17-0-l10n_fr_chorus_sale
+ :target: https://translation.odoo-community.org/projects/l10n-france-18-0/l10n-france-18-0-l10n_fr_chorus_sale
: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-france&target_branch=17.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-france&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -52,7 +52,7 @@ Bug Tracker
Bugs are tracked on `GitHub 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 `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -90,6 +90,6 @@ Current `maintainer `__:
|maintainer-alexis-via|
-This module is part of the `OCA/l10n-france `_ project on GitHub.
+This module is part of the `OCA/l10n-france `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/l10n_fr_chorus_sale/static/description/index.html b/l10n_fr_chorus_sale/static/description/index.html
index 2afcb241e..36dfcf512 100644
--- a/l10n_fr_chorus_sale/static/description/index.html
+++ b/l10n_fr_chorus_sale/static/description/index.html
@@ -8,10 +8,11 @@
/*
:Author: David Goodger (goodger@python.org)
-: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.
@@ -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 }
@@ -300,7 +301,7 @@
span.pre {
white-space: pre }
-span.problematic {
+span.problematic, pre.problematic {
color: red }
span.section-subtitle {
@@ -368,7 +369,7 @@
This module is an extension of the module l10n_fr_chorus_account for
sale orders. Please refer to the README of the module
l10n_fr_chorus_account for more info about Chorus Pro and electronic
@@ -398,7 +399,7 @@
Bugs are tracked on GitHub 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.
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.