Odoo Help

1

My Menu didnt See

By
Abin C I
on 1/20/15, 12:14 AM 685 views

Friends,

I add a menu "password" and a screen in Projects as follows

      <record id="view_password" model="ir.ui.view">
            <field name="name">project.password.form</field>
            <field name="model">project.password</field>
            <field name="arch" type="xml">
                <form string="Password">
                  <group>
                      <field name="name"/>
                      <field name="company_name"/>
                      <field name="password1"/>
                      <field name="password2"/>
                      <field name="password3"/>  
                  </group>                 
                             
           <notebook>

                 <page string="Viewers">

                       <kanban quick_create="false" create="true" delete="true">
                                    <templates>
                                        <t t-name="kanban-box">
                                            <div style="position: relative">
                                                <a t-if="! read_only_mode" type="delete" style="position: absolute; right: 0; padding: 4px; diplay: inline-block">X</a>
                                                <div class="oe_module_vignette">
                                                    <img t-att-src="kanban_image('res.users', 'image_small', record.id.value)" class="oe_avatar oe_kanban_avatar_smallbox"/>
                                                    <div class="oe_module_desc">
                                                        <field name="viewed_by1"/>
                                                        <field name="viewed_by2"/>
                                                        <field name="viewed_by3"/>
                                                        <field name="viewed_by4"/>
                                                    </div>
                                                </div>
                                            </div>
                                        </t>
                                    </templates>
                                </kanban>
              </page>
           </notebook>
                  
                </form>
            </field>     
       </record>

        <record id="project_password_action" model="ir.actions.act_window">
            <field name="name">Password</field>
            <field name="res_model">project.password</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>           
        </record>
        
        <menuitem action="project_password_action" id="menu_passwords" name="Password" parent="menu_project_management" groups="group_project_manager,group_project_user"/>
        

But i cant see the menu while im a user in the group "group_project_user"

Thanks

2
  • Try giving access rights on the 'model' -->  project.password

Hope this helps !!.

Great,,, It works... Give u 1 vote & marked as correct...

Abin C I
on 1/20/15, 12:29 AM

You’re welcome @abin

Emipro Technologies Pvt. Ltd.
on 1/20/15, 12:34 AM
0
Anand
On 1/20/15, 12:30 AM

yes,,, this is security in odoo....

the stable approach i will guide is ir.model.access.csv,

Go to settings-->users-->groups

In that chose all the groups for whom you should give access... click export ... window appears in that select name and add then click export to file ...

now a file will be generated modify it same as some eg ir.model.access.csv files then add it in __openerp__.py file then update & upgrade.....

see this link

For what i export it..

Abin C I
on 1/20/15, 12:32 AM

to get a csv file u should export it...

Anand
on 1/20/15, 12:41 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.

Register

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

1 follower(s)

Stats

Asked: 1/20/15, 12:14 AM
Seen: 685 times
Last updated: 3/16/15, 8:10 AM