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.

0

Hide a field using a new group

By
Davide
on 7/18/14, 9:46 AM 490 views

I create a new group "testgroup" with only one member "testuser".

Now from the "new leave request" view I try to hide a field:

<field name="number_of_days_temp" class="oe_inline" groups="base.testgroup"/>

But it is not working.

What should I write instead of groups="base.testgroup"?

If I use a standard group like groups="base.group_hr_manager" everything is working fine. The problem is only with the groups I create.

0

deep

--deep--
1617
| 5 4 7
Bengaluru, India
--deep--

Techno-Functional Associate with 6+ years of experience in Odoo (formerly known as OpenERP).

deep
On 7/18/14, 10:17 AM

Hi....

Syntax is not correct, you should specify groups in this manner "module.group_name"

For instance:

groups="base.group_hr_manager"  ==> means 'group_hr_manager' is present in module 'base'

like wise for "testgroup", it should be "your_module.testgroup" instead of "base.testgroup"

 

 

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: 7/18/14, 9:46 AM
Seen: 490 times
Last updated: 3/16/15, 8:10 AM