Skip to content

Commit bd7cdad

Browse files
committed
[IMP] product_category_type: pre-commit auto fixes
1 parent e821202 commit bd7cdad

File tree

6 files changed

+46
-43
lines changed

6 files changed

+46
-43
lines changed

product_category_type/README.rst

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@ Product Category Type
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%2Fproduct--attribute-lightgray.png?logo=github
20-
:target: https://github.com/OCA/product-attribute/tree/16.0/product_category_type
20+
:target: https://github.com/OCA/product-attribute/tree/17.0/product_category_type
2121
:alt: OCA/product-attribute
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_category_type
23+
:target: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_category_type
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/product-attribute&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/product-attribute&target_branch=17.0
2727
:alt: Try me on Runboat
2828

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

31-
Add 'Type' field on Product Categories to distinguish between parent and final categories.
31+
Add 'Type' field on Product Categories to distinguish between parent and
32+
final categories.
3233

3334
figure:: ../static/description/product_category_tree.png
3435

35-
* Categories (type view) can contain only categories.
36-
37-
* Categories (type normal) can contain only products.
36+
- Categories (type view) can contain only categories.
37+
- Categories (type normal) can contain only products.
3838

3939
It is so impossible to select a category (type view) in the product
4040
template form view.
@@ -47,7 +47,8 @@ Note
4747
This module restores a feature that was present in Odoo Community
4848
Edition until the V10 revision.
4949

50-
Ref: https://github.com/odoo/odoo/blob/10.0/addons/product/models/product.py#L24
50+
Ref:
51+
https://github.com/odoo/odoo/blob/10.0/addons/product/models/product.py#L24
5152

5253
**Table of contents**
5354

