- 
        
                未分類
            
            
            
        
        
- [0] Introduction
- [1] Module Structure
- [2] Models & Fields
- [3] Data introduction
- [4] Introduction to Security
- [5] Actions & Menus
- [6] Basic Views
- [7] Relational Fields
- [8] Fields computation
- [9] Fields Onchange
- [10] Actions
- [11] Constraints
- [12] Inline Views
- [13] Widgets
- [14] Ordering
- [15] Advanced Views
- [16] Advanced searches
- [17] More buttons
- [18] Model Inheritance
- [19] View Inheritance
- 
        
                [END]
            
            
            
        
        
                
                    1.
                
                To apply a filter by default in a model, I need to:
            
        
                
                    
                    Add the attribute default=True in my filter in the search view
                
                
                    
                    Add the field default_search in the action and set it as: <field name="default_search">filter_name</field>
                
                
                    
                    Add the field context in the action and set it as: <field name="context">{"filter_name": True}</field>
                
                
                    
                    Add the field context in the action and set it as: <field name="context">{"search_default_filter_name": True}</field>
                
            
                
                
                
            
        
    
                
                    追加リソース
                
                
                    
    
                    
    このコースに参加 リソースにアクセスするため
                    
                