Skip to content
Health
35/100
poor
  • Security25/25
    No findings
  • Activity0/25
    Last human commit 42 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 12.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.05 MB
Module directory on disk
Code analysis 3 migration notes 3 models 1 view 0 HTTP endpoints

Description

Dependencies

Odoo dependencies
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
sale_commission_form Add product commission to form view of Commission in sales sale.commission form Inherits sale_commission.sale_commission_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 3

New fields (3)
  • commission_type Selection
    selection_add=[('product_fallback', 'Based on Product with Fallback Percentage')]
  • product_fallback_amount Float
    string='Fallback Percentage for Product'
  • product_rule_ids One2many → sale.commission.product_rule
    comodel_name='sale.commission.product_rule' inverse_name='commission_id' string='Product rules'
Public methods (1)
  • calculate_product_fallback(self, base, product)
    Calculate amount for type 'Fixed and Based on Product Percentage'.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (5)
  • amount Float
    string='Percentage'
  • commission_id Many2one → sale.commission
    comodel_name='sale.commission' ondelete='cascade' required=True
  • product_category_id Many2one → product.category
    comodel_name='product.category'
  • product_id Many2one → product.product
    comodel_name='product.product'
  • sequence Integer
Public methods (1)
  • match_product(self, product)
    @api.multi
    Find which rule in self is a match for `product`. Rules are evaluated based on their `sequence`. A rule is a match for a product when the product is either the rule's product or has the rule's category.