<?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="crm" package="com.axelor.apps.crm.db"/>

  <entity name="RecurrenceConfiguration" lang="java">
  
	<integer name="recurrenceType" title="Recurrence" selection="crm.event.recurrence.type" />
	<integer name="periodicity" title="Repeat every"/>
	<boolean name="sunday" title="Su"/>
	<boolean name="monday" title="Mo"/>
	<boolean name="tuesday" title="Tu"/>
	<boolean name="wednesday" title="We"/>
	<boolean name="thursday" title="Th"/>
	<boolean name="friday" title="Fr"/>
	<boolean name="saturday" title="Sa"/>
	<integer name="monthRepeatType" title="Repeat every:" selection="crm.event.recurrence.month.repeat.type"/>
	<date name="startDate" title="Start date"/>
	<integer name="endType" title="End" selection="crm.event.recurrence.end.type"/>
	<integer name="repetitionsNumber" title="Repetitions number" />
	<date name="endDate" title="End date" />
	<string name="recurrenceName" title="Recurrence name" namecolumn="true"/>
	
	<extra-code>
      	<![CDATA[
	  		public static final int TYPE_DAY = 1;
	  		public static final int TYPE_WEEK = 2;
	  		public static final int TYPE_MONTH = 3;
	  		public static final int TYPE_YEAR = 4;
	  		
	  		public static final int REPEAT_TYPE_MONTH = 1;
	  		public static final int REPEAT_TYPE_WEEK = 2;
	  		
	  		public static final int END_TYPE_REPET = 1;
	  		public static final int END_TYPE_DATE = 2;
	  ]]>
    </extra-code>

  </entity>

</domain-models>
