<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<object-views xmlns="http://axelor.com/xml/ns/object-views"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://axelor.com/xml/ns/object-views http://axelor.com/xml/ns/object-views/object-views_5.2.xsd">
  
  <grid name="dashlet-builder-grid" title="Dashlet builders" model="com.axelor.studio.db.DashletBuilder" canMove="true" orderBy="sequence">
  	  <field name="viewType" />	
      <field name="name" />
      <field name="appBuilder" grid-view="app-builder-grid" form-view="app-builder-form"/>
  </grid>
  
  <form name="dashlet-builder-form" title="Dashlet builder" model="com.axelor.studio.db.DashletBuilder">
      <panel name="mainPanel">
      	  <field name="appBuilder" grid-view="app-builder-grid" form-view="app-builder-form"/>
      	  <spacer name="appBuilderSpacer"/>
          <field name="viewType" selection-in="['chart','grid', 'custom']"/>
	      <field name="name" />
      	  <field name="metaView" requiredIf="action == null" domain="self.type = :viewType" />
      	  <field name="action" requiredIf="metaView == null" domain="self.type = 'action-view'" />
      	  <field name="colspan" />
      	  <field name="paginationLimit" showIf="viewType == 'grid'" />
	  </panel>
  </form>
  
</object-views>


