I need a JavaScript example / method to reload point_of_sale if POS session state is closed.
For example, if (this.env.pos.pos_session.state == 'closed')
reload()
any help will be greatly appreciated.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I need a JavaScript example / method to reload point_of_sale if POS session state is closed.
For example, if (this.env.pos.pos_session.state == 'closed')
reload()
any help will be greatly appreciated.
Hi,
Try this
if (this.env.pos.pos_session.state === 'closed') {
window.location.reload();
}
Hope it helps
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ść | |
|---|---|---|---|---|
|
0
sie 23
|
4048 | |||
|
how to read field values using js
Rozwiązane
|
1
maj 25
|
9064 | ||
|
0
kwi 15
|
7487 | |||
|
0
lis 23
|
38 | |||
|
1
lis 23
|
2557 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.