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

    <!-- Inherit Form View to Modify it -->
    <record id="view_l10n_br_account_invoice_form_inherit" model="ir.ui.view">
        <field name="name">view.l10n_br_account.invoice.form.form.inherit</field>
        <field name="model">account.invoice</field>
        <field name="inherit_id" ref="account_payment_order.invoice_form"/>
        <field name="arch" type="xml">
            <button name="create_account_payment_line" position="attributes">
                <attribute name="invisible">1</attribute>
            </button>
            <notebook position="inside">
                <page string="Receivable" name="financial_move_line_ids">
                    <field name="financial_move_line_ids"/>
                </page>
            </notebook>
        </field>
    </record>

    <record id="view_account_invoice_filter_inherit" model="ir.ui.view">
        <field name="name">view.account.invoice.filter.inherit</field>
        <field name="model">account.invoice</field>
        <field name="type">search</field>
        <field name="inherit_id" ref="account.view_account_invoice_filter"/>
        <field name="arch" type="xml">
            <filter name="group_by_partner_id" position="attributes">
                <attribute name="context">{'group_by': 'partner_id'}</attribute>
            </filter>
            <filter name="unpaid" position="attributes">
                <attribute name="domain">[('state','!=','paid')]</attribute>
            </filter>
        </field>
    </record>
</odoo>
<commit_msg>[NEW] Use account_due_list tree view on invoices<commit_after><?xml version="1.0" encoding="utf-8"?>
<odoo>

    <!-- Inherit Form View to Modify it -->
    <record id="view_l10n_br_account_invoice_form_inherit" model="ir.ui.view">
        <field name="name">view.l10n_br_account.invoice.form.form.inherit</field>
        <field name="model">account.invoice</field>
        <field name="inherit_id" ref="account_payment_order.invoice_form"/>
        <field name="arch" type="xml">
            <button name="create_account_payment_line" position="attributes">
                <attribute name="invisible">1</attribute>
            </button>
            <notebook position="inside">
                <page string="Receivable" name="financial_move_line_ids">
                    <field name="financial_move_line_ids" context="{'tree_view_ref':'account_due_list.view_payments_tree'}"/>
                </page>
            </notebook>
        </field>
    </record>

    <record id="view_account_invoice_filter_inherit" model="ir.ui.view">
        <field name="name">view.account.invoice.filter.inherit</field>
        <field name="model">account.invoice</field>
        <field name="type">search</field>
        <field name="inherit_id" ref="account.view_account_invoice_filter"/>
        <field name="arch" type="xml">
            <filter name="group_by_partner_id" position="attributes">
                <attribute name="context">{'group_by': 'partner_id'}</attribute>
            </filter>
            <filter name="unpaid" position="attributes">
                <attribute name="domain">[('state','!=','paid')]</attribute>
            </filter>
        </field>
    </record>
</odoo>

{'fraction_non_alphanumeric': 0.15660435182347532, 'fraction_numerical': 0.004903463070793748, 'mean_word_length': 2.8175438596491227, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 2, '>': 85, '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': '1083281', 'n_tokens_mistral': 983, 'n_tokens_neox': 955, 'n_words': 149}