Odoo Help


got stuck with groups on buttons

on 6/18/13, 7:44 AM 975 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 id="group_logbook_bigboss" model="res.groups">
      <field name="name">BigBoss</field>
      <field name="category_id" ref="logbook_groups"/>
   <record id="group_logbook_certifier" model="res.groups">
        <field name="name">Certifier</field>
        <field name="category_id" ref="logbook_groups"/>
    <record id="group_logbook_manager" model="res.groups">
      <field name="name">Manager</field>
      <field name="category_id" ref="logbook_groups"/>
   <record id="group_logbook_user" model="res.groups">
      <field name="name">User</field>
      <field name="category_id" ref="logbook_groups"/>

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">
                  <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"}'/>

... 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

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.


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

0 follower(s)


Asked: 6/18/13, 7:44 AM
Seen: 975 times
Last updated: 3/16/15, 8:10 AM