Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
8267 Представления

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.

Аватар
Отменить
Лучший ответ

Anybody found any specific solution for the original question

Аватар
Отменить
Лучший ответ

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"

Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
дек. 22
8797
1
дек. 19
9180
2
нояб. 18
5201
1
апр. 21
11654
0
мая 21
3548