TIP: You can type at any time to perform a new search.

Security findings

Repository
OCA/product-attribute · module folder · Try on Runboat
Module version
1.0.2
Category
Sales Management
Folder size
0.09 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/product-attribute
Last tracking update
2026-08-07 08:42:54
Authors
Odoo Community Association (OCA), Moduon
Maintainers
Odoo Community Association (OCA), Moduon
Committers
Weblate, Eduardo de Miguel, Andrii Kompaniiets, OCA-git-bot, oca-ci
Odoo dependencies
odoo/odoo:
- web
- bus
- uom
Python dependencies
None
System dependencies
None
Required by
account_invoice_report_product_sticker, stock_picking_report_product_sticker
Description
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.

Code Analysis info_outline

Views touched (9)
XML IDNameModelTypeStatus
product_attribute_view_form product.attribute.sticker.form product.attribute form Inherits product.product_attribute_view_form
product_normal_form_view product.product.sticker.form product.product form Inherits product.product_normal_form_view
product_sticker_form_view product.sticker.form.view product.sticker form New
product_sticker_kanban_view product.sticker.kanban.view product.sticker kanban New
product_sticker_list_view product.sticker.list.view product.sticker list New
product_sticker_search_view product.sticker.search.view product.sticker search New
product_template_form_view product.template.common.sticker.form product.template form Inherits product.product_template_form_view
product_variant_easy_edit_view product.product.view.form.easy product.product form Inherits product.product_variant_easy_edit_view
report_sticker_template report_sticker_template ir.ui.view qweb New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (6)

New fields (1)
  • sticker_ids One2many
    inverse_name='product_attribute_id'
Public methods (0)

No public methods.

New fields (1)
  • sticker_ids One2many
    inverse_name='product_attribute_value_id'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (2)
  • action_view_stickers(self)
    Action to open the Stickers related to this Product
  • get_product_stickers(self, extra_domain=None)
    @api.returns('product.sticker')
    Product Stickers related to this Product Variant and its Template for certain models

New fields (12)
  • available_model_ids Many2many → ir.model
    comodel_name='ir.model' help='Models where this sticker is available. Empty means all models.' string='Available Models'
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> string='Company'
  • image_1920 Image
    required=True
  • image_64 Image
    max_height=64 max_width=64 related='image_1920' store=True string='Small Image'
  • image_size Selection
    default='64' help='Max size of the Sticker. Max Width x Max Height' required=True selection=[('64', '64x64 px'), ('128', '128x128 px'), ('256', '256x256 px'), ('512', '512x512 px'), ('1024', '1024x1024 px'), ('1920', '1920x1920 px')]
  • name Char
    required=True translate=True
  • note Text
    help='Used to display a note with the sticker' translate=True
  • product_attribute_id Many2one → product.attribute
    comodel_name='product.attribute' ondelete='cascade' string='Attribute'
  • product_attribute_value_id Many2one → product.attribute.value
    comodel_name='product.attribute.value' domain="[('attribute_id', '=', product_attribute_id)]" ondelete='cascade' string='Attribute value'
  • product_category_id Many2one → product.category
    comodel_name='product.category' ondelete='cascade' string='Category'
  • sequence Integer
    default=10 index=True
  • show_sticker_note Boolean
    help='If checked, the note will be displayed with the sticker' string='Sticker Note'
Public methods (1)
  • get_image(self)
    Get the image of the sticker

New fields (2)
  • sticker_count Integer
    compute='_compute_sticker_count' store=True
  • sticker_ids One2many → product.sticker
    comodel_name='product.sticker' domain=<expr> string='Product Stickers'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • action_view_stickers(self)
    Action to open the Stickers related to this Product Template

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
68 days ago
Last activity
68 days ago
Repository
OCA/product-attribute
Pull request
[19.0] [MIG] product_sticker : Migration to 19.0 (#2354)