Skip to content

Commit 9bc1c8e

Browse files
[IMP] delivery_carrier_max_weight_constraint: pre-commit auto fixes
1 parent cf658ef commit 9bc1c8e

File tree

8 files changed

+37
-34
lines changed

8 files changed

+37
-34
lines changed

delivery_carrier_max_weight_constraint/README.rst

+14-14
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ Constrain package maximum weight
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%2Fdelivery--carrier-lightgray.png?logo=github
20-
:target: https://github.com/OCA/delivery-carrier/tree/16.0/delivery_carrier_max_weight_constraint
20+
:target: https://github.com/OCA/delivery-carrier/tree/18.0/delivery_carrier_max_weight_constraint
2121
:alt: OCA/delivery-carrier
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/delivery-carrier-16-0/delivery-carrier-16-0-delivery_carrier_max_weight_constraint
23+
:target: https://translation.odoo-community.org/projects/delivery-carrier-18-0/delivery-carrier-18-0-delivery_carrier_max_weight_constraint
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/delivery-carrier&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/delivery-carrier&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

3131
This module ensures the wizard of package type selection cannot create a
32-
package with a weight greater than the maximum configured on its packaging
33-
type if the constraint is enabled and maximum weight set.
32+
package with a weight greater than the maximum configured on its
33+
packaging type if the constraint is enabled and maximum weight set.
3434

3535
**Table of contents**
3636

@@ -46,35 +46,35 @@ The constraint can be enabled at multiple levels:
4646
- Carrier with company level as default
4747
- Package type with carrier level as default
4848

49-
If the constraint is disabled at the package type level
50-
Odoo behaves the usual way.
49+
If the constraint is disabled at the package type level Odoo behaves the
50+
usual way.
5151

5252
Bug Tracker
5353
===========
5454

5555
Bugs are tracked on `GitHub Issues <https://github.com/OCA/delivery-carrier/issues>`_.
5656
In case of trouble, please check there if your issue has already been reported.
5757
If you spotted it first, help us to smash it by providing a detailed and welcomed
58-
`feedback <https://github.com/OCA/delivery-carrier/issues/new?body=module:%20delivery_carrier_max_weight_constraint%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
58+
`feedback <https://github.com/OCA/delivery-carrier/issues/new?body=module:%20delivery_carrier_max_weight_constraint%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5959

6060
Do not contact contributors directly about support or help with technical issues.
6161

6262
Credits
6363
=======
6464

6565
Authors
66-
~~~~~~~
66+
-------
6767

6868
* ACSONE SA/NV
6969

7070
Contributors
71-
~~~~~~~~~~~~
71+
------------
7272

73-
* Nans Lefebvre <nans.lefebvre@acsone.eu>
74-
* Hughes Damry <hughes.damry@acsone.eu>
73+
- Nans Lefebvre <nans.lefebvre@acsone.eu>
74+
- Hughes Damry <hughes.damry@acsone.eu>
7575

7676
Maintainers
77-
~~~~~~~~~~~
77+
-----------
7878

7979
This module is maintained by the OCA.
8080

@@ -86,6 +86,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
8686
mission is to support the collaborative development of Odoo features and
8787
promote its widespread use.
8888

89-
This module is part of the `OCA/delivery-carrier <https://github.com/OCA/delivery-carrier/tree/16.0/delivery_carrier_max_weight_constraint>`_ project on GitHub.
89+
This module is part of the `OCA/delivery-carrier <https://github.com/OCA/delivery-carrier/tree/18.0/delivery_carrier_max_weight_constraint>`_ project on GitHub.
9090

9191
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Nans Lefebvre \<<nans.lefebvre@acsone.eu>\>
2+
- Hughes Damry \<<hughes.damry@acsone.eu>\>

delivery_carrier_max_weight_constraint/readme/CONTRIBUTORS.rst

-2
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
This module ensures the wizard of package type selection cannot create a
2-
package with a weight greater than the maximum configured on its packaging
3-
type if the constraint is enabled and maximum weight set.
2+
package with a weight greater than the maximum configured on its
3+
packaging type if the constraint is enabled and maximum weight set.

delivery_carrier_max_weight_constraint/readme/USAGE.rst delivery_carrier_max_weight_constraint/readme/USAGE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ The constraint can be enabled at multiple levels:
44
- Carrier with company level as default
55
- Package type with carrier level as default
66

7-
If the constraint is disabled at the package type level
8-
Odoo behaves the usual way.
7+
If the constraint is disabled at the package type level Odoo behaves the
8+
usual way.

