Skip to content

[IMP] util.hr_payroll: ensure salary rule neutralization on removal#405

Closed
romaincarlier4 wants to merge 1 commit into
odoo:masterfrom
odoo-dev:master-neutralize-salary-rule-romc
Closed

[IMP] util.hr_payroll: ensure salary rule neutralization on removal#405
romaincarlier4 wants to merge 1 commit into
odoo:masterfrom
odoo-dev:master-neutralize-salary-rule-romc

Conversation

@romaincarlier4
Copy link
Copy Markdown
Contributor

No description provided.

@robodoo
Copy link
Copy Markdown
Contributor

robodoo commented Apr 3, 2026

Pull request status dashboard

@romaincarlier4 romaincarlier4 force-pushed the master-neutralize-salary-rule-romc branch 3 times, most recently from 4917092 to 12edea4 Compare April 3, 2026 09:33
@Pirols Pirols requested a review from a team April 3, 2026 09:34
@romaincarlier4 romaincarlier4 force-pushed the master-neutralize-salary-rule-romc branch 3 times, most recently from 508cac6 to 91ae5b1 Compare April 7, 2026 13:54
Copy link
Copy Markdown
Contributor

@aj-fuentes aj-fuentes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may be fine...

@aj-fuentes aj-fuentes requested a review from KangOl April 10, 2026 14:07
Copy link
Copy Markdown
Contributor

@KangOl KangOl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also change the commit message and explain why you do that change?

Comment thread src/util/hr_payroll.py Outdated
Comment thread src/util/hr_payroll.py
When a salary rule is explicitely removed, it should never be used again
or it will break the computation of future payslips.

To ensure that, the salary rule is set to always compute a result of 0.
Archiving the rule *should* be sufficient, this is only an extra layer
of safety for payroll compliance.
@romaincarlier4 romaincarlier4 force-pushed the master-neutralize-salary-rule-romc branch from 91ae5b1 to c85d71f Compare April 13, 2026 06:14
@romaincarlier4 romaincarlier4 requested a review from KangOl April 13, 2026 07:47
Copy link
Copy Markdown
Contributor

@KangOl KangOl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants