<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="sale-order-line-grid" title="SO lines" model="com.axelor.apps.sale.db.SaleOrderLine">
		<field name="productName"/>
		<field name="qty" aggregate="sum"/>
        <field name="reservedQty" if-module="axelor-supplychain" if="__config__.app.getApp('supplychain').getManageStockReservation()" aggregate="sum"/>
		<field name="unit" form-view="unit-form" grid-view="unit-grid"/>
		<field name="price" x-scale="2"/>
		<field name="exTaxTotal" aggregate="sum"/>
		<field name="inTaxTotal" aggregate="sum"/>
	</grid>
	
    <grid name="sale-order-line-menu-grid" title="SO lines" model="com.axelor.apps.sale.db.SaleOrderLine">
      	<field name="saleOrder"/>
  		<field name="saleOrder.clientPartner"/>
  		<field name="saleOrder.inTaxTotal"/>
	    <field name="productName"/>
	    <field name="qty" aggregate="sum"/>
	    <field name="unit" form-view="unit-form" grid-view="unit-grid"/>
	    <field name="price" x-scale="2"/>
	    <field name="exTaxTotal" aggregate="sum"/>
	    <field name="inTaxTotal" aggregate="sum"/>
	</grid>
    
    <grid name="sale-order-line-invoice-grid" title="SO lines" model="com.axelor.apps.sale.db.SaleOrderLine">
      	<field name="saleOrder"/>
  		<field name="saleOrder.inTaxTotal"/>
	    <field name="productName"/>
	    <field name="qty" aggregate="sum"/>
	    <field name="unit" form-view="unit-form" grid-view="unit-grid"/>
	    <field name="price" x-scale="2"/>
	    <field name="exTaxTotal" aggregate="sum"/>
	    <field name="inTaxTotal" aggregate="sum"/>
	</grid>
    
	<form name="sale-order-line-form" title="SO line" model="com.axelor.apps.sale.db.SaleOrderLine" 
	onLoad="action-group-sale-saleorderline-onload,action-sale-order-line-attrs-hidden-fields-for-client" onNew="action-group-sale-saleorderline-onnew" width="large">
		<panel>
		    <field name="typeSelect"  onChange="action-sale-order-line-method-empty-line" selection-in="[0,1]" if="!(__config__.app.isApp('sale') &amp;&amp; __config__.app.getApp('sale').getProductPackMgt())" />
		    <field name="typeSelect"  onChange="action-sale-order-line-method-empty-line" selection-in="[0,1,2]" if="(__config__.app.isApp('sale') &amp;&amp; __config__.app.getApp('sale').getProductPackMgt())" />
			<field name="productName" showIf="typeSelect == 1" title="Title"/>
		</panel>
		<panel hideIf="typeSelect == 1">
		   	<field name="product" onChange="action-group-sale-saleorderline-product-onchange,action-sale-order-line-compute-total-pack,action-method-sale-order-line-available-stock" onSelect="action-sale-order-line-attrs-domain-product" form-view="product-form" grid-view="product-grid"/>
		   	<field name="productName"/>
		   	<field name="qty"  hideIf="typeSelect == 2" onChange="action-group-sale-saleorderline-qty-onchange" readonlyIf="typeSelect == 2"/>
			<field name="reservedQty" hideIf="typeSelect == 2" if-module="axelor-supplychain" onChange="action-supplychain-attrs-sale-order-line-max-reserved-qty" if="__config__.app.getApp('supplychain').getManageStockReservation()"/>
            <field name="$availableStock" readonly="true" type="decimal" title="Available stock" if-module="axelor-supplychain" hideIf="typeSelect == 2" if="__config__.app.getApp('supplychain').getManageStockReservation()"/>
			<button name="updateReservedQty" hidden="true" title="Change reserved qty" onClick="action-view-sale-order-line-reserved-qty-wizard" if-module="axelor-supplychain"/>
		   	<field name="unit"  hideIf="typeSelect == 2" canEdit="false" form-view="unit-form" grid-view="unit-grid"/>
		   	<field name="taxLine"  hideIf="typeSelect == 2" colSpan="4" onChange="action-sale-order-line-method-convert-tax,action-sale-order-line-method-compute,action-sale-order-line-method-compute-analytic-distribution" domain="self.endDate = null or self.endDate &gt; :__date__" grid-view="tax-line-grid" form-view="tax-line-form"/>
		   	<field name="taxEquiv" hidden="true" grid-view="tax-equiv-grid" form-view="tax-equiv-form"/>
		   	<field name="price"  hideIf="typeSelect == 2" onChange="action-sale-order-line-method-compute,action-sale-order-line-method-compute-analytic-distribution" colSpan="4"/>
		   	<field name="priceDiscounted" colSpan="4" hidden="true"/>
		   	<field name="exTaxTotal" readonly="true" hideIf="typeSelect == 2" />
		   	<field name="inTaxTotal" readonly="true" hideIf="typeSelect == 2" />
		   	<field name="toInvoice"  hideIf="typeSelect == 2" if="__config__.app.isApp('business-project') &amp;&amp; __config__.app.getApp('business-project').getProjectSaleOrderLines()" if-module="axelor-business-project" />
			<field name="invoiced" showIf="toInvoice"/>
		</panel>
		<panel name="margin" title="Margin" hideIf="typeSelect != 0">
			<field name="subTotalCostPrice" onChange="action-sale-order-line-method-compute-subMargin"/>
			<field name="subTotalGrossMargin"/>
			<field name="subMarginRate"/>
			<field name="$companyCurrency" readonly="true" title="Currency" type="many-to-one" target="com.axelor.apps.base.db.Currency"/>
		</panel>
		<panel name="discount" title="Discount" hideIf="typeSelect != 0">
		   	<field name="discountTypeSelect" onChange="action-sale-order-line-method-compute,action-sale-order-line-attrs-discountamount-title,action-sale-order-line-method-compute-analytic-distribution"/>
		   	<field name="discountAmount" onChange="action-sale-order-line-method-compute,action-sale-order-line-method-compute-analytic-distribution" hideIf="discountTypeSelect == 3"/>
		</panel>
		<panel-tabs hideIf="typeSelect == 1" name="allPanelTabs">
			<panel name="pack" title="Pack lines" showIf="typeSelect == 2" if="__config__.app.isApp('sale') &amp;&amp; __config__.app.getApp('sale').getProductPackMgt()" >
				<panel-related field="subLineList" onChange="action-sale-order-line-compute-total-pack" colSpan="12" form-view="sale-order-line-form" grid-view="sale-order-line-grid"/>
				<field name="totalPack" readonly="true"/>
			</panel>
			<panel name="subscription" title="Subscription" hideIf="typeSelect == 2">
				<panel-include view="subscription-sale-order-line-form" from="axelor-supplychain" if-module="axelor-supplychain" if="__config__.app.isApp('supplychain')" />
			</panel><commit_msg>Anomaly #9109:So line type field place change<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="sale-order-line-grid" title="SO lines" model="com.axelor.apps.sale.db.SaleOrderLine">
		<field name="productName"/>
		<field name="qty" aggregate="sum"/>
        <field name="reservedQty" if-module="axelor-supplychain" if="__config__.app.getApp('supplychain').getManageStockReservation()" aggregate="sum"/>
		<field name="unit" form-view="unit-form" grid-view="unit-grid"/>
		<field name="price" x-scale="2"/>
		<field name="exTaxTotal" aggregate="sum"/>
		<field name="inTaxTotal" aggregate="sum"/>
	</grid>
	
    <grid name="sale-order-line-menu-grid" title="SO lines" model="com.axelor.apps.sale.db.SaleOrderLine">
      	<field name="saleOrder"/>
  		<field name="saleOrder.clientPartner"/>
  		<field name="saleOrder.inTaxTotal"/>
	    <field name="productName"/>
	    <field name="qty" aggregate="sum"/>
	    <field name="unit" form-view="unit-form" grid-view="unit-grid"/>
	    <field name="price" x-scale="2"/>
	    <field name="exTaxTotal" aggregate="sum"/>
	    <field name="inTaxTotal" aggregate="sum"/>
	</grid>
    
    <grid name="sale-order-line-invoice-grid" title="SO lines" model="com.axelor.apps.sale.db.SaleOrderLine">
      	<field name="saleOrder"/>
  		<field name="saleOrder.inTaxTotal"/>
	    <field name="productName"/>
	    <field name="qty" aggregate="sum"/>
	    <field name="unit" form-view="unit-form" grid-view="unit-grid"/>
	    <field name="price" x-scale="2"/>
	    <field name="exTaxTotal" aggregate="sum"/>
	    <field name="inTaxTotal" aggregate="sum"/>
	</grid>
    
	<form name="sale-order-line-form" title="SO line" model="com.axelor.apps.sale.db.SaleOrderLine" 
	onLoad="action-group-sale-saleorderline-onload,action-sale-order-line-attrs-hidden-fields-for-client" onNew="action-group-sale-saleorderline-onnew" width="large">
		<panel showIf="typeSelect == 1">
			<field name="productName"  title="Title"/>
		</panel>
		<panel hideIf="typeSelect == 1">
		   	<field name="product" onChange="action-group-sale-saleorderline-product-onchange,action-sale-order-line-compute-total-pack,action-method-sale-order-line-available-stock" onSelect="action-sale-order-line-attrs-domain-product" form-view="product-form" grid-view="product-grid"/>
		   	<field name="productName"/>
		   	<field name="qty"  hideIf="typeSelect == 2" onChange="action-group-sale-saleorderline-qty-onchange" readonlyIf="typeSelect == 2"/>
			<field name="reservedQty" hideIf="typeSelect == 2" if-module="axelor-supplychain" onChange="action-supplychain-attrs-sale-order-line-max-reserved-qty" if="__config__.app.getApp('supplychain').getManageStockReservation()"/>
            <field name="$availableStock" readonly="true" type="decimal" title="Available stock" if-module="axelor-supplychain" hideIf="typeSelect == 2" if="__config__.app.getApp('supplychain').getManageStockReservation()"/>
			<button name="updateReservedQty" hidden="true" title="Change reserved qty" onClick="action-view-sale-order-line-reserved-qty-wizard" if-module="axelor-supplychain"/>
		   	<field name="unit"  hideIf="typeSelect == 2" canEdit="false" form-view="unit-form" grid-view="unit-grid"/>
		   	<field name="taxLine"  hideIf="typeSelect == 2" colSpan="4" onChange="action-sale-order-line-method-convert-tax,action-sale-order-line-method-compute,action-sale-order-line-method-compute-analytic-distribution" domain="self.endDate = null or self.endDate &gt; :__date__" grid-view="tax-line-grid" form-view="tax-line-form"/>
		   	<field name="taxEquiv" hidden="true" grid-view="tax-equiv-grid" form-view="tax-equiv-form"/>
		   	<field name="price"  hideIf="typeSelect == 2" onChange="action-sale-order-line-method-compute,action-sale-order-line-method-compute-analytic-distribution" colSpan="4"/>
		   	<field name="priceDiscounted" colSpan="4" hidden="true"/>
		   	<field name="exTaxTotal" readonly="true" hideIf="typeSelect == 2" />
		   	<field name="inTaxTotal" readonly="true" hideIf="typeSelect == 2" />
		   	<field name="toInvoice"  hideIf="typeSelect == 2" if="__config__.app.isApp('business-project') &amp;&amp; __config__.app.getApp('business-project').getProjectSaleOrderLines()" if-module="axelor-business-project" />
			<field name="invoiced" showIf="toInvoice"/>
		</panel>
		<panel name="margin" title="Margin" hideIf="typeSelect != 0">
			<field name="subTotalCostPrice" onChange="action-sale-order-line-method-compute-subMargin"/>
			<field name="subTotalGrossMargin"/>
			<field name="subMarginRate"/>
			<field name="$companyCurrency" readonly="true" title="Currency" type="many-to-one" target="com.axelor.apps.base.db.Currency"/>
		</panel>
		<panel name="discount" title="Discount" hideIf="typeSelect != 0">
		   	<field name="discountTypeSelect" onChange="action-sale-order-line-method-compute,action-sale-order-line-attrs-discountamount-title,action-sale-order-line-method-compute-analytic-distribution"/>
		   	<field name="discountAmount" onChange="action-sale-order-line-method-compute,action-sale-order-line-method-compute-analytic-distribution" hideIf="discountTypeSelect == 3"/>
		</panel>
		<panel>
		<field name="typeSelect"  onChange="action-sale-order-line-method-empty-line" selection-in="[0,1]" if="!(__config__.app.isApp('sale') &amp;&amp; __config__.app.getApp('sale').getProductPackMgt())" />
		    <field name="typeSelect"  onChange="action-sale-order-line-method-empty-line" selection-in="[0,1,2]" if="(__config__.app.isApp('sale') &amp;&amp; __config__.app.getApp('sale').getProductPackMgt())" />
		</panel>
		<panel-tabs hideIf="typeSelect == 1" name="allPanelTabs">
			<panel name="pack" title="Pack lines" showIf="typeSelect == 2" if="__config__.app.isApp('sale') &amp;&amp; __config__.app.getApp('sale').getProductPackMgt()" >
				<panel-related field="subLineList" onChange="action-sale-order-line-compute-total-pack" colSpan="12" form-view="sale-order-line-form" grid-view="sale-order-line-grid"/>
				<field name="totalPack" readonly="true"/>
			</panel>
			<panel name="subscription" title="Subscription" hideIf="typeSelect == 2">
				<panel-include view="subscription-sale-order-line-form" from="axelor-supplychain" if-module="axelor-supplychain" if="__config__.app.isApp('supplychain')" />
			</panel>
{'fraction_non_alphanumeric': 0.1886748844375963, 'fraction_numerical': 0.00662557781201849, 'mean_word_length': 5.3352855051244505, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 2, '>': 151, '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': '7055125', 'n_tokens_mistral': 4685, 'n_tokens_neox': 4306, 'n_words': 593}