Skip to Content
Menu
This question has been flagged
2 Replies
8317 Rodiniai

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.

Portretas
Atmesti
Best Answer

Anybody found any specific solution for the original question

Portretas
Atmesti
Best Answer

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"

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
gruod. 22
8839
1
gruod. 19
9268
2
lapkr. 18
5241
1
bal. 21
11719
0
geg. 21
3608