Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
8300 Visninger

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
Kassér
Bedste svar

Anybody found any specific solution for the original question

Avatar
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
dec. 22
8833
1
dec. 19
9230
2
nov. 18
5231
1
apr. 21
11704
0
maj 21
3584