← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 660391] Re: Clients do not handle multiple conditions in attrs

 

** Description changed:

- It seems like, when you use multiple conditions in attrs. Example :
+ It seems like, when you use multiple conditions in attrs, only the first
+ condition will be used. Example :
  
  <button ...
  attrs="{'invisible':[('pay_now','!=','pay_now'),('state','!=','posted')]}"/>
  
- Only the first condition will be used. We verified that behavior in the GTK client, I think it is the same in web client but not sure.
+ It does not seem to understand operators either. We verified that behavior in the GTK client, I think it is the same in web client but not sure.
  The behavior should be the same as with domains (enabling complex conditions, with or, and, not,...).

-- 
Clients do not handle multiple conditions in attrs
https://bugs.launchpad.net/bugs/660391
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP OpenObject.

Status in OpenObject Addons Modules: New

Bug description:
It seems like, when you use multiple conditions in attrs, only the first condition will be used. Example :

<button ... attrs="{'invisible':[('pay_now','!=','pay_now'),('state','!=','posted')]}"/>

It does not seem to understand operators either. We verified that behavior in the GTK client, I think it is the same in web client but not sure.
The behavior should be the same as with domains (enabling complex conditions, with or, and, not,...).







References