Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
8235 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

Anybody found any specific solution for the original question

Awatar
Odrzuć
Najlepsza odpowiedź

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"

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
gru 22
8780
1
gru 19
9152
2
lis 18
5187
1
kwi 21
11636
0
maj 21
3515