Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
654 Vistas

In the tree view nothing happens if you click for instance on the new button or on records
this is the action:
    def res_partner_action_search_task(self):

        return {            "type": "ir.actions.act_window", 

           "name": "Look for a task",  

          "res_model": "project.task",     

       "view_mode": "tree",     

       "view_id": self.env.ref(                       

 "project.open_view_all_tasks_list_view"                   

 ).id,         

Avatar
Descartar
Mejor respuesta

Hi,

Update like this by adding form in view mode.


def res_partner_action_search_task(self):


        return {            "type": "ir.actions.act_window",


           "name": "Look for a task",  


          "res_model": "project.task",    


       "view_mode": "tree, form",    


       "view_id": self.env.ref(                      


"project.open_view_all_tasks_list_view"                  


).id,    


Hope it helps


Avatar
Descartar