跳至内容
菜单
此问题已终结
2 回复
8291 查看

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"

形象
丢弃
相关帖文 回复 查看 活动
2
12月 22
8830
1
12月 19
9220
2
11月 18
5225
1
4月 21
11698
0
5月 21
3568