chore: import enterprise addons 19.0 bulk snapshot

This commit is contained in:
1b-agent committed 2026-09-16 10:13:08 +00:00
commit ca4af030d3
39951 files changed
+15570005

No files matched your search

@@ -0,0 +1,18 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models
class HrPayrollStructure(models.Model):
_inherit = "hr.payroll.structure"
@api.model_create_multi
def create(self, vals_list):
structures = super().create(vals_list)
to_unlink = self.env["hr.salary.rule"]
for struct in structures:
if struct.country_id.code != "AU":
continue
to_unlink += struct.rule_ids.filtered(lambda r: r.code in ["ATTACH_SALARY", "ASSIG_SALARY", "DEDUCTION", "REIMBURSEMENT", "CHILD_SUPPORT"])
to_unlink.unlink()
return structures