← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 891703] [NEW] multiple attrs not evaluated correctly with web client

 

Public bug reported:

Hello,

When multiple attrs conditions are set in one display, the web client only take the first attrs condition into account.
Which is not the case with the GTK client.

In the following example there are 3 attrs conditions. The first one is
the only one working.

1) Code example for the addon idea with 'type'='good_idea':

<group col="4" colspan="4" attrs="{'invisible':[('type','!=','good_idea')]}">
   <field name="name" attrs="{'required':[('type','=','good_idea')]}"/>
   <field name="parent_id" attrs="{'required':[('type','=','good_idea')]}"/>
</group>

2) Result expected: Result with the GTK

name and parent_id are visible ; name and parent_id ARE required

3) Result observed: with the web client

name and parent_id are visible  ;name and parent_id ARE NOT required

4) Config:
Platform: Ubuntu 10.4
Browser: Google Chrome 15.0.874.106
postgresql 8.4
server 6.0.3
Web client version 6.0.3
client gtk 6.0.3

** Affects: openobject-client
     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/891703

Title:
  multiple attrs not evaluated correctly with web client

Status in OpenERP GTK Client:
  New

Bug description:
  Hello,

  When multiple attrs conditions are set in one display, the web client only take the first attrs condition into account.
  Which is not the case with the GTK client.

  In the following example there are 3 attrs conditions. The first one
  is the only one working.

  1) Code example for the addon idea with 'type'='good_idea':

  <group col="4" colspan="4" attrs="{'invisible':[('type','!=','good_idea')]}">
     <field name="name" attrs="{'required':[('type','=','good_idea')]}"/>
     <field name="parent_id" attrs="{'required':[('type','=','good_idea')]}"/>
  </group>

  2) Result expected: Result with the GTK

  name and parent_id are visible ; name and parent_id ARE required

  3) Result observed: with the web client

  name and parent_id are visible  ;name and parent_id ARE NOT required

  4) Config:
  Platform: Ubuntu 10.4
  Browser: Google Chrome 15.0.874.106
  postgresql 8.4
  server 6.0.3
  Web client version 6.0.3
  client gtk 6.0.3

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client/+bug/891703/+subscriptions


Follow ups

References