title: How to Change selection field automatically in odoo
body: <p>I'm working on Odoo 8. I have a view that contains a set of combo-box type fields and a selection field. I want to make a test on the combo-box fields and if there are all checked then the selection field value should change. Here is what i have so far: </p>
  
  <pre><code>def get_etat_dossier(self,cr,uid,ids,args,fields,context=None):
      res = {}
      for rec in self.browse(cr,uid,ids):
  
          if rec.casier_judiciare==True: # test field if = true 
              res[rec.id]= 02 # field etat_dos type selection = Dossier Complet
          else:
              res[rec.id] = 01
  
      return res
  
  
  _columns= {
  
     'casier_judiciare' : fields.boolean('Casier Judiciaire'), #  field to test 
  
     'reference_pro' : fields.boolean('Réferences Professionnelles'),
     'certificat_qual' : fields.boolean('Certificat de qualification'),
     'extrait_role' : fields.boolean('Extrait de Role'),
     'statut_entre' : fields.selection([('eurl','EURL'),('sarl','SARL')],'Statut Entreprise'),
     'etat_dos': fields.selection([('complet','Dossier Complet'),('manquant','Dossier Manquant')],'Etat De Dossier'), # field ho change after test 
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/gAhdt.jpg" alt="enter image description here"></p>
  
  <p>Here is the code for my view</p>
  
  <pre><code>&lt;group col='4' name="doss_grp" string="Dossier de Soumission" colspan="4" &gt;       &lt;field name="casier_judiciare"/&gt; 
      &lt;field name="certificat_qual"/&gt; 
      &lt;field name="extrait_role"/&gt; 
      &lt;field name="reference_pro"/&gt; 
      &lt;field name="statut_entre" style="width:20%%"/&gt; 
      &lt;field name="etat_dos"/&gt; 
  &lt;/group&gt;
  </code></pre>