<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">
    
    <grid name="prod-process-line-grid" title="Phases" model="com.axelor.apps.production.db.ProdProcessLine" orderBy="priority">
    	<field name="priority"/>
		<field name="name"/>
        <field name="workCenter" grid-view="work-center-grid" form-view="work-center-form"/>
        <field name="outsourcing"/>
        <field name="description"/>
        
    </grid>
    
    <form name="prod-process-line-form" title="Phase" model="com.axelor.apps.production.db.ProdProcessLine"
    onNew="action-prod-process-line-record-default, action-prod-process-line-attrs-default"
    onLoad="action-prod-process-line-attrs-default" width="large">
    	<panel name="main"> 
	    	<field name="name"/>
	    	<field name="priority" colSpan="3"/>
	    	<field name="workCenter" grid-view="work-center-grid" form-view="work-center-form" canNew="true" onChange="action-prod-process-line-record-capacity-settings"/>
	    	<field name="outsourcing"/>
			<field name="location"/>
	    	<panel name="capacitySettings" title="Capacity settings" colSpan="12">
	          <field name="minCapacityPerCycle" colSpan="3"/>
	          <field name="maxCapacityPerCycle" colSpan="3"/>
	          <field name="durationPerCycle" colSpan="3" widget="duration" x-big="true" x-seconds="true"/>
	        </panel>
			<panel name="description" title="Description" colSpan="12">
    			<field name="description" showTitle="false" height="5" colSpan="12"/>
    		</panel>
    	</panel>
    	<panel-tabs>
			<panel-related name="toConsumeProdProductList" field="toConsumeProdProductList" title="To consume products" editable="true" colSpan="12" form-view="prod-product-form" grid-view="prod-product-grid"/>
    		<panel-related  field="objectDescriptionList" colSpan="12"/>
    	</panel-tabs>
    	        
    </form>
    
    <action-record name="action-prod-process-line-record-capacity-settings" model="com.axelor.apps.production.db.ProdProcessLine">
    	<field name="minCapacityPerCycle" expr="eval: workCenter?.minCapacityPerCycle"/>
    	<field name="maxCapacityPerCycle" expr="eval: workCenter?.maxCapacityPerCycle"/>
    	<field name="durationPerCycle" expr="eval: workCenter?.durationPerCycle"/>
    </action-record>
    
    <action-record name="action-prod-process-line-record-default" model="com.axelor.apps.production.db.ProdProcessLine">
    	<field name="priority" expr="eval:__parent__?.prodProcessLineList?.max{ it.getPriority() }.getPriority() + 10"/>
    	<field name="location" expr="eval:__parent__?.company?.getProductionConfig().getProductionVirtualLocation()"/>
    </action-record>
    
    <action-attrs name="action-prod-process-line-attrs-default">
    	<attribute name="hidden" for="toConsumeProdProductList" expr="eval: _parent != null ? !_parent.isConsProOnOperation : !prodProcess.isConsProOnOperation"/>
		<attribute name="hidden" for="location" expr="eval: !__parent__.isConsProOnOperation"/>
    </action-attrs>
    
</object-views>
<commit_msg>ProdProcess Line: Hid label if workCenter is human<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">
    
    <grid name="prod-process-line-grid" title="Phases" model="com.axelor.apps.production.db.ProdProcessLine" orderBy="priority">
    	<field name="priority"/>
		<field name="name"/>
        <field name="workCenter" grid-view="work-center-grid" form-view="work-center-form"/>
        <field name="outsourcing"/>
        <field name="description"/>
        
    </grid>
    
    <form name="prod-process-line-form" title="Phase" model="com.axelor.apps.production.db.ProdProcessLine"
    onNew="action-prod-process-line-record-default, action-prod-process-line-attrs-default"
    onLoad="action-prod-process-line-attrs-default" width="large">
    	<panel name="main"> 
	    	<field name="name"/>
	    	<field name="priority" colSpan="3"/>
	    	<field name="workCenter" grid-view="work-center-grid" form-view="work-center-form" canNew="true" onChange="action-prod-process-line-group-work-center-onchange"/>
	    	<field name="outsourcing"/>
			<field name="location"/>
	    	<panel name="capacitySettings" title="Capacity settings" colSpan="12">
	          <field name="minCapacityPerCycle" colSpan="3"/>
	          <field name="maxCapacityPerCycle" colSpan="3"/>
	          <field name="durationPerCycle" colSpan="3" widget="duration" x-big="true" x-seconds="true"/>
	        </panel>
			<panel name="description" title="Description" colSpan="12">
    			<field name="description" showTitle="false" height="5" colSpan="12"/>
    		</panel>
    	</panel>
    	<panel-tabs>
			<panel-related name="toConsumeProdProductList" field="toConsumeProdProductList" title="To consume products" editable="true" colSpan="12" form-view="prod-product-form" grid-view="prod-product-grid"/>
    		<panel-related  field="objectDescriptionList" colSpan="12"/>
    	</panel-tabs>
    	        
    </form>

	<action-group name="action-prod-process-line-group-work-center-onchange">
		<action name="action-prod-process-line-record-capacity-settings"/>
		<action name="action-prod-process-line-attrs-hide-capacity-settings"/>
	</action-group>
    
    <action-record name="action-prod-process-line-record-capacity-settings" model="com.axelor.apps.production.db.ProdProcessLine">
    	<field name="minCapacityPerCycle" expr="eval: workCenter?.minCapacityPerCycle"/>
    	<field name="maxCapacityPerCycle" expr="eval: workCenter?.maxCapacityPerCycle"/>
    	<field name="durationPerCycle" expr="eval: workCenter?.durationPerCycle"/>
    </action-record>
    
    <action-record name="action-prod-process-line-record-default" model="com.axelor.apps.production.db.ProdProcessLine">
    	<field name="priority" expr="eval:__parent__?.prodProcessLineList?.max{ it.getPriority() }.getPriority() + 10"/>
    	<field name="location" expr="eval:__parent__?.company?.getProductionConfig().getProductionVirtualLocation()"/>
    </action-record>
    
    <action-attrs name="action-prod-process-line-attrs-default">
    	<attribute name="hidden" for="toConsumeProdProductList" expr="eval: _parent != null ? !_parent.isConsProOnOperation : !prodProcess.isConsProOnOperation"/>
		<attribute name="hidden" for="location" expr="eval: !__parent__.isConsProOnOperation"/>
		<attribute for="capacitySettings" name="hidden"
				   expr="eval: workCenter?.workCenterTypeSelect == 1"/>
    </action-attrs>

	<action-attrs name="action-prod-process-line-attrs-hide-capacity-settings">
		<attribute for="capacitySettings" name="hidden"
				   expr="eval: workCenter?.workCenterTypeSelect == 1"/>
	</action-attrs>
    
</object-views>

{'fraction_non_alphanumeric': 0.1699760597099, 'fraction_numerical': 0.007886213209407127, 'mean_word_length': 4.38030303030303, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 2, '>': 99, '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': '4938801', 'n_tokens_mistral': 2329, 'n_tokens_neox': 2228, 'n_words': 315}