diff --git a/netforce_clinic/layouts/clinic_setting.xml b/netforce_clinic/layouts/clinic_setting.xml index ebbbc78..89e96d3 100644 --- a/netforce_clinic/layouts/clinic_setting.xml +++ b/netforce_clinic/layouts/clinic_setting.xml @@ -1,38 +1,32 @@
diff --git a/netforce_clinic/models/setting.py b/netforce_clinic/models/setting.py index d850f09..193beda 100644 --- a/netforce_clinic/models/setting.py +++ b/netforce_clinic/models/setting.py @@ -37,6 +37,7 @@ class ClinicSetting(Model): 'patient_type_id': fields.Many2One("clinic.patient.type","Default Type"), # Import payment 'imp_patient_type_id': fields.Many2One("clinic.patient.type","Import UC Type"), # Import payment 'find_dlz': fields.Boolean("Find Dialyzer After Confirm Visit"), # Visit + 'auto_gen_visit': fields.Boolean("Auto Generate Visit Before Next Month"), # Visit 'stock_journal_id': fields.Many2One("stock.journal","Default Journal"), 'auto_gen': fields.Boolean("Auto Gen"), # HD Case 'schd_from': fields.Date("From"), @@ -950,5 +951,9 @@ class ClinicSetting(Model): if hn not in res['hns'].keys(): res['hns'][hn]=vals return res + + def generate_visit(self,ids,context={}): + obj=self.browse(ids)[0] + print(">>>>") ClinicSetting.register()