Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Security,View and Action in Odoo

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 317
    Comment on it

    In security,view and action use the following pattern :
    1-For a menu: _menu
    2-For a view: _view_, where view_type is kanban, form, tree, search,
    3-For an action: the main action respects _action. Others are suffixed with _ , where detail is a lowercase string briefly explaining the action. This is used only if multiple actions are declared for the model.
    For example code is below..
    views and menus

    </model_name></view_type>
    
    </model_name></model_name>
    
    <record id="model_name_menu" model="ir.ui.menu">
            ...
        </record>
    
        <record id="model_name_view_form" model="ir.ui.view">
            ...
        </record>
    
        <record id="model_name_view_kanban" model="ir.ui.view">
            ...
        </record>
    <!-- actions -->
        <record id="model_name_action" model="ir.actions.act_window">
            ...
        </record>
    
        <record id="model_name_action_child_list" model="ir.actions.act_window">
            ...
        </record>
    
        <!-- security -->
        <record id="model_name_group_user" model="res.groups">
            ...
        </record>
    
        <record id="model_name_rule_public" model="ir.rule">
            ...
        </record>
    
        <record id="model_name_rule_company" model="ir.rule">
            ...
        </record>
    

    Note-For a rule: _rule_ where concerned_group is the short name of the concerned group ('user' for the 'model_name_group_user', 'public' for public user, 'company' for multi-company rules,

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: