Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 18.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
LGPL-3
No conflicts with its dependencies
Folder size
0.09 MB
Module directory on disk
Code analysis 1 migration note 3 models 7 views 0 HTTP endpoints

Description

Assign tags to Salary Rules.

Tag totals are made available to salary rule computations, and work as a more flexible alternative to salary rule Categories: a rule belongs to a single Category, but it can carry any number of Tags, and tags are free to overlap.

A typical use is grouping rules into calculation bases, such as "Taxable", "Social Security" or "Benefits", and then computing each base as the total of the rules carrying that tag, instead of repeating a list of rule codes in every formula.

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 7

XML IDNameModelTypeStatus
hr_salary_rule_view_form hr.salary.rule form Inherits payroll.hr_salary_rule_view_form
hr_salary_rule_view_search hr.salary.rule search Inherits payroll.hr_salary_rule_view_search
hr_salary_rule_view_tree_add_tags hr.salary.rule tree Inherits payroll.hr_salary_rule_view_tree_children
view_hr_salary_rule_tag_form hr.salary.rule.tag.form hr.salary.rule.tag form New
view_hr_salary_rule_tag_kanban hr.salary.rule.tag.kanban hr.salary.rule.tag kanban New
view_hr_salary_rule_tag_list hr.salary.rule.tag.list hr.salary.rule.tag list New
view_hr_salary_rule_tag_search hr.salary.rule.tag.search hr.salary.rule.tag search New

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 3

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • tag_ids Many2many → hr.salary.rule.tag
    domain="[('company_id', 'in', [company_id, False])]" help='Tags to categorize this salary rule for reporting and calculations' string='Tags' args: 'hr.salary.rule.tag'
Public methods (0)

No public methods.

New fields (9)
  • active Boolean
    default=True help='If unchecked, this tag will be hidden from most views without being deleted.'
  • code Char
    compute='_compute_code' help='Identifier salary rules use to read the tag total (tags.CODE). Proposed from the name when empty: uppercase, with anything that is not a letter, a number or an underscore replaced by an underscore.' precompute=True readonly=False required=True store=True
  • color Integer
    string='Color Index'
  • company_id Many2one → res.company
    default=<expr> help='Company to which this tag belongs' required=True string='Company' args: 'res.company'
  • description Text
    help='Describe the purpose of this tag and how it should be used in salary calculations.' translate=True
  • name Char
    required=True translate=True
  • salary_rules_count Integer
    compute='_compute_salary_rules_count' help='Number of salary rules using this tag' store=True string='# Rules'
  • salary_rules_ids Many2many → hr.salary.rule
    help='Salary rules that use this tag' string='Salary Rules' args: 'hr.salary.rule'
  • sequence Integer
    default=10 help='Used to order tags in views'
Public methods (1)
  • get_tag_code(self)
    Return the code to use in salary rule computations.