old_contents: # -*- coding: utf-8 -*-
  # Part of Odoo. See LICENSE file for full copyright and licensing details.
  
  from odoo.addons.mail.controllers.main import MailController
  from odoo import http
  
  
  class HrHolidaysController(http.Controller):
  
      @http.route('/hr_holidays/validate', type='http', auth='user', methods=['GET'])
      def hr_holidays_validate(self, res_id, token):
          comparison, record, redirect = MailController._check_token_and_record_or_redirect('hr.holidays', int(res_id), token)
          if comparison and record:
              try:
                  record.signal_workflow('validate')
              except Exception:
                  return MailController._redirect_to_messaging()
          return redirect
  
      @http.route('/hr_holidays/refuse', type='http', auth='user', methods=['GET'])
      def hr_holidays_refuse(self, res_id, token):
          comparison, record, redirect = MailController._check_token_and_record_or_redirect('hr.holidays', int(res_id), token)
          if comparison and record:
              try:
                  record.signal_workflow('refuse')
              except Exception:
                  return MailController._redirect_to_messaging()
          return redirect
  
new_contents: # -*- coding: utf-8 -*-
  # Part of Odoo. See LICENSE file for full copyright and licensing details.
  
  from odoo.addons.mail.controllers.main import MailController
  from odoo import http
  
  
  class HrHolidaysController(http.Controller):
  
      @http.route('/hr_holidays/validate', type='http', auth='user', methods=['GET'])
      def hr_holidays_validate(self, res_id, token):
          comparison, record, redirect = MailController._check_token_and_record_or_redirect('hr.holidays', int(res_id), token)
          if comparison and record:
              try:
                  record.action_validate()
              except Exception:
                  return MailController._redirect_to_messaging()
          return redirect
  
      @http.route('/hr_holidays/refuse', type='http', auth='user', methods=['GET'])
      def hr_holidays_refuse(self, res_id, token):
          comparison, record, redirect = MailController._check_token_and_record_or_redirect('hr.holidays', int(res_id), token)
          if comparison and record:
              try:
                  record.action_refuse()
              except Exception:
                  return MailController._redirect_to_messaging()
          return redirect
  
subject: fix forward-ported code still using workflows