<?xml version="1.0" ?>
<domain-models xmlns="http://axelor.com/xml/ns/domain-models"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://axelor.com/xml/ns/domain-models http://axelor.com/xml/ns/domain-models/domain-models_5.2.xsd">

  <module name="human-resource" package="com.axelor.apps.hr.db"/>

  <entity name="LeaveReason" cacheable="true">

      <string name="leaveReason" namecolumn="true" title="Leave reason" required="true"/>
      <boolean name="manageAccumulation" title="Manage Accumulation"/>
      <boolean name="allowNegativeValue" title="Allow negative value for leaves"/>
      <boolean name="allowInjection" title="Allow Injection"/>
      <string name="instruction"  title="Instruction" multiline="true" large="true"/>
      
      <boolean name="payrollPreprationExport" title="Export for payroll preparation" />
      <string name="exportCode" title="Export code" />

      <decimal name="defaultDayNumberGain" title="Default day number gain"/>
      <boolean name="selectedByMgtOnly" title="Can only be selected by HR Management"/>

      <integer name="unitSelect" title="Unit" selection="hr.leave.reason.unit.select" />

      <extra-code>
   		<![CDATA[
   			public static final int UNIT_SELECT_DAYS = 1;
   			public static final int UNIT_SELECT_HOURS = 2;
   		]]>
      </extra-code>
      
  </entity>
  
</domain-models>