@@ -60,25 +61,25 @@ Bug Tracker
6061
Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/issues>`_.
6162
In case of trouble, please check there if your issue has already been reported.
6263
If you spotted it first, help us to smash it by providing a detailed and welcomed
63-
`feedback <https://github.com/OCA/product-attribute/issues/new?body=module:%20product_category_type%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
64+
`feedback <https://github.com/OCA/product-attribute/issues/new?body=module:%20product_category_type%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
6465

6566
Do not contact contributors directly about support or help with technical issues.
6667

6768
Credits
6869
=======
6970

7071
Authors
71-
~~~~~~~
72+
-------
7273

7374
* GRAP
7475

7576
Contributors
76-
~~~~~~~~~~~~
77+
------------
7778

78-
* Sylvain LE GAL (https://www.twitter.com/legalsylvain)
79+
- Sylvain LE GAL (https://www.twitter.com/legalsylvain)
7980

8081
Maintainers
81-
~~~~~~~~~~~
82+
-----------
8283

8384
This module is maintained by the OCA.
8485

@@ -98,6 +99,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
9899

99100
|maintainer-legalsylvain|
100101

101-
This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/16.0/product_category_type>`_ project on GitHub.
102+
This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/17.0/product_category_type>`_ project on GitHub.
102103

103104
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Sylvain LE GAL (<https://www.twitter.com/legalsylvain>)

product_category_type/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
Add 'Type' field on Product Categories to distinguish between parent and final categories.
1+
Add 'Type' field on Product Categories to distinguish between parent and
2+
final categories.
23

34
figure:: ../static/description/product_category_tree.png
45

5-
* Categories (type view) can contain only categories.
6-
7-
* Categories (type normal) can contain only products.
6+
- Categories (type view) can contain only categories.
7+
- Categories (type normal) can contain only products.
88

99
It is so impossible to select a category (type view) in the product
1010
template form view.
1111

1212
figure:: ../static/description/product_template_form.png
1313

14-
Note
15-
----
14+
## Note
1615

1716
This module restores a feature that was present in Odoo Community
1817
Edition until the V10 revision.
1918

20-
Ref: https://github.com/odoo/odoo/blob/10.0/addons/product/models/product.py#L24
19+
Ref:
20+
<https://github.com/odoo/odoo/blob/10.0/addons/product/models/product.py#L24>

product_category_type/static/description/index.html

Lines changed: 20 additions & 21 deletions
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,8 +369,9 @@ <h1 class="title">Product Category Type</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:c00a45ebcba2d1b0c250b5924ff6d7936bf326e6ad624c152c3a129f7cc72f50
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/product-attribute/tree/16.0/product_category_type"><img alt="OCA/product-attribute" src="https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_category_type"><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/product-attribute&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373-
<p>Add ‘Type’ field on Product Categories to distinguish between parent and final categories.</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/product-attribute/tree/17.0/product_category_type"><img alt="OCA/product-attribute" src="https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_category_type"><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/product-attribute&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373+
<p>Add ‘Type’ field on Product Categories to distinguish between parent and
374+
final categories.</p>
374375
<p>figure:: ../static/description/product_category_tree.png</p>
375376
<ul class="simple">
376377
<li>Categories (type view) can contain only categories.</li>
@@ -383,55 +384,53 @@ <h1 class="title">Product Category Type</h1>
383384
<h1>Note</h1>
384385
<p>This module restores a feature that was present in Odoo Community
385386
Edition until the V10 revision.</p>
386-
<p>Ref: <a class="reference external" href="https://github.com/odoo/odoo/blob/10.0/addons/product/models/product.py#L24">https://github.com/odoo/odoo/blob/10.0/addons/product/models/product.py#L24</a></p>
387+
<p>Ref:
388+
<a class="reference external" href="https://github.com/odoo/odoo/blob/10.0/addons/product/models/product.py#L24">https://github.com/odoo/odoo/blob/10.0/addons/product/models/product.py#L24</a></p>
387389
<p><strong>Table of contents</strong></p>
388390
<div class="contents local topic" id="contents">
389391
<ul class="simple">
390392
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-1">Bug Tracker</a></li>
391-
<li><a class="reference internal" href="#credits" id="toc-entry-2">Credits</a><ul>
392-
<li><a class="reference internal" href="#authors" id="toc-entry-3">Authors</a></li>
393-
<li><a class="reference internal" href="#contributors" id="toc-entry-4">Contributors</a></li>
394-
<li><a class="reference internal" href="#maintainers" id="toc-entry-5">Maintainers</a></li>
395-
</ul>
396-
</li>
393+
<li><a class="reference internal" href="#credits" id="toc-entry-2">Credits</a></li>
397394
</ul>
398395
</div>
399396
<div class="section" id="bug-tracker">
400397
<h2><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h2>
401398
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/product-attribute/issues">GitHub Issues</a>.
402399
In case of trouble, please check there if your issue has already been reported.
403400
If you spotted it first, help us to smash it by providing a detailed and welcomed
404-
<a class="reference external" href="https://github.com/OCA/product-attribute/issues/new?body=module:%20product_category_type%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
401+
<a class="reference external" href="https://github.com/OCA/product-attribute/issues/new?body=module:%20product_category_type%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
405402
<p>Do not contact contributors directly about support or help with technical issues.</p>
406403
</div>
407404
<div class="section" id="credits">
408405
<h2><a class="toc-backref" href="#toc-entry-2">Credits</a></h2>
406+
</div>
407+
</div>
409408
<div class="section" id="authors">
410-
<h3><a class="toc-backref" href="#toc-entry-3">Authors</a></h3>
409+
<h1>Authors</h1>
411410
<ul class="simple">
412411
<li>GRAP</li>
413412
</ul>
414413
</div>
415414
<div class="section" id="contributors">
416-
<h3><a class="toc-backref" href="#toc-entry-4">Contributors</a></h3>
415+
<h1>Contributors</h1>
417416
<ul class="simple">
418417
<li>Sylvain LE GAL (<a class="reference external" href="https://www.twitter.com/legalsylvain">https://www.twitter.com/legalsylvain</a>)</li>
419418
</ul>
420419
</div>
421420
<div class="section" id="maintainers">
422-
<h3><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h3>
421+
<h1>Maintainers</h1>
423422
<p>This module is maintained by the OCA.</p>
424-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
423+
<a class="reference external image-reference" href="https://odoo-community.org">
424+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
425+
</a>
425426
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
426427
mission is to support the collaborative development of Odoo features and
427428
promote its widespread use.</p>
428429
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
429430
<p><a class="reference external image-reference" href="https://github.com/legalsylvain"><img alt="legalsylvain" src="https://github.com/legalsylvain.png?size=40px" /></a></p>
430-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/product-attribute/tree/16.0/product_category_type">OCA/product-attribute</a> project on GitHub.</p>
431+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/product-attribute/tree/17.0/product_category_type">OCA/product-attribute</a> project on GitHub.</p>
431432
<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>
432433
</div>
433434
</div>
434-
</div>
435-
</div>
436435
</body>
437436
</html>

0 commit comments

Comments
 (0)