Skip to content

Commit b62f9da

Browse files
committed
[IMP] product_sticker: pre-commit auto fixes
1 parent 2d7c3fe commit b62f9da

File tree

11 files changed

+96
-91
lines changed

11 files changed

+96
-91
lines changed

product_sticker/README.rst

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,38 @@ Product Sticker
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_sticker
20+
:target: https://github.com/OCA/product-attribute/tree/18.0/product_sticker
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_sticker
23+
:target: https://translation.odoo-community.org/projects/product-attribute-18-0/product-attribute-18-0-product_sticker
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=18.0
2727
:alt: Try me on Runboat
2828

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

31-
With this module you can add **stickers** (aka Images) to Product Attributes, Product
32-
Attributes Values or Categories. Also you can put a text below the sticker if you want.
31+
With this module you can add **stickers** (aka Images) to Product
32+
Attributes, Product Attributes Values or Categories. Also you can put a
33+
text below the sticker if you want.
3334

34-
A sticker could be the image of a stamps, certifications or other images related
35-
to a product (but not the image of a product) or an attribute or a value of an
36-
attribute to use for reports o other places in Odoo.
37-
For example: ISO, Ecology, Security, Resistance, etc.
35+
A sticker could be the image of a stamps, certifications or other images
36+
related to a product (but not the image of a product) or an attribute or
37+
a value of an attribute to use for reports o other places in Odoo. For
38+
example: ISO, Ecology, Security, Resistance, etc.
3839

3940
This module by itself does not do anything, it is a base module to be
4041
extended by other modules.
4142

42-
A general use case is: we have the use case than depending of the attribute of
43-
the product or the value of the product it is mandatory legally print the
44-
**sticker** in **Delivery slip** of stock picking.
43+
A general use case is: we have the use case than depending of the
44+
attribute of the product or the value of the product it is mandatory
45+
legally print the **sticker** in **Delivery slip** of stock picking.
4546

46-
A specific example of use case: when selling ecological products, the European Union
47-
makes it mandatory to print official
48-
`ECO Logo <https://agriculture.ec.europa.eu/farming/organic-farming/organic-logo_en>`_
49-
in pickings, and this depends on the product attribute or values.
50-
An apple could be ecologic or not and depending the attribute this should
47+
A specific example of use case: when selling ecological products, the
48+
European Union makes it mandatory to print official `ECO
49+
Logo <https://agriculture.ec.europa.eu/farming/organic-farming/organic-logo_en>`__
50+
in pickings, and this depends on the product attribute or values. An
51+
apple could be ecologic or not and depending the attribute this should
5152
be printed or not.
5253

5354
**Table of contents**
@@ -58,14 +59,14 @@ be printed or not.
5859
Usage
5960
=====
6061

61-
Go to Settings > Technical > Database Structure > Product Stickers.
62-
You can add Stickers to Attributes resulting in different behaviours:
63-
- If an Image has no Company, it will be available to all Companies
64-
- If an Image has Available Models, it will be restricted to selected Models.
65-
- If an Image has no Attribute, it will be available to all Attributes
66-
- If an Image has no Attribute Value, it will be available to all Attribute
67-
Values of the Attribute
68-
- If an Image has no Category, it will be available to all Categories
62+
Go to Settings > Technical > Database Structure > Product Stickers. You
63+
can add Stickers to Attributes resulting in different behaviours: - If
64+
an Image has no Company, it will be available to all Companies - If an
65+
Image has Available Models, it will be restricted to selected Models. -
66+
If an Image has no Attribute, it will be available to all Attributes -
67+
If an Image has no Attribute Value, it will be available to all
68+
Attribute Values of the Attribute - If an Image has no Category, it will
69+
be available to all Categories
6970

7071
You can mix behaviours to create a very flexible sticker system
7172

