← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 724823] Re: [6.0.1] Field / button 'attrs' not evaluated correctly with invisible

 

Hello Olivier Ligot,

I am agree with comment 1.
I have also same result like that.

Not able to reproduce.
I have checked in Firefox, Chrome both with TAB and ENTER even.

Please clear your cache. It may help you.
Thanks.

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

Title:
  [6.0.1] Field / button 'attrs' not evaluated correctly with invisible

Status in OpenERP Web Client:
  Invalid

Bug description:
  Field / button 'attrs' is not evaluated correctly with invisible when the search condition is on a many2one field.
  The GTK client does not have this issue.

  As an example, see module project_issue, in project_issue_view.xml:

  <button string="Convert To Task" name="convert_issue_task" icon="gtk-index" type="object" attrs="{'invisible':[('task_id','!=',False)]}" />
  <field name="progress" colspan="3" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}"/>

  1) Steps to reproduce the issue:
  - create a new database with demo data
  - install the module project_issue
  - go to Project -> Issues
  - edit the second item
  - focus the task_id (Task) field
  - type cust
  - select the item 'Customer doc'

  2) Result observed:
  The button 'Convert To Task' is still visible and the field 'progress' is still invisible

  3) Result expected:
  The button 'Convert To Task' becomes invisible and the field 'progress' becomes visible

  4) Web browsers:
  - Google Chrome 9.0.597.98
  - Mozilla Firefox 3.6.13
  Platform: Ubuntu 9.10

  5) Web client version: tag 6.0.1



References