Odoo Help

Welcome!

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.

1

How to add a new group for an Application - Odoo 8

By
Alejandro Perez Cosio
on 1/20/15, 7:49 AM 3,177 views

Hello,

I would want to add a new group for an application in Odoo 8. 

E.g.:
Add the group "New sales group" to "Sale" application.
I did it from the Groups menu, but after save the new group, I can't see anymore the line with Sales options at the User menu. I'm not sure if this is a bug or if there is a workaround. I'm also tried to do it from code with the same results. 

So, the question: Is there a workaround to have another custom group for an application?

Update (23/01/2015):
E.g. This is the code which doesn't work. Added at addons/sale/security/sale_security.xml:

    <!-- New group -->
    <record id="base.group_sale_salesman_new_sales_group" model="res.groups">
        <field name="name">New Sales Group</field>
        <field name="category_id" ref="base.module_category_sales_management"/>
        <field name="implied_ids" eval="[(4, ref('base.group_sale_salesman'))]"/>
    </record>

    <!-- This is the default manager group for Sale application-->
    <record id="base.group_sale_manager" model="res.groups">
        <field name="name">Manager</field>
        <field name="comment">the user will have an access to the sales configuration as well as statistic reports.</field>
        <field name="category_id" ref="base.module_category_sales_management"/>
        <field name="implied_ids" eval="[(4, ref('base.group_sale_salesman_all_leads'))]"/>
        <field name="users" eval="[(4, ref('base.user_root'))]"/>
    </record>

Thank you in advance.

Regards.
Alejandro

2

Hardikgiri Goswami

--Hardikgiri Goswami--
1123
| 2 1 5
Rajkot, India
--Hardikgiri Goswami--

OpenERP/Odoo Customization/Integration Expert / Python Programmer

Skype ID : hardikgiri.goswami

Hardikgiri Goswami
On 1/21/15, 3:24 AM

Hello Alejandro,

This is not the proper way to get your group under the "Application" Title.

Your newly created group is under the "Sales" Title.

It is just a configuration part. The demo is required for the same. If you want the demo you can contact me.

 

 

Hello Hardikgiri, I would want to watch that demo code, also, please watch my updated question.

Alejandro Perez Cosio
on 1/23/15, 8:15 AM
1
Demirel yakito
On 1/21/15, 2:51 AM

<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record model="ir.module.category" id="module_category_openacademy">
            <field name="name">open Academy</field>
            <field name="description">Helps you manage</field>
            <field name="sequence">5</field>
        </record>
        
        <record id="addition_id_test" model="res.groups">
            <field name="name">OpenAcademy/Manager</field>
            <field name="category_id" ref="module_category_openacademy"></field>
        </record>
 
    </data>
</openerp>

 

this code create group in code xml.

http://toolkt.com/site/security-in-openerp/

Hello Ramanan, I tried that for my case, but I'm getting the same error wrong behavior.. (please watch my updated question)

Alejandro Perez Cosio
on 1/23/15, 8:13 AM

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)

Stats

Asked: 1/20/15, 7:49 AM
Seen: 3177 times
Last updated: 5/28/15, 2:13 PM