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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Бухоблік
- Склад
- PoS
- Project
- MRP
Це запитання позначене
1
Відповісти
754
Переглядів
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
РеєстраціяRelated Posts | Відповіді | Переглядів | Дія | |
---|---|---|---|---|
|
2
трав. 25
|
1304 | ||
|
1
квіт. 25
|
1227 | ||
|
0
бер. 25
|
1370 | ||
|
0
бер. 25
|
1260 | ||
|
0
січ. 25
|
10 |