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

Create new group and use in a button

By
Juan Carlos Falcón
on 12/31/13, 6:01 AM 1,129 views

Hi

I'm try creating a group for use in a button.

<button string="Validar director" name="validate_director" attrs="{'invisible':[('inz_state','!=','inz_validate_director')]}" type="workflow" groups="base.group_hr_Director" class="oe_highlight"/>

Group name is "Director" in "Human Resource". I assigned one employee to group but the button don't view in the form. Any idea?.

Regards

0
Davide
On 7/18/14, 9:26 AM

I have the same problem. Have you found any solution?

0
Juan Carlos Falcón
On 12/31/13, 8:25 AM

Hi,

I needed have a file in directoy security with this content.

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="0">
    <record id="inz_rh_dias_festivos.group_director" model="res.groups">
        <field name="name">Director</field>
        <field name="category_id" ref="base.module_category_human_resources"/>
        <field name="comment">Usuarios directores de la organización para validar partes de vacaciones</field>
    </record>
    </data>   
</openerp>

Regards

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

0 follower(s)

Stats

Asked: 12/31/13, 6:01 AM
Seen: 1129 times
Last updated: 3/16/15, 8:10 AM