Skip to content

Commit 290478d

Browse files
committed
Merge PR #2011 into 18.0
Signed-off-by HaraldPanten
2 parents c53fe85 + 67b261f commit 290478d

27 files changed

+2408
-0
lines changed

product_sticker/README.rst

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
===============
2+
Product Sticker
3+
===============
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:5b041cc46447f7d0315b8ede46d493b5805745fbbc7c9ca1553ba21fcee1badc
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github
20+
:target: https://github.com/OCA/product-attribute/tree/18.0/product_sticker
21+
:alt: OCA/product-attribute
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/product-attribute-18-0/product-attribute-18-0-product_sticker
24+
:alt: Translate me on Weblate
25+
.. |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=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
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.
34+
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.
39+
40+
This module by itself does not do anything, it is a base module to be
41+
extended by other modules.
42+
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.
46+
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
52+
be printed or not.
53+
54+
**Table of contents**
55+
56+
.. contents::
57+
:local:
58+
59+
Usage
60+
=====
61+
62+
Go to Settings > Technical > Database Structure > Product Stickers.
63+
64+
You can add Stickers to Attributes resulting in different behaviours:
65+
66+
- If an Image has no Company, it will be available to all Companies.
67+
- If an Image has Available Models, it will be restricted to selected
68+
Models.
69+
- If an Image has no Attribute, it will be available to all Attributes.
70+
- If an Image has no Attribute Value, it will be available to all
71+
Attribute Values of the Attribute.
72+
- If an Image has no Category, it will be available to all Categories.
73+
74+
You can mix behaviours to create a very flexible sticker system.
75+
76+
Bug Tracker
77+
===========
78+
79+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/issues>`_.
80+
In case of trouble, please check there if your issue has already been reported.
81+
If you spotted it first, help us to smash it by providing a detailed and welcomed
82+
`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**>`_.
83+
84+
Do not contact contributors directly about support or help with technical issues.
85+
86+
Credits
87+
=======
88+
89+
Authors
90+
-------
91+
92+
* Moduon
93+
94+
Contributors
95+
------------
96+
97+
- Eduardo de Miguel (`Moduon <https://www.moduon.team/>`__)
98+
99+
Maintainers
100+
-----------
101+
102+
This module is maintained by the OCA.
103+
104+
.. image:: https://odoo-community.org/logo.png
105+
:alt: Odoo Community Association
106+
:target: https://odoo-community.org
107+
108+
OCA, or the Odoo Community Association, is a nonprofit organization whose
109+
mission is to support the collaborative development of Odoo features and
110+
promote its widespread use.
111+
112+
.. |maintainer-Shide| image:: https://github.com/Shide.png?size=40px
113+
:target: https://github.com/Shide
114+
:alt: Shide
115+
.. |maintainer-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px
116+
:target: https://github.com/rafaelbn
117+
:alt: rafaelbn
118+
119+
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
120+
121+
|maintainer-Shide| |maintainer-rafaelbn|
122+
123+
This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/18.0/product_sticker>`_ project on GitHub.
124+
125+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

product_sticker/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
2+
from . import models

product_sticker/__manifest__.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2023 Moduon Team S.L. <info@moduon.team>
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3+
4+
{
5+
"name": "Product Sticker",
6+
"version": "18.0.1.0.0",
7+
"author": "Moduon, Odoo Community Association (OCA)",
8+
"license": "AGPL-3",
9+
"website": "https://github.com/OCA/product-attribute",
10+
"category": "Sales Management",
11+
"depends": [
12+
"product",
13+
],
14+
"data": [
15+
"security/ir.model.access.csv",
16+
"views/product_sticker_views.xml",
17+
"views/product_attribute_views.xml",
18+
"views/product_template_views.xml",
19+
"data/menus.xml",
20+
],
21+
"maintainers": ["Shide", "rafaelbn"],
22+
"installable": True,
23+
}

product_sticker/data/menus.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<odoo>
3+
<record id="menu_product_sticker" model="ir.ui.menu">
4+
<field name="name">Product Stickers</field>
5+
<field name="sequence" eval="10" />
6+
<field
7+
name="parent_id"
8+
search="[('child_id', 'in', ref('base.menu_action_attachment'))]"
9+
/>
10+
<field name="action" ref="product_sticker.action_product_sticker" />
11+
</record>
12+
</odoo>

0 commit comments

Comments
 (0)