<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>

	<data>

		<record id="view_l10n_br_sale_order_form1" model="ir.ui.view">
			<field name="name">l10n_br_sale.order.form1</field>
	   		<field name="model">sale.order</field>
	   		<field name="inherit_id" ref="sale.view_order_form"/>
	   		<field name="priority">36</field>
	   		<field name="arch" type="xml">
	        	<field name="fiscal_position" position="replace">
					<field name="fiscal_operation_category_id" on_change="onchange_fiscal_operation_category_id(partner_id, partner_invoice_id, shop_id, fiscal_operation_category_id)" required="1"/>
					<field name="fiscal_operation_id" required="1"/>
					<field domain="[('fiscal_operation_id','=',fiscal_operation_id)]" name="fiscal_position" />
	        	</field>
	        </field>
		</record>

		<record id="view_l10n_br_sale_order_form2" model="ir.ui.view">
			<field name="name">l10n_br_sale.order.form2</field>
	   		<field name="model">sale.order</field>
	   		<field name="inherit_id" ref="account_fiscal_position_rule_sale.view_order_form3"/>
	   		<field name="priority">36</field>
	   		<field name="arch" type="xml">
	        	<field name="partner_id" position="replace">
					<field name="partner_id" on_change="onchange_partner_id(partner_id, partner_invoice_id, shop_id, fiscal_operation_category_id)" domain="[('customer','=',True)]" context="{'search_default_customer':1}" required="1" />
	        	</field>
	        </field>
		</record>
		
		<record id="view_l10n_br_sale_order_form3" model="ir.ui.view">
			<field name="name">l10n_br_sale.order.form3</field>
	   		<field name="model">sale.order</field>
	   		<field name="inherit_id" ref="sale.view_order_form"/>
	   		<field name="priority">36</field>
	   		<field name="arch" type="xml">
	        	<field name="shop_id" position="replace">
					<field name="shop_id" widget="selection" on_change="onchange_shop_id(shop_id, partner_id, partner_invoice_id, fiscal_operation_category_id)" />
	        	</field>
	        </field>
		</record>

		<record id="view_l10n_br_sale_order_form4" model="ir.ui.view">
			<field name="name">l10n_br_sale.order.form4</field>
	   		<field name="model">sale.order</field>
	   		<field name="inherit_id" ref="account_fiscal_position_rule_sale.view_order_form2"/>
	   		<field name="priority">32</field>
	   		<field name="arch" type="xml">
	        	<field name="partner_invoice_id" position="replace">
	        	<field domain="[('partner_id','=',partner_id)]" name="partner_invoice_id" on_change="onchange_partner_invoice_id(partner_invoice_id, partner_id, shop_id, fiscal_operation_category_id)"/>
	        	</field>
	        </field>
		</record>

		<record id="l10n_br_sale_view_shop_form" model="ir.ui.view">
			<field name="name">l10n_br_sale.sale.shop</field>
	   		<field name="model">sale.shop</field>
	   		<field name="inherit_id" ref="sale.view_shop_form"/>
	   		<field name="priority">36</field>
	   		<field name="arch" type="xml">
	        	<field name="project_id" position="after">
					<field name="default_fo_category_id" required="1"/>
	        	</field>
	        </field>
		</record>

		<!-- sale order line -->
		<record id="l10n_br_sale_view_order_form" model="ir.ui.view">
	   		<field name="name">l10n_br_sale.order.form</field>
	   		<field name="model">sale.order</field>
	   		<field name="inherit_id" ref="sale.view_order_form"/>
	   		<field name="priority">36</field>
	   		<field name="arch" type="xml">
   				<xpath expr="/form/notebook/page/field/form/notebook/page/group/field[@name='discount']" position="after">
		            	<field colspan="3" name="fiscal_operation_category_id" groups="base.group_sale_salesman" required="1"/>
			   			<field name="fiscal_operation_id" groups="base.group_sale_salesman" required="1"/>
			   	</xpath>
       		</field>        
   		</record>

   		<record id="l10n_br_sale_view_order_form5" model="ir.ui.view">
	   		<field name="name">l10n_br_sale.order.form5</field>
	   		<field name="model">sale.order</field>
	   		<field name="inherit_id" ref="sale.view_order_form"/>
	   		<field name="priority">36</field>
	   		<field name="arch" type="xml">
   				<xpath expr="/form/notebook/page/field/form/notebook/page/group/field[@name='product_id']" position="replace">
		            	<field colspan="3"
                           context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}"
                           name="product_id"
                           on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], True, parent.date_order, product_packaging, parent.fiscal_position, False, parent.fiscal_operation_category_id, parent.fiscal_operation_id, parent.shop_id)" />
			   	</xpath>
			   	<xpath expr="/form/notebook/page/field/form/notebook/page/group/field[@name='product_uos']" position="replace">
		            	<field groups="product.group_uos" name="product_uos" nolabel="1"/>
			   	</xpath>
       		</field>
   		</record>
 
    </data>

