<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="production-order-grid" title="Production orders" model="com.axelor.apps.production.db.ProductionOrder" orderBy="-productionOrderSeq">
    <hilite color="danger" if="prioritySelect == 3"/>
    <hilite color="warning" if="prioritySelect == 2"/>
    <hilite color="primary" if="prioritySelect == 1"/>
        <field name="productionOrderSeq"/>
        <field name="prioritySelect" hidden="true"/>
        <!--  TODO: this field is commented in domain
        <field name="businessProject"/>
         -->
    </grid>
    
	<form name="production-order-form" title="Production order" model="com.axelor.apps.production.db.ProductionOrder" onNew="action-production-order-attrs-title-project"
		onLoad="action-production-order-attrs-title-project" width="large">
	  <panel name="main">
	    <field name="productionOrderSeq"/>
	    <field name="project" if-module="axelor-business-production" form-view="project-form" grid-view="project-grid" if=" __config__.app.getApp('production').getManageBusinessProduction()" />
	    <field name="prioritySelect"/>
	    <button name="showManufOrderWizard" title="Add Manuf. Order" width="50%"   onClick="save,action-production-order-attrs-add-manuf-order-wizard,action-production-order-record-default-wizard"/>
	  </panel>  
	  <panel name="addManufOrderWizard" title="Add Manuf. Order" hidden="true">
	    <field name="$product" title="Product" type="many-to-one" target="com.axelor.apps.base.db.Product" canEdit="false" domain="self.expense = false and self.productTypeSelect = 'storable' and self.procurementMethodSelect = 'produce'" form-view="product-form" grid-view="product-grid"/>
	    <field name="$billOfMaterial" title="BOM" type="many-to-one" onChange="action-production-order-wizard-record-product" onSelect="action-production-order-wizard-attrs-bill-of-material-dummy-domain" target="com.axelor.apps.production.db.BillOfMaterial" form-view="bill-of-material-form" grid-view="bill-of-material-grid"/>
	    <field name="$qty" title="Quantity" type="decimal"/>
	    <field name="$_startDate" widget="dateTime" title="Planned start date"/>
	    <button name="AddManufOrder" title="Add Manuf. Order"   onClick="action-production-order-method-add-manuf-order"/>
	  </panel>
	<!--         <button name="generateSaleOrder" title="Generate sale order" colSpan="2" onClick="action-production-order-method-generate-sale-order" showIf="businessProject"/> -->
	  <panel-related field="manufOrderList" colSpan="12">
        <field name="manufOrderSeq"/>      
        <field name="product" form-view="product-form" grid-view="product-grid"/>
        <field name="qty"/>
        <field name="plannedStartDateT"/>
        <field name="plannedEndDateT"/>
        <field name="priority"/>
        <field name="statusSelect"/>	  	
	  </panel-related>
	  <panel-dashlet   action="action-production-order-view-operation-order"/>
	</form>
    
    <action-attrs if-module="axelor-business-production" name="action-production-order-attrs-title-project">
		<attribute name="title" for="project" expr="eval: __config__.app.getApp('project').getProjectLabel()" if="__config__.app.isApp('project') &amp;&amp; !com.google.common.base.Strings.isNullOrEmpty(__config__.app.getApp('project').getProjectLabel())"/>
	</action-attrs>

	<action-attrs name="action-production-order-wizard-attrs-bill-of-material-dummy-domain">
		<attribute name="domain" for="$billOfMaterial" expr="eval: &quot;(self.product.id = ${product?.parentProduct?.id} OR self.product.id = ${product.id}) AND self.defineSubBillOfMaterial = false &quot;" if="product"/>
		<attribute name="domain" for="$billOfMaterial" expr="eval: &quot;self.defineSubBillOfMaterial = false &quot;" if="!product"/>
	</action-attrs>
    
   	<action-method name="action-production-order-method-add-manuf-order">
    	<call class="com.axelor.apps.production.web.ProductionOrderController" method="addManufOrder"/>
    </action-method>
    
    <action-record name="action-production-order-record-default-wizard" model="com.axelor.apps.base.db.Wizard">
		<field name="$qty" expr="eval: 1.0"/>
	</action-record>
    
    <action-attrs name="action-production-order-attrs-add-manuf-order-wizard">
    	<attribute name="hidden" for="addManufOrderWizard" expr="eval: false"/>
    	<attribute name="hidden" for="showManufOrderWizard" expr="eval: true"/>
    	<attribute name="value" for="$qty" expr="1"/>
		<attribute name="value" for="$_startDate" expr="eval: __datetime__"/>
    </action-attrs>
    
    <action-view name="action-production-order-view-operation-order" title="Operation orders" model="com.axelor.apps.production.db.OperationOrder">
  		<view type="grid" name="operation-order-group-grid"/>
		<view type="form" name="operation-order-form"/>
  		<domain>self.manufOrder.productionOrder.id = :id</domain>
  		<context name="id" expr="eval: id"/>
  	</action-view>
    
    <search-filters name="production-order-filters" model="com.axelor.apps.production.db.ProductionOrder" title="Production order filters">

		<filter title="Production orders closed">
			<domain>self.isClosed = true</domain>
		</filter>
	</search-filters>
	
	
