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

	<entity name="Invoice" lang="java" cacheable="true" >
	
		<many-to-one name="contract" title="Contract" ref="com.axelor.apps.contract.db.Contract" />
		
		<extra-code><![CDATA[
			// OPERATION TYPE SUB SELECT
			public static final int OPERATION_SUB_TYPE_CONTRACT_INVOICE = 4;
			public static final int OPERATION_SUB_TYPE_CONTRACT_CLOSING_INVOICE = 5;
			public static final int OPERATION_SUB_TYPE_CONTRACT_PERIODIC_INVOICE = 7;
		]]></extra-code>

	</entity>
	
</domain-models>