This question has been flagged
2373 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

Avatar
Discard