i have a custom view and i need return a custom view from javascript ! how to do it !
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
            
                1
                
                    Responder
                
            
        
        
            
                3589
                
                    Vistas
                
            
        
    Hi,
Try like below code.
$("#your button id").click(function(){
        self.do_action({
            name:'view name',
            type: 'ir.actions.act_window',
            res_model: 'model.name',
            view_mode: 'kanban',
            views: [[view_id, 'kanban']],
            domain: [['state', '=', 'pending']],
        })
        })in view_id, refer your corresponding models view id
Regards
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|  | 1 jun 21  | 4468 | ||
|  | 3 dic 23  | 3451 | ||
|  | 0 nov 23  | 2531 | ||
|  | 2 sept 23  | 9159 | ||
|  | 2 nov 20  | 12110 | 
