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

  <entity name="TrackingNumber" lang="java">

	<many-to-one name="product" ref="com.axelor.apps.base.db.Product" title="Product"/>
	<date name="warrantyExpirationDate" title="Warranty expiration date" readonly="true"/>
	<date name="perishableExpirationDate" title="Perishable expiration date" readonly="true"/>
	<string name="trackingNumberSeq" namecolumn="true" title="Tracking Nbr." required="true"/>
	<decimal name="counter" title="Counter"/>
	
	<unique-constraint columns="product,trackingNumberSeq"/>

	<finder-method name="findBySeq" using="trackingNumberSeq"/>
	
  </entity>

</domain-models>
