| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/hr |
| GIT | |
| GIT | https://github.com/OCA/hr.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/hr/tree/10.0/hr_salary_rule_variable |
| VERSION | |
| VERSION | 1.0 |
| CATEGORY | |
| CATEGORY | Generic Modules/Human Resources |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Savoir-faire Linux |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Savoir-faire Linux |
| COMMITTERS | |
| COMMITTERS | Pedro M. Baeza, Stéphane Bidoul (ACSONE), Iryna Vushnevska |
| WEBSITE | |
| WEBSITE | https://www.savoirfairelinux.com |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:19:57 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - hr_payroll - hr_contract - base_action_rule - base - resource - base_setup - web_kanban - web - bus - web_tour - hr - hr_holidays - calendar - web_calendar - product - decimal_precision - report |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION |
Salary Rule Variables
=====================
Salary rule variables are amounts or python expressions that change over
the years. This module allows to compute these variables and reference
them from salary rules.
The purpose of this module is to be able to adapt a complexe salary structures
(e.g. the canadian income tax structure) from one year to another without
going each time through the whole testing procedure.
Numbers change but the whole logic stays the same.
How to use it
-------------
In the python script of a salary rule, you may call it via the payslip
browsable object:
variable = payslip.get_rule_variable(rule_id, payslip.date_from)
rule_id always refer to the current rule.
If you need more than one variable for a salary rule, use a python dict.
Contributors
------------
* David Dufresne <david.dufresne@savoirfairelinux.com>
* Pierre Lamarche <pierre.lamarche@savoirfairelinux.com>
|
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_salary_rule_variable_form |
hr.salary.rule.variable.form | hr.salary.rule.variable | form | New |
hr_salary_rule_variable_list |
hr.salary.rule.variable.tree | hr.salary.rule.variable | tree | New |
view_hr_salary_rule_variable_filter |
hr.salary.rule.variable.select | hr.salary.rule.variable | search | New |
No new fields.
Public methods (1)get_rule_variable(self, cr, uid, ids, rule_id, date, localdict=False, context=None)
No new fields.
Public methods (1)compute_rule(self, cr, uid, rule_id, localdict, context=None)
No new fields.
Public methods (0)No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/hr |
| GIT | |
| GIT | https://github.com/OCA/hr.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/hr/tree/9.0/hr_salary_rule_variable |
| VERSION | |
| VERSION | 1.0 |
| CATEGORY | |
| CATEGORY | Generic Modules/Human Resources |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Savoir-faire Linux |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Savoir-faire Linux |
| COMMITTERS | |
| COMMITTERS | Stéphane Bidoul (ACSONE) |
| WEBSITE | |
| WEBSITE | https://www.savoirfairelinux.com |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:15:21 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - hr_payroll - hr - base_setup - base - web_kanban - web - bus - resource - web_tip - hr_contract - base_action_rule - hr_holidays - calendar - web_calendar - report - decimal_precision |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION |
Salary Rule Variables
=====================
Salary rule variables are amounts or python expressions that change over
the years. This module allows to compute these variables and reference
them from salary rules.
The purpose of this module is to be able to adapt a complexe salary structures
(e.g. the canadian income tax structure) from one year to another without
going each time through the whole testing procedure.
Numbers change but the whole logic stays the same.
How to use it
-------------
In the python script of a salary rule, you may call it via the payslip
browsable object:
variable = payslip.get_rule_variable(rule_id, payslip.date_from)
rule_id always refer to the current rule.
If you need more than one variable for a salary rule, use a python dict.
Contributors
------------
* David Dufresne <david.dufresne@savoirfairelinux.com>
* Pierre Lamarche <pierre.lamarche@savoirfairelinux.com>
|
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_salary_rule_variable_form |
hr.salary.rule.variable.form | hr.salary.rule.variable | form | New |
hr_salary_rule_variable_list |
hr.salary.rule.variable.tree | hr.salary.rule.variable | tree | New |
view_hr_salary_rule_variable_filter |
hr.salary.rule.variable.select | hr.salary.rule.variable | search | New |
No new fields.
Public methods (1)get_rule_variable(self, cr, uid, ids, rule_id, date, localdict=False, context=None)
No new fields.
Public methods (1)compute_rule(self, cr, uid, rule_id, localdict, context=None)
No new fields.
Public methods (0)No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/hr |
| GIT | |
| GIT | https://github.com/OCA/hr.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/hr/tree/8.0/hr_salary_rule_variable |
| VERSION | |
| VERSION | 1.0 |
| CATEGORY | |
| CATEGORY | Generic Modules/Human Resources |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Savoir-faire Linux |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Savoir-faire Linux |
| COMMITTERS | |
| COMMITTERS | Stéphane Bidoul, Stéphane Bidoul (ACSONE) |
| WEBSITE | |
| WEBSITE | https://www.savoirfairelinux.com |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:11:23 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - hr_payroll - hr - base_setup - base - web_kanban - web - resource - board - hr_contract - base_action_rule - hr_holidays - calendar - web_calendar - decimal_precision - report |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION |
Salary Rule Variables
=====================
Salary rule variables are amounts or python expressions that change over
the years. This module allows to compute these variables and reference
them from salary rules.
The purpose of this module is to be able to adapt a complexe salary structures
(e.g. the canadian income tax structure) from one year to another without
going each time through the whole testing procedure.
Numbers change but the whole logic stays the same.
How to use it
-------------
In the python script of a salary rule, you may call it via the payslip
browsable object:
variable = payslip.get_rule_variable(rule_id, payslip.date_from)
rule_id always refer to the current rule.
If you need more than one variable for a salary rule, use a python dict.
Contributors
------------
* David Dufresne <david.dufresne@savoirfairelinux.com>
* Pierre Lamarche <pierre.lamarche@savoirfairelinux.com>
|
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_salary_rule_variable_form |
hr.salary.rule.variable.form | hr.salary.rule.variable | form | New |
hr_salary_rule_variable_list |
hr.salary.rule.variable.tree | hr.salary.rule.variable | tree | New |
view_hr_salary_rule_variable_filter |
hr.salary.rule.variable.select | hr.salary.rule.variable | search | New |
No new fields.
Public methods (1)get_rule_variable(self, cr, uid, ids, rule_id, date, localdict=False, context=None)
No new fields.
Public methods (1)compute_rule(self, cr, uid, rule_id, localdict, context=None)
No new fields.
Public methods (0)No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/hr |
| GIT | |
| GIT | https://github.com/OCA/hr.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/hr/tree/7.0/hr_salary_rule_variable |
| VERSION | |
| VERSION | 1.1 |
| CATEGORY | |
| CATEGORY | Generic Modules/Human Resources |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Savoir-faire Linux |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Savoir-faire Linux |
| COMMITTERS | |
| COMMITTERS | Alexandre Fayolle, OCA Transbot, Rudolf Schnapka, dufresnedavid |
| WEBSITE | |
| WEBSITE | https://www.savoirfairelinux.com |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:07:14 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
OCA/hr: - hr_salary_rule_reference odoo/odoo: - hr_payroll - hr - base_setup - base - web_kanban - web - resource - process - board - hr_contract - hr_holidays - base_calendar - base_status - base_action_rule - decimal_precision |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION |
Salary Rule Variables
=====================
Salary rule variables are amounts or python expressions that change over
the years. This module allows to compute these variables and reference
them from salary rules.
The purpose of this module is to be able to adapt a complexe salary structures
(e.g. the canadian income tax structure) from one year to another without
going each time through the whole testing procedure.
Numbers change but the whole logic stays the same.
How to use it
-------------
In the python script of a salary rule, you may call it via the payslip
browsable object:
variable = payslip.get_rule_variable(rule_id, payslip.date_from)
rule_id always refer to the current rule.
If you need more than one variable for a salary rule, use a python dict.
Contributors
------------
* David Dufresne <david.dufresne@savoirfairelinux.com>
* Pierre Lamarche <pierre.lamarche@savoirfairelinux.com>
|
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_salary_rule_variable_form |
hr.salary.rule.variable.form | hr.salary.rule.variable | form | New |
hr_salary_rule_variable_list |
hr.salary.rule.variable.tree | hr.salary.rule.variable | tree | New |
view_hr_salary_rule_variable_filter |
hr.salary.rule.variable.select | hr.salary.rule.variable | search | New |
No new fields.
Public methods (1)get_rule_variable(self, cr, uid, ids, rule_id, date, localdict=False, context=None)
No new fields.
Public methods (1)variable(self, cr, uid, ids, date, localdict=False, context=None)
No new fields.
Public methods (0)No public methods.