<?xml version="1.0" encoding="UTF-8"?>
<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="base" package="com.axelor.apps.base.db"/>

	<entity name="AppTimesheet" lang="java" extends="App">
		
		<integer name="invoicingTypeLogTimesSelect" title="Invoicing Type for Log Times" selection="hrs.timesheet.line.invoicing.type.select" default="1"/>
		<boolean name="consolidateTSLine" title="Consolidate timesheet line on invoice"/>
		<integer name="defaultEndFormat" title="Timesheet default end date format" selection="hr.timesheet.default.end.format" />
			
		<!-- Timesheet Timer configuration -->
		<boolean name="enableTimer" title="Start&amp;Stop" default="true"/>
		<boolean name="editModeTSTimer" title="Edit Start&amp;Stop Timer On Stop" default="true"/>
		<boolean name="keepProject" title="Keep Project for Start&amp;Stop Timer" default="true"/>

		<boolean name="createLinesForLeaves" title="Create lines for day leaves"/>
		<boolean name="createLinesForHolidays" title="Create lines for public holidays"/>
		
		<boolean name="timesheetEditor" title="Timesheet editor"/>
		<boolean name="displayTimesheetLineNumber" title="Display timesheet line number"/>
		
		<many-to-one name="timesheetReminderTemplate" ref="com.axelor.apps.message.db.Template" title="Timesheet reminder template"/>

		<track>
			<field name="invoicingTypeLogTimesSelect" on="UPDATE"/>
			<field name="consolidateTSLine" on="UPDATE"/>
			<field name="defaultEndFormat" on="UPDATE"/>
			
			<field name="enableTimer" on="UPDATE"/>
			<field name="editModeTSTimer" on="UPDATE"/>
			<field name="keepProject" on="UPDATE"/>

			<field name="createLinesForLeaves" on="UPDATE"/>
			<field name="createLinesForHolidays" on="UPDATE"/>
			
			<field name="timesheetEditor" on="UPDATE"/>
		</track>
	</entity>

</domain-models>
