<?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="MoveTemplate" lang="java" cacheable="true">
  	<string name="name" title="Name" required="true"/>
  	<string name="code" title="Code" required="true"/>
  	<many-to-one name="moveTemplateType" ref="MoveTemplateType" title="Type"  required="1"/>
  	<many-to-one name="company" ref="com.axelor.apps.base.db.Company" title="Company" required="1" />
  	<many-to-one name="journal" ref="Journal" title="Journal" />
  	<boolean name="isValid" title="Valid" />
  	<one-to-many name="moveTemplateLineList" ref="MoveTemplateLine" mappedBy="moveTemplate" title="Template Move Lines"/>
  	<date name="endOfValidityDate" title="End of validity date"/>
  	<string name="fullName" namecolumn="true" search="code,name">
	    <![CDATA[
    		return code+" - " + name;
	    ]]>
	</string>
  </entity>
 
</domain-models>