Public bug reported:

I have a button that should not be shown when a certain attribute is
unchecked. I put it in a group like this:

                 <group attrs="{'invisible':[('close_allowed','=', False)]}">
                 <button name="set_closed" string="Close" 
                         icon="gtk-ok" type="object" states="open,pending" />
                 </group>

When the form is in EDIT mode, the group is hidden, when
(boolean=checkbox) field close_allowed is False. However in READ mode,
the button is shown regardless.

** Affects: openerp-web
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/903227

Title:
  Dynamic attributes not working for checkbox fields

Status in OpenERP Web:
  New

Bug description:
  I have a button that should not be shown when a certain attribute is
  unchecked. I put it in a group like this:

                   <group attrs="{'invisible':[('close_allowed','=', False)]}">
                   <button name="set_closed" string="Close" 
                           icon="gtk-ok" type="object" states="open,pending" />
                   </group>

  When the form is in EDIT mode, the group is hidden, when
  (boolean=checkbox) field close_allowed is False. However in READ mode,
  the button is shown regardless.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-web/+bug/903227/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to