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
Create an account today to enjoy exclusive features and engage with our awesome community!
РеєстраціяRelated Posts | Відповіді | Переглядів | Дія | |
---|---|---|---|---|
|
0
серп. 23
|
2164 | ||
how to read field values using js
Вирішено
|
|
1
трав. 25
|
7736 | |
|
0
квіт. 15
|
5957 | ||
|
0
лист. 23
|
38 | ||
|
1
лист. 23
|
1125 |