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

I created a JavaScript file in CRM that displays a confirmation screen when the "Discard Changes" button at the top is pressed. Pressing "Confirm" works fine, but pressing "Cancel" does not restore the values that have already been entered or changed. How can I handle this part in Odoo 17 Community Edition?

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

Hello Kairoq

You can call the discard function when the user press cancel

this.model.root.discard();

You can use this module for refrence

https://apps.odoo.com/apps/modules/17.0/auto_save_restrict

If this helps please upvote my answer and mark it correct

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ส.ค. 25
157
2
พ.ค. 25
1346
1
เม.ย. 25
1270
0
มี.ค. 25
1385
0
มี.ค. 25
1302