attrs strange behavior in editable one2many

Bug #1172231 reported by Xavier Fernandez http://www.smile.fr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
New
Undecided
OpenERP Publisher's Warranty Team

Bug Description

Webclient 6.0 revno 4912

A test module (named attrs_bug) is provided to easily reproduce the bug.

With this king of view:

                        <tree editable="top">
                            <field name="float1" attrs="{'readonly': [('float1_required', '=', 0)], 'required': [('float1_required', '=', 1)]}"/>
                            <field name="float2" attrs="{'readonly': [('float2_required', '=', 0)], 'required': [('float2_required', '=', 1)]}"/>
                            <field name="float1_required"/>
                            <field name="float2_required"/>
                        </tree>

you observe strange behaviors when you check and uncheck float1_required and float2_required:

If you create a new line, float1 and 2 will be readonly (which is ok since both required fields are unchecked).
If you check required1, nothing happens, if you then check required2, float1 (!!) becomes required !

You can continue playing with the check box and quickly figure that something is wrong with attrs...

Tags: maintenance
Revision history for this message
Xavier Fernandez http://www.smile.fr (xav-fernandez) wrote :
Changed in openobject-client-web:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Revision history for this message
Xavier Fernandez http://www.smile.fr (xav-fernandez) wrote :

I could reproduce it with Chromium "Version 25.0.1364.160 Ubuntu 12.04" or Chrome "Version 26.0.1410.63".
but not with Firefox 20.

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.