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

  <entity name="ProjectInvoicingAssistantBatch" cacheable="true">
      
    <!-- HEADER -->
  	<string name="code" title="Code" namecolumn="true" unique="true"/>
    <integer name="actionSelect" title="Action" required="true" selection="project.invoicing.assistant.batch.action.select"/>
    <many-to-one name="company" ref="com.axelor.apps.base.db.Company" title="Company" />
    
    <!-- OTHERS INFORMATIONS -->
    <string name="description" title="Description" large="true" />
    <one-to-many name="batchList" ref="com.axelor.apps.base.db.Batch" mappedBy="projectInvoicingAssistantBatch" title="Batches" />
    
    <extra-code><![CDATA[
	
	   	// ACTION TYPE
		public static final int ACTION_UPDATE_TASKS = 1;
		public static final int ACTION_GENERATE_INVOICING_PROJECT = 2;
	
	]]></extra-code>
	
  </entity>
  
</domain-models>