<commit_before><?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright 2015-2020 Akretion France (http://www.akretion.com)
  @author <NAME> <<EMAIL>>
  License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->

<odoo>

<record id="view_account_journal_form" model="ir.ui.view">
    <field name="name">account_bank_statement_label_simple.journal.form</field>
    <field name="model">account.journal</field>
    <field name="inherit_id" ref="account.view_account_journal_form"/>
    <field name="arch" type="xml">
        <xpath expr="//field[@name='bank_statements_source']/.." position="after">
            <group name="bank_autocompletion" string="Bank Statement Line Auto-Completion">
                <field name="partner_autocompletion"/>
                <field name="invoice_number_autocompletion"/>
                <field name="statement_label_autocompletion"/>
                <!-- <field name="automate_entry" attrs="{'invisible': [('statement_label_autocompletion', '=', False)]}"/>  -->
            </group>
        </xpath>
    </field>
</record>

</odoo><commit_msg>Hide completion settings on journal view when type != 'bank'<commit_after><?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright 2015-2020 Akretion France (http://www.akretion.com)
  @author <NAME> <<EMAIL>>
  License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->

<odoo>

<record id="view_account_journal_form" model="ir.ui.view">
    <field name="name">account_bank_statement_label_simple.journal.form</field>
    <field name="model">account.journal</field>
    <field name="inherit_id" ref="account.view_account_journal_form"/>
    <field name="arch" type="xml">
        <xpath expr="//field[@name='bank_statements_source']/.." position="after">
            <group name="bank_autocompletion" string="Bank Statement Line Auto-Completion" attrs="{'invisible': [('type', '!=', 'bank')]}">
                <field name="partner_autocompletion"/>
                <field name="invoice_number_autocompletion"/>
                <field name="statement_label_autocompletion"/>
                <!-- <field name="automate_entry" attrs="{'invisible': [('statement_label_autocompletion', '=', False)]}"/>  -->
            </group>
        </xpath>
    </field>
</record>

</odoo>
{'fraction_non_alphanumeric': 0.18013245033112582, 'fraction_numerical': 0.011479028697571744, 'mean_word_length': 3.568548387096774, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 2, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '3020455', 'n_tokens_mistral': 721, 'n_tokens_neox': 697, 'n_words': 120}