Skip to content
Browse files

[FIX] hr_holidays: Add missing fields in constrains

  • Loading branch information...
sswapnesh committed Mar 25, 2019
1 parent 11b1e12 commit 51105e9957476956b3adf48f5825c095142cffe8
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/hr_holidays/models/
@@ -470,7 +470,7 @@ def add_follower(self, employee_id):

@api.constrains('holiday_status_id', 'date_to', 'date_from')
def _check_leave_type_validity(self):
for leave in self:
if leave.holiday_status_id.validity_start and leave.holiday_status_id.validity_stop:

0 comments on commit 51105e9

Please sign in to comment.
You can’t perform that action at this time.