c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #25258
[Bug 789121] [NEW] onchange like bug 711142 but in client web 6.0.2
Public bug reported:
This work fin with gtk 6.0.2 , onchange function is not started with web client 6.0.2
It's important, my prospect use only web client!
This is the code:
<page string="Resource details*">
<group colspan="4">
<field name="comp" on_change="onchange_resource_comp(comp)" default_focus="1" colspan="4"/>
def onchange_resource_comp(self, cr, uid, ids, comp, context=None):
""" alimente automatiquement name à partir de la compétence choisie """
res={}
if comp:
competence_obj = self.pool.get('siep.competency.competency')
n = competence_obj.read(cr, uid, comp, ['n0','n1','n2','word_s','word_t'], context=context)
nom = n['n0'] + " / " + n['n1'] + " / " + n['n2']
word_s = n['word_s']
word_t = n['word_t']
#print "**** ids * comp=================== :",ids, "*",comp,nom,word_s,word_t
res['name'] = nom
res['word_t'] = word_t
res['word_s'] = word_s
return {'value' :res}
ubuntu 10.04 lts
firefox 3.6.13 or ie 8 or google chrome it's the same.
v6.0.2
** Affects: openobject-client-web
Importance: Undecided
Status: New
--
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/789121
Title:
onchange like bug 711142 but in client web 6.0.2
Status in OpenERP Web Client:
New
Bug description:
This work fin with gtk 6.0.2 , onchange function is not started with web client 6.0.2
It's important, my prospect use only web client!
This is the code:
<page string="Resource details*">
<group colspan="4">
<field name="comp" on_change="onchange_resource_comp(comp)" default_focus="1" colspan="4"/>
def onchange_resource_comp(self, cr, uid, ids, comp, context=None):
""" alimente automatiquement name à partir de la compétence choisie """
res={}
if comp:
competence_obj = self.pool.get('siep.competency.competency')
n = competence_obj.read(cr, uid, comp, ['n0','n1','n2','word_s','word_t'], context=context)
nom = n['n0'] + " / " + n['n1'] + " / " + n['n2']
word_s = n['word_s']
word_t = n['word_t']
#print "**** ids * comp=================== :",ids, "*",comp,nom,word_s,word_t
res['name'] = nom
res['word_t'] = word_t
res['word_s'] = word_s
return {'value' :res}
ubuntu 10.04 lts
firefox 3.6.13 or ie 8 or google chrome it's the same.
v6.0.2
Follow ups
References