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

        <record id="invoice_supplier_form" model="ir.ui.view">
            <field name="name">account.invoice.supplier.form (account_invoice_accrual)</field>
            <field name="model">account.invoice</field>
            <field name="inherit_id" ref="account.invoice_supplier_form" />
            <field name="arch" type="xml">
                <data>
                <field name="move_id" position="before">
                    <field name="accrual_move_id" groups="account.group_account_user" states="draft,proforma2"/>
                </field>
                <field name="type" position="before">
                <div class="oe_right oe_button_box" name="buttons">
                    <field name="to_be_reversed" invisible="1"/>
                    <button name="account_invoice_accrual.act_account_move_accrue" string="Accrual" type="action" attrs="{'invisible': ['|','!',('state','in',['draft','proforma2']),('accrual_move_id','&lt;&gt;',False)]}" />
                    <button name="account_reversal.act_account_move_reverse" string="Reversal" type="action" attrs="{'invisible': ['|',('accrual_move_id','=',False),('to_be_reversed','=',False)]}" />
                </div>
                </field>
                </data>
            </field>
        </record>

        <record id="invoice_form" model="ir.ui.view">
            <field name="name">account.invoice.form (account_invoice_accrual)</field>
            <field name="model">account.invoice</field>
            <field name="inherit_id" ref="account.invoice_form" />
            <field name="arch" type="xml">
                <data>
                <field name="move_id" position="before">
                    <field name="accrual_move_id" groups="account.group_account_user" states="draft,proforma2"/>
                </field>
                <field name="type" position="before">
                <div class="oe_right oe_button_box" name="buttons">
                    <field name="to_be_reversed" invisible="1"/>
                    <button name="account_invoice_accrual.act_account_move_accrue" string="Accrual" type="action" attrs="{'invisible': ['|','!',('state','in',['draft','proforma2']),('accrual_move_id','&lt;&gt;',False)]}" />
                    <button name="account_reversal.act_account_move_reverse" string="Reversal" type="action" attrs="{'invisible': ['|',('accrual_move_id','=',False),('to_be_reversed','=',True)]}" />
                </div>
                </field>
                </data>
            </field>
        </record>

    </data>
</openerp>
<commit_msg>[FIX] account_invoice_accrual: typo in reversal button domain<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="invoice_supplier_form" model="ir.ui.view">
            <field name="name">account.invoice.supplier.form (account_invoice_accrual)</field>
            <field name="model">account.invoice</field>
            <field name="inherit_id" ref="account.invoice_supplier_form" />
            <field name="arch" type="xml">
                <data>
                <field name="move_id" position="before">
                    <field name="accrual_move_id" groups="account.group_account_user" states="draft,proforma2"/>
                </field>
                <field name="type" position="before">
                <div class="oe_right oe_button_box" name="buttons">
                    <field name="to_be_reversed" invisible="1"/>
                    <button name="account_invoice_accrual.act_account_move_accrue" string="Accrual" type="action" attrs="{'invisible': ['|','!',('state','in',['draft','proforma2']),('accrual_move_id','&lt;&gt;',False)]}" />
                    <button name="account_reversal.act_account_move_reverse" string="Reversal" type="action" attrs="{'invisible': ['|',('accrual_move_id','=',False),('to_be_reversed','=',False)]}" />
                </div>
                </field>
                </data>
            </field>
        </record>

        <record id="invoice_form" model="ir.ui.view">
            <field name="name">account.invoice.form (account_invoice_accrual)</field>
            <field name="model">account.invoice</field>
            <field name="inherit_id" ref="account.invoice_form" />
            <field name="arch" type="xml">
                <data>
                <field name="move_id" position="before">
                    <field name="accrual_move_id" groups="account.group_account_user" states="draft,proforma2"/>
                </field>
                <field name="type" position="before">
                <div class="oe_right oe_button_box" name="buttons">
                    <field name="to_be_reversed" invisible="1"/>
                    <button name="account_invoice_accrual.act_account_move_accrue" string="Accrual" type="action" attrs="{'invisible': ['|','!',('state','in',['draft','proforma2']),('accrual_move_id','&lt;&gt;',False)]}" />
                    <button name="account_reversal.act_account_move_reverse" string="Reversal" type="action" attrs="{'invisible': ['|',('accrual_move_id','=',False),('to_be_reversed','=',False)]}" />
                </div>
                </field>
                </data>
            </field>
        </record>

    </data>
</openerp>

{'fraction_non_alphanumeric': 0.17680286198456036, 'fraction_numerical': 0.0033891922425155338, 'mean_word_length': 2.567494963062458, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 2, '>': 97, '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': '2005356', 'n_tokens_mistral': 1661, 'n_tokens_neox': 1592, 'n_words': 220}