def _onchange_med_int(self): if self.med_int != 'none': self.med_int = self.clear_all_med(self.med_int) self.x_treatment = 'intravenous_vitamin' serv_funcs.product_medical(self) return { 'domain': { 'service': [ ('x_treatment', '=', self.x_treatment), ] }, }
def _onchange_med_scle(self): if self.med_scle != 'none': self.med_scle = self.clear_all_med(self.med_scle) self.x_treatment = 'sclerotherapy' serv_funcs.product_medical(self) return { 'domain': { 'service': [ ('x_treatment', '=', self.x_treatment), ] }, }
def _onchange_med_bot(self): if self.med_bot != 'none': self.med_bot = self.clear_all_med(self.med_bot) self.x_treatment = 'botulinum_toxin' serv_funcs.product_medical(self) return { 'domain': { 'service': [ ('x_treatment', '=', self.x_treatment), ] }, }
def _onchange_med_lep(self): if self.med_lep != 'none': self.zone = service_medical_vars._lep_dic_zone[self.med_lep] self.pathology = service_medical_vars._lep_dic_pathology[ self.med_lep] self.x_treatment = 'lepismatic' self.med_lep = self.clear_all_med(self.med_lep) serv_funcs.product_medical(self) return { 'domain': { 'service': [ ('x_treatment', '=', self.x_treatment), ('x_zone', '=', self.zone), ('x_pathology', '=', self.pathology), ] }, }
def _onchange_med_crio(self): if self.med_crio != 'none': self.x_treatment = 'criosurgery' self.sessions = self.med_crio self.zone = 'face_all' self.pathology = 'acne' serv_funcs.product_medical(self) return { 'domain': { 'service': [ ('x_treatment', '=', self.x_treatment), ('x_sessions', '=', self.sessions), ] }, }