Hi,
For example, when you have some required fields in a view and you try to save without filling them, you get that nice popup on the top right corner saying "The following fields are invalid".
How could I display such a thing in my modules?
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
For example, when you have some required fields in a view and you try to save without filling them, you get that nice popup on the top right corner saying "The following fields are invalid".
How could I display such a thing in my modules?
Thanks
In fact, I was wondering if it's possible to use it for other purposes than check required fields. For example, I have a python function performing a check on the values entered, and I'd like to use this kind of popup instead of the usual messagebox. What interests me in this popup is that it doesn't take the focus and oblige the user to click ok before doing something else.
okay, sorry I not have idea. but this popup take the focus just tap Enter (I have tested it with chrome and firefox).
just add required in your field
example :
'name': fields.char("Name ",size=128,required=True),
and this popup is automatically displayed.
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
1
wrz 23
|
9950 | |||
|
2
lip 25
|
2377 | |||
|
How to make pop ups after actions?
Rozwiązane
|
2
lip 25
|
9681 | ||
|
1
maj 25
|
1752 | |||
|
2
maj 25
|
2388 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.