</openerp>
<commit_msg>[FIX] l10n_br_sale: new 6.1 web-client wouldn't parse the old product_id_change expr, updated to match addons/sale expr instead<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>

	<data>

		<record id="view_l10n_br_sale_order_form1" model="ir.ui.view">
			<field name="name">l10n_br_sale.order.form1</field>
	   		<field name="model">sale.order</field>
	   		<field name="inherit_id" ref="sale.view_order_form"/>
	   		<field name="priority">36</field>
	   		<field name="arch" type="xml">
	        	<field name="fiscal_position" position="replace">
					<field name="fiscal_operation_category_id" on_change="onchange_fiscal_operation_category_id(partner_id, partner_invoice_id, shop_id, fiscal_operation_category_id)" required="1"/>
					<field name="fiscal_operation_id" required="1"/>
					<field domain="[('fiscal_operation_id','=',fiscal_operation_id)]" name="fiscal_position" />
	        	</field>
	        </field>
		</record>

		<record id="view_l10n_br_sale_order_form2" model="ir.ui.view">
			<field name="name">l10n_br_sale.order.form2</field>
	   		<field name="model">sale.order</field>
	   		<field name="inherit_id" ref="account_fiscal_position_rule_sale.view_order_form3"/>
	   		<field name="priority">36</field>
	   		<field name="arch" type="xml">
	        	<field name="partner_id" position="replace">
					<field name="partner_id" on_change="onchange_partner_id(partner_id, partner_invoice_id, shop_id, fiscal_operation_category_id)" domain="[('customer','=',True)]" context="{'search_default_customer':1}" required="1" />
	        	</field>
	        </field>
		</record>
		
		<record id="view_l10n_br_sale_order_form3" model="ir.ui.view">
			<field name="name">l10n_br_sale.order.form3</field>
	   		<field name="model">sale.order</field>
	   		<field name="inherit_id" ref="sale.view_order_form"/>
	   		<field name="priority">36</field>
	   		<field name="arch" type="xml">
	        	<field name="shop_id" position="replace">
					<field name="shop_id" widget="selection" on_change="onchange_shop_id(shop_id, partner_id, partner_invoice_id, fiscal_operation_category_id)" />
	        	</field>
	        </field>
		</record>

		<record id="view_l10n_br_sale_order_form4" model="ir.ui.view">
			<field name="name">l10n_br_sale.order.form4</field>
	   		<field name="model">sale.order</field>
	   		<field name="inherit_id" ref="account_fiscal_position_rule_sale.view_order_form2"/>
	   		<field name="priority">32</field>
	   		<field name="arch" type="xml">
	        	<field name="partner_invoice_id" position="replace">
	        	<field domain="[('partner_id','=',partner_id)]" name="partner_invoice_id" on_change="onchange_partner_invoice_id(partner_invoice_id, partner_id, shop_id, fiscal_operation_category_id)"/>
	        	</field>
	        </field>
		</record>

		<record id="l10n_br_sale_view_shop_form" model="ir.ui.view">
			<field name="name">l10n_br_sale.sale.shop</field>
	   		<field name="model">sale.shop</field>
	   		<field name="inherit_id" ref="sale.view_shop_form"/>
	   		<field name="priority">36</field>
	   		<field name="arch" type="xml">
	        	<field name="project_id" position="after">
					<field name="default_fo_category_id" required="1"/>
	        	</field>
	        </field>
		</record>

		<!-- sale order line -->
		<record id="l10n_br_sale_view_order_form" model="ir.ui.view">
	   		<field name="name">l10n_br_sale.order.form</field>
	   		<field name="model">sale.order</field>
	   		<field name="inherit_id" ref="sale.view_order_form"/>
	   		<field name="priority">36</field>
	   		<field name="arch" type="xml">
   				<xpath expr="/form/notebook/page/field/form/notebook/page/group/field[@name='discount']" position="after">
		            	<field colspan="3" name="fiscal_operation_category_id" groups="base.group_sale_salesman" required="1"/>
			   			<field name="fiscal_operation_id" groups="base.group_sale_salesman" required="1"/>
			   	</xpath>
       		</field>        
   		</record>

   		<record id="l10n_br_sale_view_order_form5" model="ir.ui.view">
	   		<field name="name">l10n_br_sale.order.form5</field>
	   		<field name="model">sale.order</field>
	   		<field name="inherit_id" ref="sale.view_order_form"/>
	   		<field name="priority">36</field>
	   		<field name="arch" type="xml">
   				<xpath expr="/form/notebook/page/field/form/notebook/page/group/field[@name='product_id']" position="replace">
		            	<field colspan="3"
                           context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}"
                           name="product_id"
                           on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, False, True, parent.date_order, product_packaging, parent.fiscal_position, False, parent.fiscal_operation_category_id, parent.fiscal_operation_id, parent.shop_id)" />
			   	</xpath>
			   	<xpath expr="/form/notebook/page/field/form/notebook/page/group/field[@name='product_uos']" position="replace">
		            	<field groups="product.group_uos" name="product_uos" nolabel="1"/>
			   	</xpath>
       		</field>
   		</record>
 
    </data>

</openerp>

{'fraction_non_alphanumeric': 0.1612225405921681, 'fraction_numerical': 0.013180515759312322, 'mean_word_length': 4.034134615384615, 'pattern_counts': {'":': 0, '<': 223, '<?xml version=': 2, '>': 223, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 16}, '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': '2820443', 'n_tokens_mistral': 4128, 'n_tokens_neox': 3735, 'n_words': 482}