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

    <entity name="PartnerStockSettings" cacheable="true">
        <boolean name="realStockMoveAutomaticMail"
                 title="Send email on stock move realization" default="false"/>
        <boolean name="plannedStockMoveAutomaticMail"
                 title="Send email when planning stock move" default="false"/>
        <many-to-one name="realStockMoveMessageTemplate" title="Message template"
                     ref="com.axelor.apps.message.db.Template"/>
        <many-to-one name="plannedStockMoveMessageTemplate" title="Message template"
          ref="com.axelor.apps.message.db.Template"/>
        <many-to-one name="partner" ref="com.axelor.apps.base.db.Partner"
                     required="true"/>
        <many-to-one name="company" ref="com.axelor.apps.base.db.Company"
                     required="true"/>
        <many-to-one name="defaultStockLocation" title="Default stock location"
                     ref="com.axelor.apps.stock.db.StockLocation"/>
        <many-to-one name="incoterm" title="Incoterm" ref="com.axelor.apps.stock.db.Incoterm"/>
    </entity>

</domain-models>