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

	<entity name="VehicleModel" lang="java" cacheable="true">
		<many-to-one name="vehicleMake" ref="VehicleMake" title="Make" />
		<string name="model" title="Model" required="true"/>
		<string name="name" title="Name" required="true" namecolumn="true">
			<![CDATA[
                if(vehicleMake != null)
				  return vehicleMake != null ? vehicleMake.getName() + " " + model : model;
                else
                   return model;
			]]>
		</string>
	 	<many-to-many name="vehicleVendorsSet" ref="com.axelor.apps.base.db.Partner" title="Vendors" />
	</entity>

</domain-models>