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
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
0
Agu 23
|
4042 | |||
|
how to read field values using js
Diselesaikan
|
1
Mei 25
|
9055 | ||
|
0
Apr 15
|
7483 | |||
|
0
Nov 23
|
38 | |||
|
1
Nov 23
|
2555 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.