<?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.4.xsd">
  
  <module name="base" package="com.axelor.apps.base.db"/>
  
  <entity name="ProductCategory" lang="java" cacheable="true">

    <string name="code" title="Code" required="true" unique="true"/>
    <string name="name" title="Name" unique="true" required="true" namecolumn="true"/>
    <many-to-one name="parentProductCategory" ref="ProductCategory" title="Parent category"/>
    <many-to-one name="sequence" ref="com.axelor.apps.base.db.Sequence" title="Sequence"/>
    <decimal name="maxDiscount" title="Max discount (%)" scale="2" precision="5" min="0" max="100"/>

    <string name="dtype" insertable="false" updatable="false"/>
  	
  </entity>
  
</domain-models>

<?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.3.xsd">
  
  <module name="base" package="com.axelor.apps.base.db"/>
  
  <entity name="ProductCategory" lang="java" cacheable="true">

    <string name="code" title="Code" required="true" unique="true"/>
    <string name="name" title="Name" unique="true" required="true" namecolumn="true"/>
    <many-to-one name="parentProductCategory" ref="ProductCategory" title="Parent category"/>
    <many-to-one name="sequence" ref="com.axelor.apps.base.db.Sequence" title="Sequence"/>
    <decimal name="maxDiscount" title="Max discount (%)" scale="2" precision="5" min="0" max="100"/>

  </entity>
  
</domain-models>

Remove field dtype in product category
Remove field dtype in product category

The field dtype was added in Product domain to fix a framework issue,
but the field dtype in ProductCategory was added by mistake.
RM37587

cherry-picked again in wip branch after an error made during merge
conflict resolution.
