Web client working improperly in IE8 (onchange with checkboxes, different layout)

Bug #613815 reported by jerzyo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Invalid
Undecided
Unassigned

Bug Description

I made a module with excluding checkboxes. I want 3 checkboxes that that are exclusive. IE clicking on one sets False on others:

I creted 3 boolean bields with 3 methods (described below).
Everything looks ok and works ok in Firefox 3.5.9
But in IE8 the onchange methods don't set the values properly. The change takes place only when someone clicks somehere outside the form (or on another button/field), not when the checkbox is clicked. I gess that some "refresh" is not set

Attached are 2 videos showing differences between IE and Firefox.

onchange code:
---------------------
    def onchange_platnik_trzecia(self, cr, uid, ids, platnik_trzecia,platnik_nadawca,platnik_odbiorca):
        n_platnik_nadawca=False
        n_platnik_odbiorca=False
        if platnik_trzecia==True:
            n_platnik_nadawca=False
            n_platnik_odbiorca=False
            #n_platnik_trzecia=platnik_trzecia
        else:
            n_platnik_nadawca=True
            n_platnik_odbiorca=False
            #n_platnik_trzecia=True
        result = {'value': {
            'platnik_nadawca': n_platnik_nadawca,
            'platnik_odbiorca': n_platnik_odbiorca,
            #'platnik_trzecia': n_platnik_trzecia,
            }
        }
        return result

    def onchange_platnik_nadawca(self, cr, uid, ids, platnik_trzecia,platnik_nadawca,platnik_odbiorca):
        n_platnik_trzecia=False
        n_platnik_odbiorca=False
        if platnik_nadawca==True:
            n_platnik_trzecia=False
            n_platnik_odbiorca=False
            #n_platnik_trzecia=platnik_trzecia
        else:
            n_platnik_trzecia=False
            n_platnik_odbiorca=True
            #n_platnik_trzecia=True
        result = {'value': {
            'platnik_trzecia': n_platnik_trzecia,
            'platnik_odbiorca': n_platnik_odbiorca,
            #'platnik_trzecia': n_platnik_trzecia,
            }
        }
        return result

    def onchange_platnik_odbiorca(self, cr, uid, ids,platnik_trzecia,platnik_nadawca,platnik_odbiorca ):
        n_platnik_nadawca=False
        n_platnik_trzecia=False
        if platnik_odbiorca==True:
            n_platnik_nadawca=False
            n_platnik_trzecia=False
            #n_platnik_trzecia=platnik_trzecia
        else:
            n_platnik_nadawca=True
            n_platnik_trzecia=False
            #n_platnik_trzecia=True
        result = {'value': {
            'platnik_nadawca': n_platnik_nadawca,
            'platnik_trzecia': n_platnik_trzecia,
            #'platnik_trzecia': n_platnik_trzecia,
            }
        }
        return result

Revision history for this message
jerzyo (jerzyo) wrote :
Revision history for this message
jerzyo (jerzyo) wrote :

This is the same page in Firefox 3.5.9 This is how it should work!!

Not that the positioning of some buttons is different between the browsers

I can help with fixing the bug, but I need some help (for example where the javascripts activeted by onchenge methods are defined). I am not a javascript expert.

Revision history for this message
jerzyo (jerzyo) wrote :

I am using openerp web 5.0.12

Revision history for this message
Antony Lesuisse (OpenERP) (al-openerp) wrote :

onchanges on checkboxes work correctly on IE8 in the trunk branch. If not please reopen this bug.

Changed in openobject-client-web:
status: New → Invalid
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.