<?xml version="1.0"?>
<xml-inputs xmlns="http://axelor.com/xml/ns/data-import"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://axelor.com/xml/ns/data-import http://axelor.com/xml/ns/data-import/data-import_5.2.xsd">

  <input file="studio-data.xml" root="studio-data">

    <bind node="MetaSelect" type="com.axelor.meta.db.MetaSelect" search="self.name = :_select" update="true" call="com.axelor.studio.service.data.ImportScript:updateMetaSelect">
      <bind node="name" to="name" />
      <bind node="name" to="_select" />
      <bind node="items/item" to="items" search="self.select.name = :_select and self.value = :value">
        <bind node="title" to="title" />
        <bind node="value" to="value" />
        <bind node="order" to="order"/>
      </bind>
    </bind>
    
    <!--<bind node="MetaModel" type="com.axelor.meta.db.MetaModel" search="self.name = :name" update="false">
      <bind node="name" to="name" />
      <bind node="name" to="_model" />
      <bind to="edited" eval="true"/>
      <bind to="customised" eval="true"/>
      <bind node="packageName" to="packageName" />
      <bind node="fullName" to="fullName" />
      <bind node="metaFields/item" to="metaFields" search="self.name = :_field and self.metaModel.name = :_model">
      	<bind to="customised" eval="true" />
      	<bind node="name" to="name"/>
      	<bind node="name" to="_field"/>
      	<bind node="label" to="label"/>
      	<bind node="typeName" to="typeName"/>
      	<bind node="fieldType" to="fieldType"/>
      	<bind node="large" to="large"/>
      	<bind node="hidden" to="hidden"/>
      	<bind node="required" to="required"/>
      	<bind node="relationship" to="relationship" />
      	<bind node="defaultString" to="defaultString"/>
      	<bind node="defaultBoolean" to="defaultBoolean" />
      	<bind node="defaultDecimal" to="defaultDecimal" />
      	<bind node="decimalMin" to="decimalMin" />
      	<bind node="decimalMax" to="decimalMax" />
      	<bind node="defaultInteger" to="defaultInteger" />
      	<bind node="integerMin" to="integerMin"/>
      	<bind node="integerMax" to="integerMax"/>
      	<bind node="metaselect" to="metaSelect" search="self.name = :metaSelect"/>
      	<bind to="metaModelRef" search="self.name = :metaModelRef"  if="metaModelRef != null"/>
      	<bind node="readonly" to="readonly" />
      	<bind node="hidden" to="hidden" />
      	<bind node="required" to="required" />
      	<bind node="multiselect" to="multiselect" />
      	<bind node="sequence" to="sequence" />
      	<bind node="isDuration" to="isDuration" />
      	<bind node="isUrl" to="isUrl" />
      	<bind node="helpText" to="helpText" />
      	<bind node="rightManagementList/item" to="rightManagementList" search="self.metaField.name = :_field and self.metaField.metaModel.name = :_model and self.name = :name">
      		<bind node="authGroup" to="authGroup" search="self.name = :authGroup" />
      		<bind node="authRole" to="authRole" search="self.name = :authRole" />
      		<bind node="canRead" to="canRead" />
      		<bind node="canWrite" to="canWrite" />
      		<bind node="canCreate" to="canCreate" />
      		<bind node="canRemove" to="canRemove" />
      		<bind node="canExport" to="canExport" />
      		<bind node="condition" to="condition" />
      	</bind>
      </bind>
      <bind node="rightManagementList/item" to="rightManagementList" search="self.metaModel.name = :_model and self.name = :name">
      		<bind node="authGroup" to="authGroup" search="self.name = :authGroup" />
      		<bind node="authRole" to="authRole" search="self.name = :authRole" />
      		<bind node="canRead" to="canRead" />
      		<bind node="canWrite" to="canWrite" />
      		<bind node="canCreate" to="canCreate" />
      		<bind node="canRemove" to="canRemove" />
      		<bind node="canExport" to="canExport" />
      		<bind node="condition" to="condition" />
      	</bind>
    </bind>   -->
    
  </input>
  
</xml-inputs>