Modified hr_leave to create or modify assign records when a leave is created, modified, refused, cancelled, drafted or unlinked Modified hr_leave_allocation to not allow refusing or unlinking an allocation with associated leave requests. Now it shows an error showing associated leaves Modified hr_leave_type to properly get the domain of the allocations and calculate the number of remaining leaves based on the allocations and the assigns Added is_virtual boolean field to hr_leave_assign. It allows to know whether a assign is in state [validate,confirm] or not