How to Change selection field automatically in odoo
问题 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: 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