[trunk/7.0]Invisible button task condigution: ('use_tasks','=', 0)

Bug #1132507 reported by Damián Soriano
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Fix Committed
Low
OpenERP R&D Web Team

Bug Description

In OpenERP 7.0, in the module project, file project_view.xml, at line 96 (http://bazaar.launchpad.net/~openerp/openobject-addons/7.0/view/head:/project/project_view.xml#L96) there is the following button definition:

<button name="%(act_project_project_2_project_task_all)d" string="Tasks"
                type="action" attrs="{'invisible':[('use_tasks','=', 0)]}"/>

The invisible attribute does not work, since the condition is poorly written. Instead of [('use_tasks','=', 0)] the condition should be: [('use_tasks','=', False)].

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → Low
status: New → Confirmed
summary: - Invisible button task condigution: ('use_tasks','=', 0)
+ [trunk/7.0]Invisible button task condigution: ('use_tasks','=', 0)
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Yogesh Parekh(OpenERP) (yogesh.parekh-openerp) wrote :

Hello Damián Soriano,

  Thanks for contributing.

  It has been fixed in https://code.launchpad.net/~openerp-community/openobject-addons/trunk-bug-1132507-yogesh branch.
  Revision Num : 8583
  Revision ID: <email address hidden>

  It will be available in trunk soon !

Thanks,
Yogesh.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Mohammed Shekha(Open ERP) (msh-openerp) wrote :

Hello,

It seems rather an issue of Web-Client as Web-Client fials to compare domain(0 == false), because of isEqual method in compute_domain of view_form.js, isEqual makes deep comparison of object, just check in developer console 0==false it will return true.

Same thing works in 6.0 and 6.1 Web-Client.

Thanks.

affects: openobject-addons → openerp-web
Changed in openerp-web:
status: Fix Committed → New
Revision history for this message
Amit Parik (amit-parik) wrote :

According to comment#2 by msh, I am assigning this to web team.

Thank you!

Changed in openerp-web:
assignee: OpenERP R&D Addons Team 1 (openerp-dev-addons1) → OpenERP R&D Web Team (openerp-dev-web)
status: New → Confirmed
Revision history for this message
Nimesh Contractor(Open ERP) (nco-openerp) wrote :

Hello,

  It has been fix commited in https://code.launchpad.net/~openerp-dev/openerp-web/7.0-opw-586613-msh branch.

Thanks.

Changed in openerp-web:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.