Repository
OCA/product-attribute · module folder · Try on Runboat
Module version
2.0.0
Category
Quality
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/product-attribute
Last tracking update
2026-08-07 07:38:25
Authors
Akretion, Odoo Community Association (OCA)
Maintainers
Akretion, Odoo Community Association (OCA)
Committers
Weblate, OCA-git-bot, oca-ci, GuillemCForgeFlow
Odoo dependencies
OCA/server-tools:
odoo/odoo:
- web
- bus
- uom
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
product_template_form_view product_template_form_view - product_exception product.template form Inherits product.product_template_form_view
product_template_search_view product.template search Inherits product.product_template_search_view
product_template_tree_view product.template tree Inherits product.product_template_tree_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (2)
  • model Selection
    selection_add=[('product.template', 'Product Template'), ('product.product', 'Product Variant')]
  • product_tmpl_ids Many2many → product.template
    string='Product Templates' args: 'product.template'
Public methods (0)

No public methods.

New fields (1)
  • exception_ids Many2many
    related='product_tmpl_id.exception_ids'
Public methods (4)
  • action_product_detect_exceptions(self)
    Manually trigger to calculate the Exceptions. For Variants calculate for them only
  • create(self, vals)
    @api.model
    Upon creation, check if the Product Variant has any Exception, if so, raise a Validation Error
  • product_check_exception(self)
  • write(self, vals)
    When changing one of the trigger fields, check if the Product Variant has any Exception, if so, raise a Validation Error

New fields (0)

No new fields.

Public methods (6)
  • action_product_detect_exceptions(self)
    Manually trigger to calculate the Exceptions. For Templates, calculate for them and for their respective Product Variants
  • check_product_template_cron(self)
    @api.model
  • create(self, vals)
    @api.model
    Upon creation, check if the Product Template has any Exception, if so, raise a Validation Error
  • detect_exceptions(self)
  • product_check_exception(self)
  • write(self, vals)
    When changing one of the trigger fields, check if the Product Template has any Exception, if so, raise a Validation Error

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
252 days ago
Last activity
80 days ago
Repository
OCA/product-attribute
Pull request
[18.0][MIG] product_exception (#2161)