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

got stuck with groups on buttons

By
Christian
on 6/18/13, 7:44 AM 584 views

Hello, I have a module which worked fine on V5. In V7 I have a problem with buttons assosiated with groups. These are my originals logbook_security.xml:

 <record model="ir.module.category" id="logbook_groups">
      <field name="name">Logbook Groups</field>
      <field name="sequence">10</field>
   </record>
   <record id="group_logbook_bigboss" model="res.groups">
      <field name="name">BigBoss</field>
      <field name="category_id" ref="logbook_groups"/>
   </record>
   <record id="group_logbook_certifier" model="res.groups">
        <field name="name">Certifier</field>
        <field name="category_id" ref="logbook_groups"/>
    </record>
    <record id="group_logbook_manager" model="res.groups">
      <field name="name">Manager</field>
      <field name="category_id" ref="logbook_groups"/>
   </record>
   <record id="group_logbook_user" model="res.groups">
      <field name="name">User</field>
      <field name="category_id" ref="logbook_groups"/>
   </record>

extract from form view

 <record id="view_logbook_cubelog_form" model="ir.ui.view">
      <field name="name">logbook.cubelog.form</field>
      <field name="model">logbook.logbook</field>
      <field name="type">form</field>
      <field name="arch" type="xml">
         <form version="7.0" string="Cube Crushing">
            <header>
                  <button name="set_done" string="tested" states="open" type="object" icon="gtk-cancle"/>
                  <button name="set_certified" string="certify" states="done,tested" confirm="Are you sure? After this it will not be possible to alter/correct certain fields" type="object" groups="logbook_groups.group_logbook_certifier" icon="gtk-past-v"/>
                  <button name="set_invalid" string="invalidate" states="certified" type="object" groups="logbook_groups.group_logbook_certifier" icon="gtk-cancle"/>
                  <button name="set_uncertify" string="uncertify" type="object" groups="logbook_groups.group_logbook_bigboss" icon="gtk-cancle"/>
                  <button name="print_cube_crushing_certificate" string="Print" states="certified" type="object" icon="gtk-print"/>
                  <field name="state" widget="statusbar" statusbar_visible="open,tested,certified" statusbar_colors='{"tested":"blue","certified":"green","invalid":"red"}'/>
            </header>

... All buttons that have a group don't show up. There is also no error message in the log file. I guess that the referencing of the group or the definition of the group is wrong. Maybe someone can help and shed some light on this.

Thanks, Chris

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: 6/18/13, 7:44 AM
Seen: 584 times
Last updated: 3/16/15, 8:10 AM