-
- Downloads
[IMP] hr_payroll: Remove hr.rule.input model
There are currently 2 models: - hr.rule.input to link some inputs to an hr.payslip.rule - hr.payslip.input to add some additional inputs on a payslip. The first model is actually there to automatically add inputs on the additional inputs on the payslip. This is problematic because these rules are always added (For example a salary reduction due to a police fine). As these inputs are always added on the payslip, the the related rules are always computed with an amount of 0. We decided to remove this mechanism for the following reasons: - If the rule is important and common, then define the needed values on the contract, and compute the rules from that. - If the rule is not so important, it should be added manually when needed.
Showing
- addons/hr_payroll/data/hr_payroll_demo.xml 0 additions, 23 deletionsaddons/hr_payroll/data/hr_payroll_demo.xml
- addons/hr_payroll/models/hr_payslip.py 8 additions, 36 deletionsaddons/hr_payroll/models/hr_payslip.py
- addons/hr_payroll/models/hr_salary_rule.py 1 addition, 10 deletionsaddons/hr_payroll/models/hr_salary_rule.py
- addons/hr_payroll/security/ir.model.access.csv 0 additions, 1 deletionaddons/hr_payroll/security/ir.model.access.csv
- addons/hr_payroll/tests/common.py 1 addition, 2 deletionsaddons/hr_payroll/tests/common.py
- addons/hr_payroll/views/hr_salary_rule_views.xml 0 additions, 8 deletionsaddons/hr_payroll/views/hr_salary_rule_views.xml
- addons/hr_payroll_account/tests/test_hr_payroll_account.py 0 additions, 1 deletionaddons/hr_payroll_account/tests/test_hr_payroll_account.py
- addons/l10n_in_hr_payroll/data/l10n_in_hr_payroll_data.xml 0 additions, 61 deletionsaddons/l10n_in_hr_payroll/data/l10n_in_hr_payroll_data.xml
Loading
Please register or sign in to comment