Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
8346 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Anybody found any specific solution for the original question

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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"

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 22
8882
1
thg 12 19
9317
2
thg 11 18
5294
1
thg 4 21
11759
0
thg 5 21
3626