Skip to content
Health
62/100
fair
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 8 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity12/25
    In 2 Odoo series since 15.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.06 MB
Module directory on disk
Code analysis 1 migration note 2 models 1 view 0 HTTP endpoints

Description

This module allows you to define discount ranges in a pricelist based on a reference price (e.g., cost). Instead of applying a single discount percentage to all products, you can configure different discount percentages for specific price intervals. If the reference price is out of the ranges, the pricelist will not be applied and Odoo will show a warning.

Dependencies

Odoo dependencies
odoo/odoo:
- web
- bus
- uom
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 1

XML IDNameModelTypeStatus
product_pricelist_supplier_item_form_view product.pricelist.item.form product.pricelist.item form Inherits product.product_pricelist_item_form_view

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 2

New fields (3)
  • discount_range_ids One2many → product.pricelist.item.discount_range
    args: 'product.pricelist.item.discount_range', 'pricelist_item_id'
  • discount_type Selection
    default='simple' args: [('simple', 'Simple'), ('range', 'By range')]
  • price_discount Float
    compute='_compute_price_discount' readonly=False store=True
Public methods (0)

No public methods.

New fields (5)
  • max Float
    required=True
  • min Float
    required=True
  • percentage Float
    required=True
  • pricelist_item_id Many2one → product.pricelist.item
    ondelete='cascade' string='Pricelist Item' args: 'product.pricelist.item'
  • surcharge Float
Public methods (0)

No public methods.

Loading…