[FIX] hr_holidays: Fixed to remove supporting documents after uploaded
closes odoo/odoo#101560 X-original-commit: 72697005df46c148aa649c27430739ad0d520880 Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
@@ -621,9 +621,7 @@ class HolidaysRequest(models.Model):
|
||||
|
||||
def _inverse_supported_attachment_ids(self):
|
||||
for holiday in self:
|
||||
holiday.supported_attachment_ids.write({
|
||||
'res_id': holiday.id,
|
||||
})
|
||||
holiday.attachment_ids = holiday.supported_attachment_ids
|
||||
|
||||
@api.constrains('date_from', 'date_to', 'employee_id')
|
||||
def _check_date(self):
|
||||
|
||||
Reference in New Issue
Block a user