<?xml version="1.0"?>
<form string="Journal Item" create="false">
                    <sheet>
                        <field name="company_id" invisible="1"/>
                        <field name="parent_state" invisible="1"/>
                        <group>
                            <field name="name"/>
                            <field name="partner_id" domain="['|', ('parent_id', '=', False), ('is_company', '=', True)]" readonly="1"/>
                        </group>
                        <notebook colspan="4">
                            <page string="Information" name="information">
                                <group>
                                    <group string="Amount">
                                        <field name="account_id" options="{'no_create': True}" domain="[('deprecated', '=', False), ('company_ids', 'parent_of', company_id)]" readonly="1"/>
                                        <field name="debit" readonly="1"/>
                                        <field name="credit" readonly="1"/>
                                        <field name="balance" readonly="1"/>
                                        <field name="quantity" readonly="1"/>
                                    </group>
                                    <group string="Dates">
                                        <field name="date" groups="account.group_account_readonly"/>
                                        <field name="date_maturity"/>
                                    </group>

                                    <group string="Taxes" invisible="not tax_line_id and not tax_ids">
                                        <field name="tax_line_id" readonly="1" invisible="not tax_line_id"/>
                                        <field name="tax_ids" widget="many2many_tags" readonly="1" invisible="not tax_ids"/>
                                        <field name="tax_tag_invert" readonly="1" groups="base.group_no_one"/>
                                    </group>
                                    <group string="Matching" invisible="not matched_debit_ids and not matched_credit_ids">
                                        <label for="full_reconcile_id"/>
                                        <div>
                                            <field name="full_reconcile_id" invisible="not full_reconcile_id"/>
                                            <field name="matched_debit_ids" invisible="1"/>
                                            <field name="matched_credit_ids" invisible="1"/>
                                            <button name="open_reconcile_view" class="oe_link" type="object" string="-&gt; View partially reconciled entries" invisible="full_reconcile_id or not matched_debit_ids and not matched_credit_ids">
                                            </button>
                                        </div>
                                    </group>
                                    <group string="Currency" groups="base.group_multi_currency">
                                        <field name="currency_id" invisible="1"/>
                                        <field name="display_type" invisible="1"/>
                                        <field name="amount_currency" readonly="display_type != 'tax' or parent_state != 'draft'"/>
                                    </group>
                                    <group string="Product" invisible="not product_id">
                                        <field name="product_id" readonly="1"/>
                                    </group>
                                    <group string="Analytic" groups="analytic.group_analytic_accounting">
                                        <field name="analytic_distribution" widget="analytic_distribution" groups="analytic.group_analytic_accounting" readonly="1"/>
                                    </group>
                                </group>
                            </page>
                            <page string="Analytic Lines" name="analytic_lines" groups="analytic.group_analytic_accounting">
                                <field name="date" invisible="1"/>
                                <field name="analytic_line_ids" context="{'list_view_ref':'analytic.view_account_analytic_line_tree', 'default_general_account_id':account_id, 'default_name': name, 'default_date':date, 'amount': (debit or 0.0)-(credit or 0.0)}"/>
                            </page>
                            <page string="Accounting documents" name="page_accounting_documents">
                                <label for="move_id" string="Journal Entry"/>
                                <field name="move_id" readonly="1" nolabel="1"/>
                                <group readonly="1" invisible="not statement_line_id">
                                    <label for="statement_line_id" string="Originator Statement Line"/>
                                    <field name="statement_line_id"/>
                                </group>
                            </page>
                        </notebook>
                    </sheet>
                </form>
            