Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


The test module(custom module) application is not showing in the application tab after installation inside users(which is in the left side of the screen;top of the 'group') because of this access right for individual users can't be given in odoo.

on 12/6/15, 12:24 AM 452 views

I have two user groups: manager and user but I can't add access right for those individuals For better understanding see image: 

my code ::

1. code of _init_.py file

import testmod

2. code of _openerp_.py file


'name': "Test Module",

'description': "Basic example of a (future) web module",

'author': 'tm',

'depends': ['base_setup'],

'data': ['test_view.xml','security/test_security.xml','security/ir.model.access.csv'],

'installable': True,

'application': True,

'auto_install': True,


3. code of testmod.py file

from openerp import models, fields,api

class testmod_test(models.Model):

_name = 'testmod.test'

_description = 'Test Model'

test1 = fields.Char('members id', required=False )

test2 = fields.Char('members name', required=False)

4. code of module xml view test_view.xml file

<?xml version="1.0" encoding="utf-8"?>



<record id="testmod_test_form" model="ir.ui.view">

<field name="name">testmod.test.form</field>

<field name="model">testmod.test</field>

<field name="arch" type="xml">

<form string="Test" version="7.0">

<field name="test1" />

<field name="test2"/>




<record id="testmod_test_tree" model="ir.ui.view">

<field name="name">testmod.test.tree</field>

<field name="model">testmod.test</field>

<field name="arch" type="xml">

<tree string="Test">

<field name="test1" />

<field name="test2"/>




<record model="ir.actions.act_window" id="action_testmod_test">

<field name="name">Test</field>

<field name="res_model">testmod.test</field>

<field name="view_type">form</field>

<field name="view_mode">tree,form</field>







name="Test sub"





name="Sub Test"







5. ir.model.access.csv file in security folder under test_module




6. test_security.xml file inside security folder under test_module

<?xml version="1.0" encoding="utf-8"?>


<data noupdate="0">

<record model="ir.module.category" id="module_category_name_test">

<field name="name">Management</field>

<field name="sequence">7</field>


<record id="group_name_test_user" model="testmod.test">

<field name="name">User</field>

<field name="category_id" ref="model_testmod_test"/>

<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>


<record id="group_name_test_manager" model="testmod.test">

<field name="name">Manager</field>

<field name="category_id" ref="model_testmod_test"/>

<field name="implied_ids" eval="[(4, ref('group_name_test_user'))]"/>

<field name="users" eval="[(4, ref('base.user_root'))]"/>




Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 12/6/15, 12:24 AM
Seen: 452 times
Last updated: 12/6/15, 4:36 AM