<commit_before><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<object-views xmlns="http://apps.axelor.com/xml/ns/object-views"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://apps.axelor.com/xml/ns/object-views http://apps.axelor.com/xml/ns/object-views/object-views_2.1.xsd">
    
    <grid name="bill-of-material-grid" title="Bills of material" model="com.axelor.apps.production.db.BillOfMaterial">
    	<field name="name"/>
        <field name="product" domain="self.productTypeSelect = 'storable'"  onChange="action-bill-of-material-record-product"/>
        <field name="qty"/>
        <field name="unit"/>
        <field name="prodProcess"/>
    </grid>

	<form name="bill-of-material-form" title="Bill of material"
		model="com.axelor.apps.production.db.BillOfMaterial" onSave="action-bill-of-material-record-name"
		onNew="action-bill-of-material-default-record">
	  <panel>
	    <field name="name"/>
	    <field name="product" onChange="action-bill-of-material-record-product" domain="self.productTypeSelect = 'storable'"/>
	    <field name="company" widget="SuggestBox" form-view="company-lite-form"/>
	    <field name="qty"/>
	    <field name="unit"/>
	    <field name="prodProcess"/>
	  </panel>
	  <panel-tabs>
	    <panel-related field="billOfMaterialList" title="Bill of material" x-span="12" domain="self.isRawMaterial = false" form-view="bill-of-material-line-form" grid-view="bill-of-material-line-grid"/>
	    <panel-related field="prodRemainsList" title="Remains" x-span="12"/>	    
	    <!-- TODO: remove this comment if portlet works in panel
	    <panel title="BOMs Tree">
	      <portlet colSpan="4" action="action-bill-of-material-view-tree"/>
	    </panel>
	    -->
	    <panel title="Cost">
	      <button name="computeCostPrice" title="Compute cost price" colSpan="2" onClick="save,action-bill-of-material-method-compute-cost-price"/>
	      <field name="costPrice" readonly="true"/>
	      <button name="updateProductCostPrice" title="update product cost price" colSpan="2" onClick="save,action-bill-of-material-method-update-product-cost-price"/>
	    </panel>
	  </panel-tabs>
	</form>
    
    
    <grid name="bill-of-material-line-grid" title="Bills of material" model="com.axelor.apps.production.db.BillOfMaterial">
        <field name="priority" readonlyIf="isRawMaterial"/>
        <field name="product" domain="self.productTypeSelect = 'storable'"  onChange="action-bill-of-material-record-product"/>
        <field name="qty"/>
        <field name="unit"/>
        <field name="isRawMaterial"/>
        <field name="hasNoManageStock"/>
        <field name="prodProcess" readonlyIf="isRawMaterial"/>
    </grid>


	<form name="bill-of-material-line-form" title="Bill of material"<commit_msg>Fixed bill of material views<commit_after><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<object-views xmlns="http://apps.axelor.com/xml/ns/object-views"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://apps.axelor.com/xml/ns/object-views http://apps.axelor.com/xml/ns/object-views/object-views_2.1.xsd">
    
    <grid name="bill-of-material-grid" title="Bills of material" model="com.axelor.apps.production.db.BillOfMaterial">
    	<field name="name"/>
        <field name="product" domain="self.productTypeSelect = 'storable'"  onChange="action-bill-of-material-record-product"/>
        <field name="qty"/>
        <field name="unit"/>
        <field name="prodProcess"/>
    </grid>

	<form name="bill-of-material-form" title="Bill of material"
		model="com.axelor.apps.production.db.BillOfMaterial" onSave="action-bill-of-material-record-name"
		onNew="action-bill-of-material-default-record">
	  <panel>
	    <field name="name"/>
	    <field name="product" onChange="action-bill-of-material-record-product" domain="self.productTypeSelect = 'storable'"/>
	    <field name="company" widget="SuggestBox" form-view="company-lite-form"/>
	    <field name="qty"/>
	    <field name="unit"/>
	    <field name="prodProcess"/>
	  </panel>
	  
	  <panel-tabs>
	    <panel-related field="billOfMaterialList" title="Bill of material" x-span="12" domain="self.isRawMaterial = false" form-view="bill-of-material-line-form" grid-view="bill-of-material-line-grid"/>
	    <panel-related field="prodRemainsList" title="Remains" x-span="12"/>	
	        
	    <panel-dashlet action="action-bill-of-material-view-tree"/>
	    
	    <panel title="Cost">
	      <button name="computeCostPrice" title="Compute cost price" colSpan="2" onClick="save,action-bill-of-material-method-compute-cost-price"/>
	      <field name="costPrice" readonly="true"/>
	      <button name="updateProductCostPrice" title="update product cost price" colSpan="2" onClick="save,action-bill-of-material-method-update-product-cost-price"/>
	    </panel>
	  </panel-tabs>
	</form>
    
    
    <grid name="bill-of-material-line-grid" title="Bills of material" model="com.axelor.apps.production.db.BillOfMaterial">
        <field name="priority" readonlyIf="isRawMaterial"/>
        <field name="product" domain="self.productTypeSelect = 'storable'"  onChange="action-bill-of-material-record-product"/>
        <field name="qty"/>
        <field name="unit"/>
        <field name="isRawMaterial"/>
        <field name="hasNoManageStock"/>
        <field name="prodProcess" readonlyIf="isRawMaterial"/>
    </grid>


	<form name="bill-of-material-line-form" title="Bill of material"
{'fraction_non_alphanumeric': 0.1756831102145608, 'fraction_numerical': 0.0060517146524848705, 'mean_word_length': 3.88272157564906, 'pattern_counts': {'":': 0, '<': 84, '<?xml version=': 2, '>': 82, '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': '6976600', 'n_tokens_mistral': 1823, 'n_tokens_neox': 1713, 'n_words': 271}