Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4872 Weergaven

I want to remove the option and button "Register Payment" from all invoices but I can't find the view I need to alter.

I want to force accounts to use the Customer Payments and Supplier Payments instead of directly using the Register Payment on the invoices.

So where can I find the place to remove this button?

Avatar
Annuleer
Beste antwoord

Hi

    <record id="view_invoice_customer_1" model="ir.ui.view">
        <field name="name">account.invoice.customer.test</field>
        <field name="model">account.invoice</field>
        <field name="inherit_id" ref="account_voucher.view_invoice_customer"/>
        <field name="arch" type="xml">
            <xpath expr="//button[@name='invoice_pay_customer']" position="replace">
                <button name="invoice_pay_customer" type="object" string="Register Payment"
                    attrs="{'invisible': ['|', ('state','!=','open'), ('sent','=',True)]}" groups="base.group_user" invisible="1"/>

            </xpath>
        </field>
    </record>

hope this will help you

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
mrt. 25
684
1
mrt. 23
4354
1
okt. 22
10724
7
jan. 22
17821
1
jan. 24
14401