Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
8356 Visualizações

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
Cancelar
Melhor resposta

Anybody found any specific solution for the original question

Avatar
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
dez. 22
8893
1
dez. 19
9326
2
nov. 18
5313
1
abr. 21
11770
0
mai. 21
3628