Odoo Help

0

Rename the edit button for a specific model

By
Muschang Anthony
on 8/6/14, 10:23 AM 1,167 views

Hello,

How the edit button in a form view can be renamed for a specific model only and not be altered for the other model?

i.e: When opening the form view of a res.partner, change the edit label to "Edit the contact information". And still have the label "Edit" for the other models.

Thanks.

0
odoo.ma by IBS Group
On 8/10/14, 2:00 PM

The template for that button is in web/static/src/xml/base.xml

You will have to create a new module that inherits the FormView buttons template and adds more code to it so that it does what you need it to do.

The template name is t-name="FormView.buttons"

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 8/6/14, 10:23 AM
Seen: 1167 times
Last updated: 3/16/15, 8:10 AM