<?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">
	
	
	<form name="purchase-request-json-field-form" title="Custom field" model="com.axelor.meta.db.MetaJsonField" onNew="action-purchase-request-creator-set-json-field-default">
	    <panel name="overviewPanel" title="Overview">
	      <field name="name" x-pattern="[a-z][a-zA-Z0-9_\\$]+"/>
	      <field name="type" />
	      <field name="title" />
	      <field name="defaultValue" />
	      <field name="help" />
	      <field name="sequence" />
	      <field name="model" hidden="true" />
	      <field name="modelField" hidden="true" />
	    </panel>
	    <panel-include view="json-field-form-base" />
    </form>
    
    <grid name="purchase-request-json-field-grid" title="Custom fields" model="com.axelor.meta.db.MetaJsonField">
	  <field name="name"/>
	  <field name="type"/>
	</grid>
    
	<action-attrs name="action-purchase-request-creator-set-json-field-default" >
    	<attribute name="value"	for="model" expr="eval:'com.axelor.apps.purchase.db.PurchaseRequest'" if="_parent._model == 'com.axelor.apps.purchase.db.PurchaseRequestCreator'"/>
    	<attribute name="value" for="modelField" expr="eval:'attrs'" if="_parent._model == 'com.axelor.apps.purchase.db.PurchaseRequestCreator'"/>
    </action-attrs>
    
</object-views>