<commit_before><?xml version="1.0"?>
<terp>
<data>

	<record model="ir.ui.view" id="view_company_from_invoice">
		<field name="name">res.company.form</field>
		<field name="model">res.company</field>
		<field name="inherit_id" ref="base.view_company_form"/>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<field name="rml_footer2" position="after">
				<field name="currency_id" />
			</field>
		</field>
	</record>
	
	
	#---------------------------------------------------------
	# Invoices
	#---------------------------------------------------------
	<record model="ir.ui.view" id="view_invoice_line_tree">
		<field name="name">account.invoice.line.tree</field>
		<field name="model">account.invoice.line</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Invoice Line">
				<field name="name"/>
				<field name="account_id"/>
				<field name="quantity"/>
				<field name="uos_id"/>
				<field name="price_unit"/>
				<field name="discount"/>
				<field name="price_subtotal"/>
			</tree>
		</field>
	</record>
	<record model="ir.ui.view" id="view_invoice_line_form">
		<field name="name">account.invoice.line.form</field>
		<field name="model">account.invoice.line</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Invoice Line">
				<notebook>
					<page string="Line">
						<field name="name" select="1"/>
						<field name="account_id" on_change="onchange_account_id(parent.partner_id,account_id)" />
						<field name="product_id" select="1" on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id)"/>
						<field name="uos_id"/>
						<field name="quantity" select="1"/>
						<field name="price_unit" select="1"/>
						<field name="discount"/>
						<newline/>
						<field name="price_subtotal"/>
						<field name="invoice_line_tax_id" colspan="3"/> 
					</page>
					<page string="Other">
						<field name="note" colspan="4"/>
					</page>
				</notebook>
			</form>
		</field>
	</record>
	<record model="ir.ui.view" id="view_invoice_tax_tree">
		<field name="name">account.invoice.tax.tree</field>
		<field name="model">account.invoice.tax</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Manual Invoice Taxes">
				<field name="sequence"/>
				<field name="manual"/>
				<field name="name"/>
				<field name="account_id"/>
				<field name="base"/>
				<field name="amount"/>
			</tree>
		</field>
	</record>
	<record model="ir.ui.view" id="view_invoice_tax_form">
		<field name="name">account.invoice.tax.form</field>
		<field name="model">account.invoice.tax</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Manual Invoice Taxes">
				<field name="name" select="1"/>
				<field name="sequence"/>
				<field name="account_id" select="1"/>
				<field name="manual" select="1"/>
				<field name="amount" select="1"/>
				<field name="base"/>
				<separator string="Tax codes" colspan="4"/>
				<field name="base_code_id"/>
				<field name="base_amount"/>
				<field name="tax_code_id"/>
				<field name="tax_amount"/>
			</form>
		</field>
	</record>

	<record model="ir.ui.view" id="invoice_tree">
		<field name="name">account.invoice.tree</field>
		<field name="model">account.invoice</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Invoice" colors="grey:state=='draft'">
				<field name="name"/>
				<field name="type"/>
				<field name="number"/>
				<field name="partner_id"/>
				<field name="amount_untaxed"/>
				<field name="amount_total"/>
				<field name="currency_id"/>
				<field name="date_invoice"/>
				<field name="date_discount" select="1"/>
				<field name="date_due" select="1"/>
				<field name="state"/>
			</tree>
		</field>
	</record>

	<record model="ir.ui.view" id="invoice_form">
		<field name="name">account.invoice.form1</field>
		<field name="model">account.invoice</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Invoice">
			<notebook>
				<page string="Invoice">
					<field name="name" select="1"/>
					<field name="currency_id" on_change="onchange_currency_id(currency_id)" select="1"/>
					<newline/>
					<field name="type" select="1"/>
					<field name="number" select="1"/>
					<newline/>

					<field name="partner_id" on_change="onchange_partner_id(type,partner_id)" select="1"/>
					<field name="address_invoice_id" domain="[('partner_id','=',partner_id)]"/>

					<field name="account_id"/>
					<field name="project_id"/>

					<field name="payment_term" on_change="onchange_payment_term(payment_term)" />
					<field name="date_due" select="1"/>
					<field name="date_discount" select="1"/>

					<field name="journal_id" select="1"/>

					<field name="invoice_line" nolabel="1" widget="one2many_list" colspan="4"/>
					<group colspan="4" col="7">
						<field name="amount_untaxed"/>
						<field name="amount_tax"/>
						<field name="amount_total"/>
						<button name="button_compute" string="Compute" states="draft" type="object"/>
					</group>

					<group col="6" colspan="4">
						<field name="state" readonly="1" select="1"/>
						<button name="invoice_proforma" states="draft" string="Create PRO-FORMA"/>
						<button name="invoice_open" states="draft,proforma" string="Create Invoice"/>
						<button name="invoice_cancel" states="draft,proforma,sale,open" string="Cancel Invoice"/>
						<button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object"/>
					</group>
				</page>
				<page string="Tax Lines">
					<field name="tax_line" nolabel="1" widget="one2many_list" colspan="4"/>
				</page>
				<page string="Other Information">
					<field name="reference" select="1"/><commit_msg>Invoice : The invoice now contain a reference to the partner bank account<commit_after><?xml version="1.0"?>
