<?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="Tax" lang="java" cacheable="true">

    <string name="name" title="Name" required="true"/>
    <string name="code" title="Code" required="true" unique="true"/>
    <many-to-one name="activeTaxLine" ref="com.axelor.apps.account.db.TaxLine" title="Tax active version"/>
    
    <one-to-many name="taxLineList" ref="com.axelor.apps.account.db.TaxLine" mappedBy="tax" title="Tax versions history"/>
    
 	<unique-constraint columns="code,name"/>
  
  </entity>

</domain-models>