Odoo Help


Custome module is not showing to users XML,CSV access rights issue

on 2/7/14, 3:13 AM 1,576 views

Hello Openerp Develpoers. I have created a custom module today, Its working fine when accesing from admin., But module menu is not appearing on top menu bar when accessing from non admin users. I created the access rights in security folder, I think I did some thing wrong in security xml and csv files, can somebody help me get out of this problem.

I listed my module files and code below. Check it Let me What I did wrong or What I missed out.

forum_view.xml, forum.py, __init__.py, __openerp__.py security/forum_nyros_security.xml security/ir.model.access.csv


 import forum


'name' : "Nyros Discussion Forum",  
'category' : "Test", 
'version' : "1.0", 
'depends' : ['base','mail'],
'author' : "Me",
'description' : """\
 module for managing trainings:
  - training courses
   - training sessions
 - attendees registration""", 
'data' : ['forum_view.xml',


import datetime
import time
import openerp
from openerp.osv import osv, fields

class Course(osv.osv):
_name = "forum.course"
_inherit = ['mail.thread', 'ir.needaction_mixin']
_columns = {
          'name' : fields.char(string="Question Title", size=256, required=True),
          'description' : fields.text(string="Question Description", required=True),
          'date_of_q_created': fields.datetime('Date of Created'),
          'category_question': fields.many2one('forum.categ', 'Question Category'),
          'create_uid': fields.many2one('res.users', 'Question Created By', readonly=True),

 class question_categ(osv.osv):
_description='category of Question'
   'name':fields.char('Create a Category type',size=100)



    <!--  search view -->

    <record id="forum_search" model="ir.ui.view">
        <field name="name">forum.search</field>
        <field name="model">forum.course</field>
        <field name="type">search</field>
        <field name="arch" type="xml">
            <search string="Question Answer Discussion Forum">
                   <field name="name"/>
                   <field name="description"/>
                   <field name="date_of_q_created"/>

    <!--  Tree View -->

    <record model="ir.ui.view" id="course_tree_view">
        <field name="name">forum.course.tree</field>
        <field name="model">forum.course</field>
        <field name="arch" type="xml">
            <tree string="Questions">
                <field name="name"/>
               <!-- <field name="description"/>-->
                <field name="date_of_q_created" />
                <field name="category_question"/>
                <field name="create_uid"/>

    <!--  Form View -->

    <record model="ir.ui.view" id="course_form_view">
        <field name="name">forum.course.form</field>
        <field name="model">forum.course</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Question and Answer" version = "v7">
                <group string="Question">
                <field name="name"/>
                <field name="description"/>
                <field name="date_of_q_created" />
                <field name="category_question"/>
                <field name="create_uid"/>
                <group string="Answers and Comments">
                <div class="oe_chatter">
                    <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
                    <field name="message_ids" widget="mail_thread"/>

    <!--  Action View -->

<record model="ir.actions.act_window" id="course_list_action">
    <field name="name">Questions form</field>
    <field name="res_model">forum.course</field>
            <field name="target">current</field>
    <field name="view_type">form</field>
    <field name="view_mode">tree,form</field>

    <!-- Menu Items -->

    <menuitem id="main_forum_menu" name="Manage forum" />
    <menuitem id="forum_menu" name="Discussion Forum" parent="main_forum_menu" />
    <menuitem id="courses_menu" name="Questions sidemenu" parent="forum_menu" action="course_list_action" />



<?xml version="1.0" encoding="utf-8"?>
<data noupdate="1">
<record id="group_forum_manager" model="res.groups">
        <field name="name">Forum Management/ Manager</field>
    <record id="group_forum_user" model="res.groups">
        <field name="name">Forum Management / User</field>



Give the right's of 'Forum Management / User' to other users. You can find it at Access Rights section of that user.

Hiral Patel (hip)
on 2/7/14, 9:11 AM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 2/7/14, 3:13 AM
Seen: 1576 times
Last updated: 3/16/15, 8:10 AM