Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
8229 Tampilan

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.

Avatar
Buang
Jawaban Terbai

Anybody found any specific solution for the original question

Avatar
Buang
Jawaban Terbai

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"

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Des 22
8770
1
Des 19
9150
2
Nov 18
5185
1
Apr 21
11631
0
Mei 21
3513