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

  <entity name="PurchaseConfig" lang="java" cacheable="true">

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

  	<integer name="purchaseOrderInAtiSelect" title="Purchase orders ATI/WT" selection="base.in.ati.select" default="1"/>
  	<string name="purchaseOrderSupplierBox" large="true" multiline="true" title="Supplier box in purchase order"/>
  	<boolean name="displayPriceOnQuotationRequest" title="Display price on requested purchase printing" />
	<boolean name="displayBuyerOnPrinting" title="Display buyer on printing"/>
	<boolean name="displayProductCodeOnPrinting" title="Display product code on printing"/>
	<boolean name="displayTaxDetailOnPrinting" title="Display tax detail on printing"/>
		<boolean name="displaySupplierCodeOnPrinting" title="Display supplier code on printing"/>
  	<boolean name="displayProductDetailOnPrinting" title="Display product detail on printing"/>
  	
  	<string name="priceRequest" title="Message for requesting prices" large="true"/>
    <boolean name="isAnalyticDistributionRequired" title="Analytic distribution required on purchase order line"/>
  	<track>
  		<field name="company" on="UPDATE"/>
  		<field name="purchaseOrderInAtiSelect" on="UPDATE"/>
  		<field name="purchaseOrderSupplierBox" on="UPDATE"/>
  		<field name="displayBuyerOnPrinting" on="UPDATE"/>
  		<field name="displayProductCodeOnPrinting" on="UPDATE"/>
  		<field name="displayTaxDetailOnPrinting" on="UPDATE"/>
  		<field name="displaySupplierCodeOnPrinting" on="UPDATE"/>
  		<field name="displayProductDetailOnPrinting" on="UPDATE"/>
  		<field name="priceRequest" on="UPDATE"/>
  		<field name="isAnalyticDistributionRequired" on="UPDATE"/>
  	</track>
  </entity>
  
</domain-models>
