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

        <record id="view_order_form_acquirer" model="ir.ui.view">
            <field name="name">sale.order.form.acquirer</field>
            <field name="model">sale.order</field>
            <field name="inherit_id" ref="sale.view_order_form"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='amount_total']" position="after">
                    <field name="payment_acquirer_id"/>
                    <field name="payment_tx_id"/>
                </xpath>
            </field>
        </record>

    </data>
</openerp>
<commit_msg>[IMP] website: sale_order: display acquirer only when set. The purpose is to avoid maanging it from the sale order view; the website will set the acquirer for ecommerce related orders. This way the acquirer and tx will be displayed on the sale order linked to ecommerce sales, and not on other orders.<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="view_order_form_acquirer" model="ir.ui.view">
            <field name="name">sale.order.form.acquirer</field>
            <field name="model">sale.order</field>
            <field name="inherit_id" ref="sale.view_order_form"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='amount_total']" position="after">
                    <field name="payment_acquirer_id" attrs="{'invisible': [('payment_acquirer_id', '=', False)]}"/>
                    <field name="payment_tx_id" attrs="{'invisible': [('payment_acquirer_id', '=', False)]}"/>
                </xpath>
            </field>
        </record>

    </data>
</openerp>

{'fraction_non_alphanumeric': 0.156140350877193, 'fraction_numerical': 0.0035087719298245615, 'mean_word_length': 2.557172557172557, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 2, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1546484', 'n_tokens_mistral': 531, 'n_tokens_neox': 510, 'n_words': 117}