Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG] [16.0] product sticker #1675

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 120 additions & 0 deletions product_sticker/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
===============
Product Sticker
===============

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:2e030ff0caf7c75e468eed64f873243b175f51de4c95d9674a0653ac8b8026fd
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github
:target: https://github.com/OCA/product-attribute/tree/16.0/product_sticker
:alt: OCA/product-attribute
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_sticker
: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/product-attribute&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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

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

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

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

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

**Table of contents**

.. contents::
:local:

Usage
=====

Go to Settings > Technical > Database Structure > Product Stickers.
You can add Stickers to Attributes resulting in different behaviours:
- If an Image has no Company, it will be available to all Companies
- If an Image has no Attribute, it will be available to all Attributes
- If an Image has no Attribute Value, it will be available to all Attribute
Values of the Attribute
- If an Image has no Category, it will be available to all Categories

You can mix behaviours to create a very flexible sticker system

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/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 <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**>`_.

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

Credits
=======

Authors
~~~~~~~

* Moduon

Contributors
~~~~~~~~~~~~

* Eduardo de Miguel (`Moduon <https://www.moduon.team/>`__)

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

.. |maintainer-Shide| image:: https://github.com/Shide.png?size=40px
:target: https://github.com/Shide
:alt: Shide
.. |maintainer-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px
:target: https://github.com/rafaelbn
:alt: rafaelbn

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-Shide| |maintainer-rafaelbn|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions product_sticker/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models
23 changes: 23 additions & 0 deletions product_sticker/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2023 Moduon Team S.L. <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Product Sticker",
"version": "16.0.1.0.0",
"author": "Moduon, Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/product-attribute",
"category": "Sales Management",
"depends": [
"product",
],
"data": [
"security/ir.model.access.csv",
"views/product_sticker_views.xml",
"views/product_attribute_views.xml",
"views/product_template_views.xml",
"data/menus.xml",
],
"maintainers": ["Shide", "rafaelbn"],
Shide marked this conversation as resolved.
Show resolved Hide resolved
"installable": True,
}
12 changes: 12 additions & 0 deletions product_sticker/data/menus.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="menu_product_sticker" model="ir.ui.menu">
<field name="name">Product Stickers</field>
<field name="sequence" eval="10" />
<field
name="parent_id"
search="[('child_id', 'in', ref('base.menu_action_attachment'))]"
/>
<field name="action" ref="product_sticker.action_product_sticker" />
</record>
</odoo>
Loading
Loading