تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
8264 أدوات العرض

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
ديسمبر 22
8797
1
ديسمبر 19
9177
2
نوفمبر 18
5200
1
أبريل 21
11653
0
مايو 21
3547