<commit_before><?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.0.xsd">
	
	<form name="sale-json-field-form" onLoad="action-configurator-json-field-onload" title="Custom field" model="com.axelor.meta.db.MetaJsonField" onNew="action-configurator-set-json-field-default">
	    <panel title="Overview">
	      <field name="$simpleName" onChange="action-configurator-record-name" title="Name" x-pattern="[a-z][a-zA-Z0-9_\\$]+"/>
		  <field readonly="true" name="name" title="Name to use in scripts"/>
	      <field name="type" />
	      <field name="title" />
	      <field name="defaultValue" />
	      <field name="help" />
	      <field name="sequence" />
	      <field name="includedInCost" widget="inline-checkbox" />
	      <field name="model" hidden="true" />
	      <field name="modelField" hidden="true" />
	    </panel>
	    <panel-include view="json-field-form-base" />
    </form>
    
	<grid name="sale-json-field-grid" title="Custom fields" model="com.axelor.meta.db.MetaJsonField" edit-icon="true">
	  <field name="name"/>
	  <field name="type"/>
	</grid>
	
	<action-attrs name="action-configurator-set-json-field-default" >
    	<attribute name="value"	for="model" expr="eval:'com.axelor.apps.sale.db.Configurator'" if="_parent._model == 'com.axelor.apps.sale.db.ConfiguratorCreator'"/>
    	<attribute name="value" for="modelField" expr="eval:'attributes'" if="_parent._model == 'com.axelor.apps.sale.db.ConfiguratorCreator'"/>
<!--     	<attribute name="value" for="showIf" expr="eval:'configuratorCreator?.id == ' + id" if="_parent.model == 'com.axelor.apps.production.db.ConfiguratorCreator'"/> -->
    </action-attrs>

	<action-attrs name="action-configurator-json-field-onload">
		<attribute name="value" for="$simpleName" expr="eval: name.substring(0, name.indexOf('_'))" if="_parent._model == 'com.axelor.apps.sale.db.ConfiguratorCreator'"/>
	</action-attrs>

	<action-record name="action-configurator-record-name" model="com.axelor.meta.db.MetaJsonField">
		<field name="name" expr="eval: simpleName + '_' + __parent__.id"/>
	</action-record>
    
</object-views><commit_msg>Feature #8422: Add a column Title in the attributes grid of a configurator creator.<commit_after><?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.0.xsd">
	
	<form name="sale-json-field-form" onLoad="action-configurator-json-field-onload" title="Custom field" model="com.axelor.meta.db.MetaJsonField" onNew="action-configurator-set-json-field-default">
	    <panel title="Overview">
	      <field name="$simpleName" onChange="action-configurator-record-name" title="Name" x-pattern="[a-z][a-zA-Z0-9_\\$]+"/>
		  <field readonly="true" name="name" title="Name to use in scripts"/>
	      <field name="type" />
	      <field name="title" />
	      <field name="defaultValue" />
	      <field name="help" />
	      <field name="sequence" />
	      <field name="includedInCost" widget="inline-checkbox" />
	      <field name="model" hidden="true" />
	      <field name="modelField" hidden="true" />
	    </panel>
	    <panel-include view="json-field-form-base" />
    </form>
    
	<grid name="sale-json-field-grid" title="Custom fields" model="com.axelor.meta.db.MetaJsonField" edit-icon="true">
	  <field name="name"/>
	  <field name="title"/>
	  <field name="type"/>
	</grid>
	
	<action-attrs name="action-configurator-set-json-field-default" >
    	<attribute name="value"	for="model" expr="eval:'com.axelor.apps.sale.db.Configurator'" if="_parent._model == 'com.axelor.apps.sale.db.ConfiguratorCreator'"/>
    	<attribute name="value" for="modelField" expr="eval:'attributes'" if="_parent._model == 'com.axelor.apps.sale.db.ConfiguratorCreator'"/>
<!--     	<attribute name="value" for="showIf" expr="eval:'configuratorCreator?.id == ' + id" if="_parent.model == 'com.axelor.apps.production.db.ConfiguratorCreator'"/> -->
    </action-attrs>

	<action-attrs name="action-configurator-json-field-onload">
		<attribute name="value" for="$simpleName" expr="eval: name.substring(0, name.indexOf('_'))" if="_parent._model == 'com.axelor.apps.sale.db.ConfiguratorCreator'"/>
	</action-attrs>

	<action-record name="action-configurator-record-name" model="com.axelor.meta.db.MetaJsonField">
		<field name="name" expr="eval: simpleName + '_' + __parent__.id"/>
	</action-record>
    
</object-views>
{'fraction_non_alphanumeric': 0.1978969505783386, 'fraction_numerical': 0.006309148264984227, 'mean_word_length': 4.410693970420933, 'pattern_counts': {'":': 0, '<': 72, '<?xml version=': 2, '>': 72, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4437016', 'n_tokens_mistral': 1699, 'n_tokens_neox': 1595, 'n_words': 230}