</object-views>
<commit_msg>#9748 added attr to open grid item in form (no popup)<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="production-order-grid" title="Production orders" model="com.axelor.apps.production.db.ProductionOrder" orderBy="-productionOrderSeq">
    <hilite color="danger" if="prioritySelect == 3"/>
    <hilite color="warning" if="prioritySelect == 2"/>
    <hilite color="primary" if="prioritySelect == 1"/>
        <field name="productionOrderSeq"/>
        <field name="prioritySelect" hidden="true"/>
        <!--  TODO: this field is commented in domain
        <field name="businessProject"/>
         -->
    </grid>
    
	<form name="production-order-form" title="Production order" model="com.axelor.apps.production.db.ProductionOrder" onNew="action-production-order-attrs-title-project"
		onLoad="action-production-order-attrs-title-project" width="large">
	  <panel name="main">
	    <field name="productionOrderSeq"/>
	    <field name="project" if-module="axelor-business-production" form-view="project-form" grid-view="project-grid" if=" __config__.app.getApp('production').getManageBusinessProduction()" />
	    <field name="prioritySelect"/>
	    <button name="showManufOrderWizard" title="Add Manuf. Order" width="50%"   onClick="save,action-production-order-attrs-add-manuf-order-wizard,action-production-order-record-default-wizard"/>
	  </panel>  
	  <panel name="addManufOrderWizard" title="Add Manuf. Order" hidden="true">
	    <field name="$product" title="Product" type="many-to-one" target="com.axelor.apps.base.db.Product" canEdit="false" domain="self.expense = false and self.productTypeSelect = 'storable' and self.procurementMethodSelect = 'produce'" form-view="product-form" grid-view="product-grid"/>
	    <field name="$billOfMaterial" title="BOM" type="many-to-one" onChange="action-production-order-wizard-record-product" onSelect="action-production-order-wizard-attrs-bill-of-material-dummy-domain" target="com.axelor.apps.production.db.BillOfMaterial" form-view="bill-of-material-form" grid-view="bill-of-material-grid"/>
	    <field name="$qty" title="Quantity" type="decimal"/>
	    <field name="$_startDate" widget="dateTime" title="Planned start date"/>
	    <button name="AddManufOrder" title="Add Manuf. Order"   onClick="action-production-order-method-add-manuf-order"/>
	  </panel>
	<!--         <button name="generateSaleOrder" title="Generate sale order" colSpan="2" onClick="action-production-order-method-generate-sale-order" showIf="businessProject"/> -->
	  <panel-related field="manufOrderList" colSpan="12" edit-window="blank">
        <field name="manufOrderSeq"/>      
        <field name="product" form-view="product-form" grid-view="product-grid"/>
        <field name="qty"/>
        <field name="plannedStartDateT"/>
        <field name="plannedEndDateT"/>
        <field name="priority"/>
        <field name="statusSelect"/>	  	
	  </panel-related>
	  <panel-dashlet   action="action-production-order-view-operation-order"/>
	</form>
    
    <action-attrs if-module="axelor-business-production" name="action-production-order-attrs-title-project">
		<attribute name="title" for="project" expr="eval: __config__.app.getApp('project').getProjectLabel()" if="__config__.app.isApp('project') &amp;&amp; !com.google.common.base.Strings.isNullOrEmpty(__config__.app.getApp('project').getProjectLabel())"/>
	</action-attrs>

	<action-attrs name="action-production-order-wizard-attrs-bill-of-material-dummy-domain">
		<attribute name="domain" for="$billOfMaterial" expr="eval: &quot;(self.product.id = ${product?.parentProduct?.id} OR self.product.id = ${product.id}) AND self.defineSubBillOfMaterial = false &quot;" if="product"/>
		<attribute name="domain" for="$billOfMaterial" expr="eval: &quot;self.defineSubBillOfMaterial = false &quot;" if="!product"/>
	</action-attrs>
    
   	<action-method name="action-production-order-method-add-manuf-order">
    	<call class="com.axelor.apps.production.web.ProductionOrderController" method="addManufOrder"/>
    </action-method>
    
    <action-record name="action-production-order-record-default-wizard" model="com.axelor.apps.base.db.Wizard">
		<field name="$qty" expr="eval: 1.0"/>
	</action-record>
    
    <action-attrs name="action-production-order-attrs-add-manuf-order-wizard">
    	<attribute name="hidden" for="addManufOrderWizard" expr="eval: false"/>
    	<attribute name="hidden" for="showManufOrderWizard" expr="eval: true"/>
    	<attribute name="value" for="$qty" expr="1"/>
		<attribute name="value" for="$_startDate" expr="eval: __datetime__"/>
    </action-attrs>
    
    <action-view name="action-production-order-view-operation-order" title="Operation orders" model="com.axelor.apps.production.db.OperationOrder">
  		<view type="grid" name="operation-order-group-grid"/>
		<view type="form" name="operation-order-form"/>
  		<domain>self.manufOrder.productionOrder.id = :id</domain>
  		<context name="id" expr="eval: id"/>
  	</action-view>
    
    <search-filters name="production-order-filters" model="com.axelor.apps.production.db.ProductionOrder" title="Production order filters">

		<filter title="Production orders closed">
			<domain>self.isClosed = true</domain>
		</filter>
	</search-filters>
	
	
</object-views>

{'fraction_non_alphanumeric': 0.17526430915056507, 'fraction_numerical': 0.004192489974480496, 'mean_word_length': 4.7480356207438446, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 2, '>': 145, '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': '4668766', 'n_tokens_mistral': 3548, 'n_tokens_neox': 3387, 'n_words': 523}