@@ -75,25 +76,25 @@ Bug Tracker
7576
Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/issues>`_.
7677
In case of trouble, please check there if your issue has already been reported.
7778
If you spotted it first, help us to smash it by providing a detailed and welcomed
78-
`feedback <https://github.com/OCA/product-attribute/issues/new?body=module:%20product_sticker%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
79+
`feedback <https://github.com/OCA/product-attribute/issues/new?body=module:%20product_sticker%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
7980

8081
Do not contact contributors directly about support or help with technical issues.
8182

8283
Credits
8384
=======
8485

8586
Authors
86-
~~~~~~~
87+
-------
8788

8889
* Moduon
8990

9091
Contributors
91-
~~~~~~~~~~~~
92+
------------
9293

93-
* Eduardo de Miguel (`Moduon <https://www.moduon.team/>`__)
94+
- Eduardo de Miguel (`Moduon <https://www.moduon.team/>`__)
9495

9596
Maintainers
96-
~~~~~~~~~~~
97+
-----------
9798

9899
This module is maintained by the OCA.
99100

@@ -116,6 +117,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
116117

117118
|maintainer-Shide| |maintainer-rafaelbn|
118119

119-
This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/16.0/product_sticker>`_ project on GitHub.
120+
This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/18.0/product_sticker>`_ project on GitHub.
120121

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

