<?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 sequential="true" name="Invoice" lang="java">
	
	<many-to-one name="saleOrder" ref="com.axelor.apps.sale.db.SaleOrder" title="Sale order"/>
	<many-to-one name="purchaseOrder" ref="com.axelor.apps.purchase.db.PurchaseOrder" title="Purchase order"/>
	<many-to-many name="stockMoveSet" ref="com.axelor.apps.stock.db.StockMove" title="Stock moves"/>
    <boolean name="interco" title="Interco"/>
    <boolean name="createdByInterco" default="false"/>
	
	<extra-code><![CDATA[
	
	    // OPERATION TYPE SUB SELECT
	    public static final int OPERATION_SUB_TYPE_SUBSCRIPTION = 6;

	]]></extra-code>
	
  </entity>
  
</domain-models>
