Closed voronind closed 7 months ago
Hello @vernichon, actually i think this behavoir is because we don't reset the blacklist in every contract iteration in the function get_lines_dict(), so, as you described, rule will be in the blacklist for the next contract if it's the same rule.
I can write a fix for this in a few days, or if you want you can open a PR. The only change needed is to include blacklist reset inside the contract loop in that function.
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
Global rule blacklist ban rule for next contacts
Module
payroll
Describe the bug
Rules can not appear in Paysplips depends on contract computing order.
To Reproduce
Affected versions: 13-16
Steps to reproduce the behavior:
Expected behavior Payslip lines will have C rule in any cases. But if Odoo will compute contract with wage = 1 firstly, Payslip will not contain C rule at all. This happens cause if condition is negative Odoo adds rule to global blacklist and second contract ignores C rule at all.
IMHO We must create blacklist for every contract.