콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
736 화면

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,         

아바타
취소
베스트 답변

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


아바타
취소