<commit_before><openerp>
	<data>
		
		<!-- Account voucher payment and purchase inherit -->
		
		<record model="ir.ui.view" id="view_customer_receipt_form">
			<field name="name">account.voucher.receipt.form</field>
			<field name="model">account.voucher</field>
			<field name="inherit_id" ref="account_voucher.view_vendor_receipt_form"/>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<data>
					<field name="journal_id" position="replace">
						<field name="journal_id"
								domain="[('payment_method','=','True')]"
								widget="selection" select="1"
								on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)"
								string="Payment Method"/>
					</field>
				</data>
			</field>
		</record>
		
		<record model="ir.ui.view" id="view_purchase_receipt_form">
			<field name="name">account.voucher.purchase.form</field>
			<field name="model">account.voucher</field>
			<field name="inherit_id" ref="account_voucher.view_vendor_payment_form"/>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<data>
					<field name="journal_id" position="replace">
						<field name="journal_id"
							domain="[('payment_method','=','True')]"
							widget="selection" select="1"
							on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)"
							string="Payment Method"/>
					</field>
				</data>
			</field>
		</record>
		
		<record id="action_vendor_reciept2" model="ir.actions.act_window">
			<field name="name">Customer Payment</field>
			<field name="res_model">account.voucher</field>
			<field name="view_type">form</field>
			<field name="domain">[('journal_id.payment_method', '=', 'True'), ('type','=','receipt')]</field>
			<field name="context">{'type' : 'receipt','payment_method':'True'}</field>
			<field name="view_id" eval="False"/>
			<field name="search_view_id" ref="account_voucher.view_voucher_filter_vendor_pay"/>
			<field name="target">current</field>
			<field name="help">Sales payment allows you to register the payments you receive from your customers. In order to record a payment, you must enter the customer, the payment method (=the journal) and the payment amount. OpenERP will propose to you automatically the reconciliation of this payment with the open invoices or sales receipts.</field>
		</record>
		<record id="action_vendor_reciept_tree" model="ir.actions.act_window.view">
			<field eval="1" name="sequence"/>
			<field name="view_mode">tree</field>
			<field name="act_window_id" ref="action_vendor_reciept2"/>
		</record>
		<record id="action_vendor_reciept_form" model="ir.actions.act_window.view">
			<field eval="2" name="sequence"/>
			<field name="view_mode">form</field>
			<field name="view_id" ref="account_voucher.view_vendor_receipt_form"/>
			<field name="act_window_id" ref="action_vendor_reciept2"/>
		</record>
		
		<record id="account_voucher.menu_action_vendor_receipt" model="ir.ui.menu">
			<field name="action" ref="action_vendor_reciept2"/>
		</record>
		
		
		<record id="action_vendor_payment2" model="ir.actions.act_window">
			<field name="name">Supplier Payment</field>
			<field name="res_model">account.voucher</field>
			<field name="view_type">form</field>
			<field name="domain">[('journal_id.payment_method', '=', 'True'), ('type','=','payment')]</field>
			<field name="context">{'type':'payment','payment_method':'True'}</field>
			<field name="view_id" eval="False"/>
			<field name="search_view_id" ref="account_voucher.view_voucher_filter_vendor_pay"/>
			<field name="target">current</field>
			<field name="help">The supplier payment form allows you to track the payment you do to your suppliers. When you select a supplier, the payment method and an amount for the payment, OpenERP will propose to reconcile your payment with the open supplier invoices or bills.</field>
		</record>
		<record id="action_vendor_payment_tree" model="ir.actions.act_window.view">
			<field eval="1" name="sequence"/>
			<field name="view_mode">tree</field>
			<field name="act_window_id" ref="action_vendor_payment2"/>
		</record>
		<record id="action_vendor_payment_form" model="ir.actions.act_window.view">
			<field eval="2" name="sequence"/>
			<field name="view_mode">form</field>
			<field name="view_id" ref="account_voucher.view_vendor_payment_form"/>
			<field name="act_window_id" ref="action_vendor_payment2"/>
		</record>
		
		<record id="account_voucher.menu_action_vendor_payment" model="ir.ui.menu" >
			<field name="action" ref="action_vendor_payment2"/>
		</record>
		
		<!--
		
		ACCOUNT.VOUCHER.LINE MODIFICATION
		
		-->
		<record model = "ir.ui.view" id = "view_account_voucher_line_mod">
			<field name = "name">account.voucher.line.mod</field>
			<field name = "model">account.voucher.line</field>
			<field name = "type">tree</field>
			<field name = "inherit_id" ref = "account_voucher.view_vendor_receipt_form"/>
			<field name = "arch" type = "xml">
				<data><commit_msg>[FIX] account_voucher_payment_method: xpath not working, init test1<commit_after><openerp>
	<data>
		
		<!-- Account voucher payment and purchase inherit -->
		
		<record model="ir.ui.view" id="view_customer_receipt_form">
			<field name="name">account.voucher.receipt.form</field>
			<field name="model">account.voucher</field>
			<field name="inherit_id" ref="account_voucher.view_vendor_receipt_form"/>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<data>
					<field name="journal_id" position="replace">
						<field name="journal_id"
								domain="[('payment_method','=','True')]"
								widget="selection" select="1"
								on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)"
								string="Payment Method"/>
					</field>
				</data>
			</field>
		</record>
		
		<record model="ir.ui.view" id="view_purchase_receipt_form">
			<field name="name">account.voucher.purchase.form</field>
			<field name="model">account.voucher</field>
			<field name="inherit_id" ref="account_voucher.view_vendor_payment_form"/>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<data>
					<field name="journal_id" position="replace">
						<field name="journal_id"
							domain="[('payment_method','=','True')]"
							widget="selection" select="1"
							on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)"
							string="Payment Method"/>
					</field>
				</data>
			</field>
		</record>
		
		<record id="action_vendor_reciept2" model="ir.actions.act_window">
			<field name="name">Customer Payment</field>
			<field name="res_model">account.voucher</field>
			<field name="view_type">form</field>
			<field name="domain">[('journal_id.payment_method', '=', 'True'), ('type','=','receipt')]</field>
			<field name="context">{'type' : 'receipt','payment_method':'True'}</field>
			<field name="view_id" eval="False"/>
			<field name="search_view_id" ref="account_voucher.view_voucher_filter_vendor_pay"/>
			<field name="target">current</field>
			<field name="help">Sales payment allows you to register the payments you receive from your customers. In order to record a payment, you must enter the customer, the payment method (=the journal) and the payment amount. OpenERP will propose to you automatically the reconciliation of this payment with the open invoices or sales receipts.</field>
		</record>
		<record id="action_vendor_reciept_tree" model="ir.actions.act_window.view">
			<field eval="1" name="sequence"/>
			<field name="view_mode">tree</field>
			<field name="act_window_id" ref="action_vendor_reciept2"/>
		</record>
		<record id="action_vendor_reciept_form" model="ir.actions.act_window.view">
			<field eval="2" name="sequence"/>
			<field name="view_mode">form</field>
			<field name="view_id" ref="account_voucher.view_vendor_receipt_form"/>
			<field name="act_window_id" ref="action_vendor_reciept2"/>
		</record>
		
		<record id="account_voucher.menu_action_vendor_receipt" model="ir.ui.menu">
			<field name="action" ref="action_vendor_reciept2"/>
		</record>
		
		
		<record id="action_vendor_payment2" model="ir.actions.act_window">
			<field name="name">Supplier Payment</field>
			<field name="res_model">account.voucher</field>
			<field name="view_type">form</field>
			<field name="domain">[('journal_id.payment_method', '=', 'True'), ('type','=','payment')]</field>
			<field name="context">{'type':'payment','payment_method':'True'}</field>
			<field name="view_id" eval="False"/>
			<field name="search_view_id" ref="account_voucher.view_voucher_filter_vendor_pay"/>
			<field name="target">current</field>
			<field name="help">The supplier payment form allows you to track the payment you do to your suppliers. When you select a supplier, the payment method and an amount for the payment, OpenERP will propose to reconcile your payment with the open supplier invoices or bills.</field>
		</record>
		<record id="action_vendor_payment_tree" model="ir.actions.act_window.view">
			<field eval="1" name="sequence"/>
			<field name="view_mode">tree</field>
			<field name="act_window_id" ref="action_vendor_payment2"/>
		</record>
		<record id="action_vendor_payment_form" model="ir.actions.act_window.view">
			<field eval="2" name="sequence"/>
			<field name="view_mode">form</field>
			<field name="view_id" ref="account_voucher.view_vendor_payment_form"/>
			<field name="act_window_id" ref="action_vendor_payment2"/>
		</record>
		
		<record id="account_voucher.menu_action_vendor_payment" model="ir.ui.menu" >
			<field name="action" ref="action_vendor_payment2"/>
		</record>
		
		<!--
		
		ACCOUNT.VOUCHER.LINE MODIFICATION
		
		-->
		<record model = "ir.ui.view" id = "view_account_voucher_line_mod">
			<field name = "name">account.voucher.line.mod</field>
			<field name = "model">account.voucher.line</field>
			<field name = "type">tree</field>
			<field name = "inherit_id" ref = "account_voucher.view_vendor_receipt_form"/>
			<field name = "arch" type = "xml">
				<data>
						<xpath expr = "//field[@name='line_cr_ids']//field[@name='amount_original']" position = "replace">
							<field name = "date_original"/>
						</xpath>
						<xpath expr = "//field[@name='line_dr_ids']//field[@name='amount_original']" position = "replace">
							<field name = "date_original"/>
						</xpath>
{'fraction_non_alphanumeric': 0.16393758428048547, 'fraction_numerical': 0.002793296089385475, 'mean_word_length': 5.033120278907612, 'pattern_counts': {'":': 0, '<': 237, '<?xml version=': 0, '>': 237, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '3109006', 'n_tokens_mistral': 3950, 'n_tokens_neox': 3366, 'n_words': 671}