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

	<entity name="SaleConfig" lang="java" cacheable="true">
		<one-to-one name="company" ref="com.axelor.apps.base.db.Company" title="Company" required="true" unique="true"/>

		<decimal name="acceptedCredit" title="Accepted Credit"/>
		<integer name="saleOrderInAtiSelect" title="Sale orders ATI/WT" selection="base.in.ati.select" default="1"/>
		<string name="saleOrderClientBox" large="true" multiline="true" title="Client box in sale order"/>
		<string name="saleOrderLegalNote" large="true" multiline="true" title="Legal note on sale order" help="Short legal note to be displayed on sales order"/>
		<boolean name="displaySalemanOnPrinting" title="Display saleman on printing"/>
		<boolean name="displayDelCondOnPrinting" title="Display delivery condition on printing"/>
		<boolean name="displayProductCodeOnPrinting" title="Display product code on printing"/>
		<boolean name="displayTaxDetailOnPrinting" title="Display tax detail on printing"/>
		<boolean name="displayEstimDelivDateOnPrinting" title="Display estimated delivery dates on printing"/>
		<boolean name="displayCustomerCodeOnPrinting" title="Display customer code on printing"/>
		<boolean name="displayProductPictureOnPrinting" title="Display product picture on printing"/>
		<many-to-one name="defaultValidityDuration" ref="com.axelor.apps.base.db.Duration" title="Validity duration per default"/>
		<boolean name="isAnalyticDistributionRequired" title="Analytic distribution required on sale order line"/>

		<track>
			<field name="company" on="UPDATE"/>
			<field name="saleOrderInAtiSelect" on="UPDATE"/>
			<field name="defaultValidityDuration" on="UPDATE"/>
			<field name="acceptedCredit" on="UPDATE"/>
			<field name="displaySalemanOnPrinting" on="UPDATE"/>
			<field name="displayDelCondOnPrinting" on="UPDATE"/>
			<field name="displayProductCodeOnPrinting" on="UPDATE"/>
			<field name="displayTaxDetailOnPrinting" on="UPDATE"/>
			<field name="displayEstimDelivDateOnPrinting" on="UPDATE"/>
			<field name="displayCustomerCodeOnPrinting" on="UPDATE"/>
			<field name="displayProductPictureOnPrinting" on="UPDATE"/>
			<field name="saleOrderClientBox" on="UPDATE"/>
			<field name="saleOrderLegalNote" on="UPDATE"/>
			<field name="isAnalyticDistributionRequired" on="UPDATE"/>
		</track>
	</entity>

</domain-models>
