← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 789121] Re: onchange like bug 711142 but in client web 6.0.2

 

*** This bug is a duplicate of bug 711142 ***
    https://bugs.launchpad.net/bugs/711142

** This bug has been marked a duplicate of bug 711142
   onchange data for reference field

-- 
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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client-web/+bug/789121/+subscriptions


References