19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:00 +01:00
parent a1137a1456
commit e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions

View file

@ -0,0 +1,15 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import Command, fields, models
class HrDepartureWizard(models.TransientModel):
_inherit = 'hr.departure.wizard'
unassign_equipment = fields.Boolean("Free Equiments", default=True, help="Unassign Employee from Equipments")
def action_register_departure(self):
action = super().action_register_departure()
if self.unassign_equipment:
self.employee_ids.write({'equipment_ids': [Command.clear()]})
return action