<commit_before><?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2018 ACSONE SA/NV
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->

<odoo>

    <record model="ir.ui.view" id="account_payment_line_form_view">
        <field name="name">account.payment.line.form (account_cash_discount_payment)</field>
        <field name="model">account.payment.line</field>
        <field name="inherit_id" ref="account_payment_order.account_payment_line_form"/>
        <field name="arch" type="xml">

            <field name="date" position="after">
                <field name="toggle_pay_with_discount_allowed" invisible="1"/>
                <field name="pay_with_discount_allowed" invisible="1"/>
                <field name="pay_with_discount" attrs="{'invisible': [('pay_with_discount_allowed', '=', False)]}"/>
                <field name="discount_due_date" attrs="{'invisible': [('pay_with_discount_allowed', '=', False)]}"/>
                <field name="discount_amount" attrs="{'invisible': [('pay_with_discount_allowed', '=', False)]}"/>
            </field>

        </field>
    </record>

    <record model="ir.ui.view" id="account_payment_line_tree_view">
        <field name="name">account.payment.line.tree (account_cash_discount_payment)</field>
        <field name="model">account.payment.line</field>
        <field name="inherit_id" ref="account_payment_order.account_payment_line_tree"/>
        <field name="arch" type="xml">

            <field name="ml_maturity_date" position="after">
                <field name="discount_due_date"/>
            </field>

            <field name="amount_currency" position="after">
                <field name="pay_with_discount"/>
                <field name="pay_with_discount_allowed"/>
                <field name="toggle_pay_with_discount_allowed"/><commit_msg>[FIX] hide discount information if the linked invoice has no discount<commit_after><?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2018 <NAME>
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->

<odoo>

    <record model="ir.ui.view" id="account_payment_line_form_view">
        <field name="name">account.payment.line.form (account_cash_discount_payment)</field>
        <field name="model">account.payment.line</field>
        <field name="inherit_id" ref="account_payment_order.account_payment_line_form"/>
        <field name="arch" type="xml">

            <field name="date" position="after">
                <field name="toggle_pay_with_discount_allowed" invisible="1"/>
                <field name="pay_with_discount_allowed" invisible="1"/>
                <field name="pay_with_discount" attrs="{'invisible': [('pay_with_discount_allowed', '=', False)]}"/>
                <field name="discount_due_date" attrs="{'invisible': [('pay_with_discount_allowed', '=', False)]}"/>
                <field name="discount_amount" attrs="{'invisible': [('pay_with_discount_allowed', '=', False)]}"/>
            </field>

        </field>
    </record>

    <record model="ir.ui.view" id="account_payment_line_tree_view">
        <field name="name">account.payment.line.tree (account_cash_discount_payment)</field>
        <field name="model">account.payment.line</field>
        <field name="inherit_id" ref="account_payment_order.account_payment_line_tree"/>
        <field name="arch" type="xml">

            <field name="ml_maturity_date" position="after">
                <field name="discount_due_date"/>
            </field>

            <field name="amount_currency" position="after">
                <field name="pay_with_discount_allowed" invisible="1"/>
                <field name="toggle_pay_with_discount_allowed" invisible="1"/>
                <field name="pay_with_discount" attrs="{'invisible': [('pay_with_discount_allowed', '=', False)]}"/>
{'fraction_non_alphanumeric': 0.1599163835902796, 'fraction_numerical': 0.006271230729030572, 'mean_word_length': 3.2962962962962963, 'pattern_counts': {'":': 0, '<': 70, '<?xml version=': 2, '>': 70, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '979047', 'n_tokens_mistral': 1173, 'n_tokens_neox': 1134, 'n_words': 179}