<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<object-views xmlns="http://axelor.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xsi:schemaLocation="http://axelor.com/xml/ns/object-views http://axelor.com/xml/ns/object-views/object-views_5.2.xsd">

	<grid name="leave-reason-grid" title="Leave reason" model="com.axelor.apps.hr.db.LeaveReason">
		 <field name="leaveReason" />
		 <field name="manageAccumulation" />
		 <field name="allowNegativeValue" />
		 <field name="allowInjection" />
	</grid>
	
	<form name="leave-reason-form" title="Leave reason" model="com.axelor.apps.hr.db.LeaveReason">
		<panel name="mainPanel" >
			<field name="leaveReason" />
			<field name="manageAccumulation" hideIf="$popup()"/>
			<field name="allowNegativeValue" showIf="manageAccumulation &amp;&amp; !$popup()"/>
			<field name="allowInjection" showIf="manageAccumulation &amp;&amp; !$popup()"/>
			<field name="instruction" colSpan="12" widget="html"/>
			<field name="defaultDayNumberGain" />
			<field name="selectedByMgtOnly"/>
            <field name="unitSelect" />
		</panel>
		<panel name="exportsPanel">
			<field name="payrollPreprationExport"  />
      		<field name="exportCode" />
		</panel>
	</form>
	
</object-views>