product_sticker/pyproject.toml

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+
- Eduardo de Miguel ([Moduon](https://www.moduon.team/))

product_sticker/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
With this module you can add **stickers** (aka Images) to Product
2+
Attributes, Product Attributes Values or Categories. Also you can put a
3+
text below the sticker if you want.
4+
5+
A sticker could be the image of a stamps, certifications or other images
6+
related to a product (but not the image of a product) or an attribute or
7+
a value of an attribute to use for reports o other places in Odoo. For
8+
example: ISO, Ecology, Security, Resistance, etc.
9+
10+
This module by itself does not do anything, it is a base module to be
11+
extended by other modules.
12+
13+
A general use case is: we have the use case than depending of the
14+
attribute of the product or the value of the product it is mandatory
15+
legally print the **sticker** in **Delivery slip** of stock picking.
16+
17+
A specific example of use case: when selling ecological products, the
18+
European Union makes it mandatory to print official [ECO
19+
Logo](https://agriculture.ec.europa.eu/farming/organic-farming/organic-logo_en)
20+
in pickings, and this depends on the product attribute or values. An
21+
apple could be ecologic or not and depending the attribute this should
22+
be printed or not.

product_sticker/readme/DESCRIPTION.rst

Lines changed: 0 additions & 21 deletions
This file was deleted.

product_sticker/readme/USAGE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Go to Settings \> Technical \> Database Structure \> Product Stickers.
2+
You can add Stickers to Attributes resulting in different behaviours: -
3+
If an Image has no Company, it will be available to all Companies - If
4+
an Image has Available Models, it will be restricted to selected
5+
Models. - If an Image has no Attribute, it will be available to all
6+
Attributes - If an Image has no Attribute Value, it will be available to
7+
all Attribute Values of the Attribute - If an Image has no Category, it
8+
will be available to all Categories
9+
10+
You can mix behaviours to create a very flexible sticker system

product_sticker/readme/USAGE.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

product_sticker/static/description/index.html

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -369,23 +369,24 @@ <h1 class="title">Product Sticker</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:5b041cc46447f7d0315b8ede46d493b5805745fbbc7c9ca1553ba21fcee1badc
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_sticker"><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_sticker"><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>With this module you can add <strong>stickers</strong> (aka Images) to Product Attributes, Product
374-
Attributes Values or Categories. Also you can put a text below the sticker if you want.</p>
375-
<p>A sticker could be the image of a stamps, certifications or other images related
376-
to a product (but not the image of a product) or an attribute or a value of an
377-
attribute to use for reports o other places in Odoo.
378-
For example: ISO, Ecology, Security, Resistance, etc.</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/18.0/product_sticker"><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-18-0/product-attribute-18-0-product_sticker"><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=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373+
<p>With this module you can add <strong>stickers</strong> (aka Images) to Product
374+
Attributes, Product Attributes Values or Categories. Also you can put a
375+
text below the sticker if you want.</p>
376+
<p>A sticker could be the image of a stamps, certifications or other images
377+
related to a product (but not the image of a product) or an attribute or
378+
a value of an attribute to use for reports o other places in Odoo. For
379+
example: ISO, Ecology, Security, Resistance, etc.</p>
379380
<p>This module by itself does not do anything, it is a base module to be
380381
extended by other modules.</p>
381-
<p>A general use case is: we have the use case than depending of the attribute of
382-
the product or the value of the product it is mandatory legally print the
383-
<strong>sticker</strong> in <strong>Delivery slip</strong> of stock picking.</p>
384-
<p>A specific example of use case: when selling ecological products, the European Union
385-
makes it mandatory to print official
386-
<a class="reference external" href="https://agriculture.ec.europa.eu/farming/organic-farming/organic-logo_en">ECO Logo</a>
387-
in pickings, and this depends on the product attribute or values.
388-
An apple could be ecologic or not and depending the attribute this should
382+
<p>A general use case is: we have the use case than depending of the
383+
attribute of the product or the value of the product it is mandatory
384+
legally print the <strong>sticker</strong> in <strong>Delivery slip</strong> of stock picking.</p>
385+
<p>A specific example of use case: when selling ecological products, the
386+
European Union makes it mandatory to print official <a class="reference external" href="https://agriculture.ec.europa.eu/farming/organic-farming/organic-logo_en">ECO
387+
Logo</a>
388+
in pickings, and this depends on the product attribute or values. An
389+
apple could be ecologic or not and depending the attribute this should
389390
be printed or not.</p>
390391
<p><strong>Table of contents</strong></p>
391392
<div class="contents local topic" id="contents">
@@ -402,22 +403,22 @@ <h1 class="title">Product Sticker</h1>
402403
</div>
403404
<div class="section" id="usage">
404405
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
405-
<p>Go to Settings &gt; Technical &gt; Database Structure &gt; Product Stickers.
406-
You can add Stickers to Attributes resulting in different behaviours:
407-
- If an Image has no Company, it will be available to all Companies
408-
- If an Image has Available Models, it will be restricted to selected Models.
409-
- If an Image has no Attribute, it will be available to all Attributes
410-
- If an Image has no Attribute Value, it will be available to all Attribute
411-
Values of the Attribute
412-
- If an Image has no Category, it will be available to all Categories</p>
406+
<p>Go to Settings &gt; Technical &gt; Database Structure &gt; Product Stickers. You
407+
can add Stickers to Attributes resulting in different behaviours: - If
408+
an Image has no Company, it will be available to all Companies - If an
409+
Image has Available Models, it will be restricted to selected Models. -
410+
If an Image has no Attribute, it will be available to all Attributes -
411+
If an Image has no Attribute Value, it will be available to all
412+
Attribute Values of the Attribute - If an Image has no Category, it will
413+
be available to all Categories</p>
413414
<p>You can mix behaviours to create a very flexible sticker system</p>
414415
</div>
415416
<div class="section" id="bug-tracker">
416417
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
417418
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/product-attribute/issues">GitHub Issues</a>.
418419
In case of trouble, please check there if your issue has already been reported.
419420
If you spotted it first, help us to smash it by providing a detailed and welcomed
420-
<a class="reference external" href="https://github.com/OCA/product-attribute/issues/new?body=module:%20product_sticker%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
421+
<a class="reference external" href="https://github.com/OCA/product-attribute/issues/new?body=module:%20product_sticker%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
421422
<p>Do not contact contributors directly about support or help with technical issues.</p>
422423
</div>
423424
<div class="section" id="credits">
@@ -445,7 +446,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
445446
promote its widespread use.</p>
446447
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
447448
<p><a class="reference external image-reference" href="https://github.com/Shide"><img alt="Shide" src="https://github.com/Shide.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/rafaelbn"><img alt="rafaelbn" src="https://github.com/rafaelbn.png?size=40px" /></a></p>
448-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/product-attribute/tree/16.0/product_sticker">OCA/product-attribute</a> project on GitHub.</p>
449+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/product-attribute/tree/18.0/product_sticker">OCA/product-attribute</a> project on GitHub.</p>
449450
<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>
450451
</div>
451452
</div>

product_sticker/views/product_sticker_views.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@
200200
</div>
201201
</div>
202202
<div class="o_kanban_record_bottom">
203-
<div class="oe_kanban_bottom_left">
204-
</div>
203+
<div class="oe_kanban_bottom_left" />
205204
<div class="oe_kanban_bottom_right">
206205
<field
207206
name="create_uid"

0 commit comments

Comments
 (0)