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

Hi,good day!. 


I just want to ask how i can automatically change the string of a button after i clicked it on form view. 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Am not sure if that is possible. 
One quick hack.. we could achieve this with an extra boolean field (say B). 

You could have 2 buttons(say 1&2) in the view pointing to the same function but with different string value in xml. Once clicked, change that boolean field to True. 

so in view, you could write like 
1--> visible when B is False
2--> visible when B is True

Until you find proper  solution, you could use like this.

อวตาร
ละทิ้ง
ผู้เขียน

Yes, i did that already. Thanks🙂

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 17
16063
1
พ.ย. 24
20016
How to install odoo 10 in ubuntu 20.04? แก้ไขแล้ว
1
ก.ย. 23
2891
3
พ.ค. 23
5482
7
เม.ย. 23
48802