← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

The problem actually occurs before saving the form. When editing a form,
you change a value (here the Task), and you except the progress field to
become visible, even before saving the form. This works with the GTK
client but not with the web client.

-- 
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