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

I want to hide Send&Print in invoice after first click.

https://imgur.com/a/dIENr8O


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

Give one Boolean field 

field_name = fields.Boolean('Hide Button')

and add in the form view also and make invisible.

Then on that button function pass that field_name value as True.

In the form view of that button add the attrs condition for invisible as field_name as True

Then it will hide after first clcik

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

sorry i don’t understand programming.

would be nice if you can provide me copy and paste text