Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

Can't find/remove "Register Payment" button on view in v7?

By
Test User
on 4/3/14, 8:57 PM 1,309 views

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?

1

Jagdish Panchal

--Jagdish Panchal--
2674
| 5 3 6
Gandhinagar, India
--Jagdish Panchal--

OpenERP Developer

Jagdish Panchal
On 4/4/14, 1:52 AM

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 4/3/14, 8:57 PM
Seen: 1309 times
Last updated: 3/16/15, 8:10 AM