<terp>
<data>

	<record model="ir.ui.view" id="view_company_from_invoice">
		<field name="name">res.company.form</field>
		<field name="model">res.company</field>
		<field name="inherit_id" ref="base.view_company_form"/>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<field name="rml_footer2" position="after">
				<field name="currency_id" />
			</field>
		</field>
	</record>
	
	
	#---------------------------------------------------------
	# Invoices
	#---------------------------------------------------------
	<record model="ir.ui.view" id="view_invoice_line_tree">
		<field name="name">account.invoice.line.tree</field>
		<field name="model">account.invoice.line</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Invoice Line">
				<field name="name"/>
				<field name="account_id"/>
				<field name="quantity"/>
				<field name="uos_id"/>
				<field name="price_unit"/>
				<field name="discount"/>
				<field name="price_subtotal"/>
			</tree>
		</field>
	</record>
	<record model="ir.ui.view" id="view_invoice_line_form">
		<field name="name">account.invoice.line.form</field>
		<field name="model">account.invoice.line</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Invoice Line">
				<notebook>
					<page string="Line">
						<field name="name" select="1"/>
						<field name="account_id" on_change="onchange_account_id(parent.partner_id,account_id)" />
						<field name="product_id" select="1" on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id)"/>
						<field name="uos_id"/>
						<field name="quantity" select="1"/>
						<field name="price_unit" select="1"/>
						<field name="discount"/>
						<newline/>
						<field name="price_subtotal"/>
						<field name="invoice_line_tax_id" colspan="3"/> 
					</page>
					<page string="Other">
						<field name="note" colspan="4"/>
					</page>
				</notebook>
			</form>
		</field>
	</record>
	<record model="ir.ui.view" id="view_invoice_tax_tree">
		<field name="name">account.invoice.tax.tree</field>
		<field name="model">account.invoice.tax</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Manual Invoice Taxes">
				<field name="sequence"/>
				<field name="manual"/>
				<field name="name"/>
				<field name="account_id"/>
				<field name="base"/>
				<field name="amount"/>
			</tree>
		</field>
	</record>
	<record model="ir.ui.view" id="view_invoice_tax_form">
		<field name="name">account.invoice.tax.form</field>
		<field name="model">account.invoice.tax</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Manual Invoice Taxes">
				<field name="name" select="1"/>
				<field name="sequence"/>
				<field name="account_id" select="1"/>
				<field name="manual" select="1"/>
				<field name="amount" select="1"/>
				<field name="base"/>
				<separator string="Tax codes" colspan="4"/>
				<field name="base_code_id"/>
				<field name="base_amount"/>
				<field name="tax_code_id"/>
				<field name="tax_amount"/>
			</form>
		</field>
	</record>

	<record model="ir.ui.view" id="invoice_tree">
		<field name="name">account.invoice.tree</field>
		<field name="model">account.invoice</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Invoice" colors="grey:state=='draft'">
				<field name="name"/>
				<field name="type"/>
				<field name="number"/>
				<field name="partner_id"/>
				<field name="amount_untaxed"/>
				<field name="amount_total"/>
				<field name="currency_id"/>
				<field name="date_invoice"/>
				<field name="date_discount" select="1"/>
				<field name="date_due" select="1"/>
				<field name="state"/>
			</tree>
		</field>
	</record>

	<record model="ir.ui.view" id="invoice_form">
		<field name="name">account.invoice.form1</field>
		<field name="model">account.invoice</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Invoice">
			<notebook>
				<page string="Invoice">
					<field name="name" select="1"/>
					<field name="currency_id" on_change="onchange_currency_id(currency_id)" select="1"/>
					<newline/>
					<field name="type" select="1"/>
					<field name="number" select="1"/>
					<newline/>

					<field name="partner_id" on_change="onchange_partner_id(type,partner_id)" select="1"/>
					<field name="address_invoice_id" domain="[('partner_id','=',partner_id)]"/>
					<field name="partner_bank_id" domain="[('partner_id','=',partner_id)]"/>

					<field name="account_id" domain="[('type','&lt;&gt;','view')]" />
					<field name="project_id" domain="[('type','&lt;&gt;','view')]" />

					<field name="payment_term" on_change="onchange_payment_term(payment_term)" />
					<field name="date_due" select="1"/>
					<field name="date_discount" select="1"/>

					<field name="journal_id" select="1"/>

					<field name="invoice_line" nolabel="1" widget="one2many_list" colspan="4"/>
					<group colspan="4" col="7">
						<field name="amount_untaxed"/>
						<field name="amount_tax"/>
						<field name="amount_total"/>
						<button name="button_compute" string="Compute" states="draft" type="object"/>
					</group>

					<group col="6" colspan="4">
						<field name="state" readonly="1" select="1"/>
						<button name="invoice_proforma" states="draft" string="Create PRO-FORMA"/>
						<button name="invoice_open" states="draft,proforma" string="Create Invoice"/>
						<button name="invoice_cancel" states="draft,proforma,sale,open" string="Cancel Invoice"/>
						<button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object"/>
					</group>
				</page>
				<page string="Tax Lines">
					<field name="tax_line" nolabel="1" widget="one2many_list" colspan="4"/>
				</page>
				<page string="Other Information">
					<field name="reference" select="1"/>
{'fraction_non_alphanumeric': 0.21422544718191022, 'fraction_numerical': 0.00641241984475194, 'mean_word_length': 3.8538083538083536, 'pattern_counts': {'":': 0, '<': 352, '<?xml version=': 2, '>': 352, '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': '4214392', 'n_tokens_mistral': 4811, 'n_tokens_neox': 3953, 'n_words': 737}