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

Odoo V16

Model: purchase.order

"Create Bill" to be changed to "Certify Bill" without altering its actions and linking to other models.

아바타
취소
베스트 답변

Hi,

If you are doing it from a custom module, inherit the corresponding form view, and you can change the value of string attribute of the button with name action_create_invoice

1. Inherit the view: purchase.purchase_order_form in custom module

2. Using xpath, change the string of button  action_create_invoice


Sample:


Certify Billattribute>
xpath>

Certify Billattribute>
xpath>


 In the given code, some xml tags are missing due to issue in the code editor, please correct the syntax before you try the above code


Thanks

아바타
취소

This solution will not work. I have already implemented the code. I was thinking the same way, but now need to think of some other solution.

as there is multiple buttons with the same name, we just need to alter the xpath correctly using position [1] [2]

베스트 답변

Hi, 
You can create another button with the same name. You can provide any value to the string like string="Certify Bill". Now make the earlier button with a string value as 'Create Bill' invisible using XPath and position="attributes".

아바타
취소
관련 게시물 답글 화면 활동
1
3월 21
4655
3
3월 15
9734
2
10월 20
5893
2
10월 20
4138
1
6월 20
2609