delivery_carrier_max_weight_constraint/static/description/index.html

+14-12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<?xml version="1.0" encoding="utf-8"?>
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
32
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
43
<head>
@@ -9,10 +8,11 @@
98

109
/*
1110
:Author: David Goodger (goodger@python.org)
12-
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
1312
:Copyright: This stylesheet has been placed in the public domain.
1413
1514
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1616
1717
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1818
customize this style sheet.
@@ -275,7 +275,7 @@
275275
margin-left: 2em ;
276276
margin-right: 2em }
277277

278-
pre.code .ln { color: grey; } /* line numbers */
278+
pre.code .ln { color: gray; } /* line numbers */
279279
pre.code, code { background-color: #eeeeee }
280280
pre.code .comment, code .comment { color: #5C6576 }
281281
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -301,7 +301,7 @@
301301
span.pre {
302302
white-space: pre }
303303

304-
span.problematic {
304+
span.problematic, pre.problematic {
305305
color: red }
306306

307307
span.section-subtitle {
@@ -369,10 +369,10 @@ <h1 class="title">Constrain package maximum weight</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:6ba5257fa2a9b192424dfe7143ca22893a08d55d46cf69b0897cfcbf231a26bf
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/delivery-carrier/tree/16.0/delivery_carrier_max_weight_constraint"><img alt="OCA/delivery-carrier" src="https://img.shields.io/badge/github-OCA%2Fdelivery--carrier-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/delivery-carrier-16-0/delivery-carrier-16-0-delivery_carrier_max_weight_constraint"><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/delivery-carrier&amp;target_branch=16.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/delivery-carrier/tree/18.0/delivery_carrier_max_weight_constraint"><img alt="OCA/delivery-carrier" src="https://img.shields.io/badge/github-OCA%2Fdelivery--carrier-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/delivery-carrier-18-0/delivery-carrier-18-0-delivery_carrier_max_weight_constraint"><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/delivery-carrier&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 ensures the wizard of package type selection cannot create a
374-
package with a weight greater than the maximum configured on its packaging
375-
type if the constraint is enabled and maximum weight set.</p>
374+
package with a weight greater than the maximum configured on its
375+
packaging type if the constraint is enabled and maximum weight set.</p>
376376
<p><strong>Table of contents</strong></p>
377377
<div class="contents local topic" id="contents">
378378
<ul class="simple">
@@ -394,15 +394,15 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
394394
<li>Carrier with company level as default</li>
395395
<li>Package type with carrier level as default</li>
396396
</ul>
397-
<p>If the constraint is disabled at the package type level
398-
Odoo behaves the usual way.</p>
397+
<p>If the constraint is disabled at the package type level Odoo behaves the
398+
usual way.</p>
399399
</div>
400400
<div class="section" id="bug-tracker">
401401
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
402402
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/delivery-carrier/issues">GitHub Issues</a>.
403403
In case of trouble, please check there if your issue has already been reported.
404404
If you spotted it first, help us to smash it by providing a detailed and welcomed
405-
<a class="reference external" href="https://github.com/OCA/delivery-carrier/issues/new?body=module:%20delivery_carrier_max_weight_constraint%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
405+
<a class="reference external" href="https://github.com/OCA/delivery-carrier/issues/new?body=module:%20delivery_carrier_max_weight_constraint%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
406406
<p>Do not contact contributors directly about support or help with technical issues.</p>
407407
</div>
408408
<div class="section" id="credits">
@@ -423,11 +423,13 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
423423
<div class="section" id="maintainers">
424424
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
425425
<p>This module is maintained by the OCA.</p>
426-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
426+
<a class="reference external image-reference" href="https://odoo-community.org">
427+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
428+
</a>
427429
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
428430
mission is to support the collaborative development of Odoo features and
429431
promote its widespread use.</p>
430-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/delivery-carrier/tree/16.0/delivery_carrier_max_weight_constraint">OCA/delivery-carrier</a> project on GitHub.</p>
432+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/delivery-carrier/tree/18.0/delivery_carrier_max_weight_constraint">OCA/delivery-carrier</a> project on GitHub.</p>
431433
<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>
432434
</div>
433435
</div>

delivery_carrier_max_weight_constraint/views/stock_package_type_views.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<odoo>
3-
43
<record model="ir.ui.view" id="stock_package_type_form_delivery">
54
<field
65
name="name"
@@ -13,5 +12,4 @@
1312
</field>
1413
</field>
1514
</record>
16-
1715
</odoo>

0 commit comments

Comments
 (0)