onchange like bug 711142 but in client web 6.0.2

Bug #789121 reported by alain desnos
This bug report is a duplicate of:  Bug #711142: onchange data for reference field. Edit Remove
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Web Client
New
Undecided
Unassigned

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

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.