Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
8290 มุมมอง

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
8830
Add Label up of form แก้ไขแล้ว
1
ธ.ค. 19
9219
2
พ.ย. 18
5225
1
เม.ย. 21
11698
0
พ.ค. 21
3568