<?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="InvoiceLine" lang="java">
  	
  	<many-to-one name="saleOrderLine" ref="com.axelor.apps.sale.db.SaleOrderLine" title="SO line" />
  	<many-to-one name="purchaseOrderLine" ref="com.axelor.apps.purchase.db.PurchaseOrderLine" title="PO line" />
  	<many-to-one name="stockMoveLine" ref="com.axelor.apps.stock.db.StockMoveLine" title="Stock move line" />
  	<many-to-one name="outgoingStockMove" ref="com.axelor.apps.stock.db.StockMove" title="Customer delivery"/>
	<many-to-one name="incomingStockMove" ref="com.axelor.apps.stock.db.StockMove" title="Supplier arrival"/>
  	<many-to-one name="parentLine" ref="com.axelor.apps.account.db.InvoiceLine" />
   	<one-to-many name="subLineList" ref="com.axelor.apps.account.db.InvoiceLine" mappedBy="parentLine" title="Pack lines"/>
	<many-to-one name="trackingNumber" ref="com.axelor.apps.stock.db.TrackingNumber" title="TrackingNumber"/>

  </entity>
  
</domain-models>
