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
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|  | 0 ago 23  | 3823 | ||
| 
            
                how to read field values using js
            
            
                    Resuelto
            
         |  | 1 may 25  | 8953 | |
|  | 0 abr 15  | 7311 | ||
|  | 0 nov 23  | 38 | ||
|  | 1 nov 23  | 2389 |