Adding default filter on tree view - OpenErp Custom module

后端 未结 2 447
梦谈多话
梦谈多话 2021-02-06 20:05

I need to add a default filter, for the tree view of my module.

I saw some code example in openerp, like this one:



        
2条回答
  •  梦谈多话
    2021-02-06 20:21

    Ethan

    This is how i solved it, without your advice it wouldn't be possible:

    
    solvencia.solvencia.select
    solvencia.solvencia
    
        
            
            
            
            
            
                
                
                
            
        
    
    

    And the context in act_window:

    
        Solvencias
        solvencia.solvencia
        form
        {"search_default_type_date":1}
        tree,form
        
            
            
            
            
            
            
            
            
    
    

    Works perfectly, thank you very much!

提交回复
热议问题