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
    • 350
    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

    1. </model_name></view_type>
    2.  
    3. </model_name></model_name>
    4.  
    5. <record id="model_name_menu" model="ir.ui.menu">
    6. ...
    7. </record>
    8.  
    9. <record id="model_name_view_form" model="ir.ui.view">
    10. ...
    11. </record>
    12.  
    13. <record id="model_name_view_kanban" model="ir.ui.view">
    14. ...
    15. </record>
    16. <!-- actions -->
    17. <record id="model_name_action" model="ir.actions.act_window">
    18. ...
    19. </record>
    20.  
    21. <record id="model_name_action_child_list" model="ir.actions.act_window">
    22. ...
    23. </record>
    24.  
    25. <!-- security -->
    26. <record id="model_name_group_user" model="res.groups">
    27. ...
    28. </record>
    29.  
    30. <record id="model_name_rule_public" model="ir.rule">
    31. ...
    32. </record>
    33.  
    34. <record id="model_name_rule_company" model="ir.rule">
    35. ...
    36. </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
Reset Password
Fill out the form below and reset your password: