Repository
OCA/product-attribute · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
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 08:42:54
Authors
ACSONE SA/NV, Odoo Community Association (OCA)
Maintainers
ACSONE SA/NV, Odoo Community Association (OCA)
Committers
JordiMForgeFlow, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
freezegun
System dependencies
None
Required by
None
Description
This modules includes an ABC analysis computation profile based on the
number of sale order lines delivered from a given date by product.

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
abc_classification_product_level_form_view abc.classification.product.level.form (in product_abc_classification_sale_stock) abc.classification.product.level form Inherits product_abc_classification.abc_classification_product_level_form_view
abc_classification_profile_form_view abc.classification.profile.form (in product_abc_classification_sale_stock) abc.classification.profile form Inherits product_abc_classification.abc_classification_profile_form_view
abc_sale_stock_level_history_search_view abc.sale_stock.level.history.search (in product_abc_classification_sale_stock) abc.sale_stock.level.history search New
abc_sale_stock_level_history_tree_view abc.sale_stock.level.history.tree (in product_abc_classification_sale_stock) abc.sale_stock.level.history list New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (1)
  • sale_stock_level_history_ids One2many → abc.sale_stock.level.history
    comodel_name='abc.sale_stock.level.history' inverse_name='product_level_id'
Public methods (0)

No public methods.

New fields (2)
  • profile_type Selection
    ondelete={'sale_stock': 'cascade'} selection_add=[('sale_stock', 'Based on the count of delivered sale order line by product')]
  • warehouse_id Many2one → stock.warehouse
    default=<expr> ondelete='cascade' args: 'stock.warehouse', 'Warehouse'
Public methods (0)

No public methods.

New fields (17)
  • computed_level_id Many2one → abc.classification.level
    ondelete='cascade' readonly=True string='Computed classification level' args: 'abc.classification.level'
  • cumulated_percentage Float
    aggregator=None digits=(7, 4) help='Cumulated percentage of all the products with a better ranking' readonly=True required=True
  • cumulated_percentage_products Float
    aggregator=None digits=(7, 4) help='Cumulated percentage of total products analyzed with a better ranking' readonly=True required=True args: 'Cumulated percentage of products'
  • from_date Date
    readonly=True
  • number_so_lines Integer
    readonly=True required=True args: 'Number of sale order lines'
  • percentage Float
    aggregator='sum' digits=(7, 4) help='Percentage of total sale order lines' readonly=True required=True
  • percentage_products Float
    aggregator='sum' digits=(7, 4) help='Percentage of total products analyzed' readonly=True required=True args: 'Percentage of products'
  • product_id Many2one → product.product
    index=True ondelete='cascade' readonly=True required=True string='Product' args: 'product.product'
  • product_level_id Many2one → abc.classification.product.level
    index=True ondelete='cascade' readonly=True required=True args: 'abc.classification.product.level'
  • product_tmpl_id Many2one → product.template
    readonly=True related='product_id.product_tmpl_id' store=True string='Product template' args: 'product.template'
  • profile_id Many2one → abc.classification.profile
    ondelete='cascade' readonly=True required=True string='Profile' args: 'abc.classification.profile'
  • ranking Integer
    help='Ranking by number of oder lines' readonly=True required=True
  • sum_cumulated_percentages Float
    aggregator=None help='Sum cumulated % so lines and cumulated % products' readonly=True required=True args: 'Sum of cummulated percentages'
  • to_date Date
    readonly=True
  • total_products Integer
    aggregator=None readonly=True required=True args: 'Total products analysed'
  • total_so_lines Integer
    readonly=True required=True args: 'Total of sale order lines'
  • warehouse_id Many2one → stock.warehouse
    ondelete='cascade' readonly=False args: 'stock.warehouse', 'Warehouse'
Public methods (0)

No public methods.

Loading…