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
--
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/613815
Title:
Web client working improperly in IE8 (onchange with checkboxes, different
layout)
Status in OpenObject Web Client:
Invalid
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
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp