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
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
0
8月 23
|
2743 | ||
|
1
5月 25
|
8064 | ||
|
0
4月 15
|
6311 | ||
|
0
11月 23
|
38 | ||
|
1
11月 23
|
1442 |