← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 670472] Re: `states` attribute is not handled on all widgets for which it is valid

 

** Description changed:

- In some wizards, the states attribute seems to be ignored.
+ Setting the states works on buttons, but according to .rng file it is
+ also a valid attribute on groups and fields.
  
- Here's an example :
+ This feature is already used in some views, but does not work in the web
+ client
  
- Go to Administration -> Modules -> Import module
+ Example:
  
- Two group of buttons are defined in the view, each group defines a
- state="xxx", so only one row should be displayed, but as you can see,
- both groups are displayed.
+ Go to Administration -> Modules -> Import Module
  
- Here's the view :
+ There are two rows of buttons, each in a group with a `states` attribute
+ correctly defined.
  
- <group colspan="8" col="8" states="init">
-     .... first buttons row ...
- </group>
- <group colspan="8" col="8" states="done">
-     .... second buttons row ...
- </group>
+ Expected:
+ As in the GTK client, we should only see one row of buttons (and one horizontal separator) at a time
+ 
+ Observed:
+ Both groups of buttons (and separators) are visible

** Changed in: openobject-client-web
   Importance: Undecided => High

** Changed in: openobject-client-web
       Status: New => Confirmed

** Changed in: openobject-client-web
     Assignee: (unassigned) => OpenERP SA's Web Client R&D (openerp-dev-web)

-- 
`states` attribute is not handled on all widgets for which it is valid
https://bugs.launchpad.net/bugs/670472
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Web Client: Confirmed

Bug description:
Setting the states works on buttons, but according to .rng file it is also a valid attribute on groups and fields.

This feature is already used in some views, but does not work in the web client

Example:

Go to Administration -> Modules -> Import Module

There are two rows of buttons, each in a group with a `states` attribute correctly defined.

Expected:
As in the GTK client, we should only see one row of buttons (and one horizontal separator) at a time

Observed:
Both groups of buttons (and separators) are visible






References