콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
8400 화면

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
8947
1
12월 19
9382
2
11월 18
5367
1
4월 21
11812
0
5월 21
3680