Repository
OCA/product-attribute · module folder · Try on Runboat
Module version
1.0.1
Category
Product
Folder size
0.12 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/product-attribute
Last tracking update
2026-08-07 09:06:25
Authors
ACSONE SA/NV, Odoo Community Association (OCA)
Maintainers
ACSONE SA/NV, Odoo Community Association (OCA)
Committers
Maksym Yankin, Weblate, OCA-git-bot, oca-ci, MohamedOsman7
Odoo dependencies
odoo/odoo:
- web
- bus
- uom
Python dependencies
None
System dependencies
None
Required by
product_state_sale, product_status
Description
This module introduces the state field on product template and allows
simple product life cycle:

- draft: In Development
- sellable: Normal
- end: End of Lifecycle
- obsolete: Obsolete

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
product_state_search_form_view product.state.search.form product.state search New
product_template_form_view product.template.common.form product.template form Inherits product.product_template_form_view
product_template_view_tree_inherit_product_state_id product.template.tree (product_state_id) product.template tree Inherits product.product_template_tree_view
view_product_state_form product.state.form product.state form New
view_product_state_kanban product.state.kanban product.state kanban New
view_product_state_tree product.state.tree product.state list New
view_product_template_search_state product.template.search.state product.template search Inherits product.product_template_search_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (8)
  • active Boolean
    default=True
  • code Char
    required=True string='State Code'
  • default Boolean
    args: 'Default state'
  • description Text
    translate=True
  • name Char → State Name
    comodel_name='State Name' required=True translate=True
  • product_ids One2many → product.template
    comodel_name='product.template' inverse_name='product_state_id' string='State Products'
  • products_count Integer
    compute='_compute_products_count' string='Number of products'
  • sequence Integer
    default=25 help='Used to order the States'
Public methods (0)

No public methods.

New fields (2)
  • product_state_id Many2one → product.state
    comodel_name='product.state' copy=False default=<expr> group_expand='_read_group_state_id' help='Select a state for this product' index=True inverse='_inverse_product_state_id' string='State' tracking=10
  • state Char
    compute='_compute_product_state' index=True inverse='_inverse_product_state' readonly=True store=True string='Product Status'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…