diff --git a/netforce_clinic/models/select_company.py b/netforce_clinic/models/select_company.py index 0d9b028..d311fec 100644 --- a/netforce_clinic/models/select_company.py +++ b/netforce_clinic/models/select_company.py @@ -103,6 +103,7 @@ class SelectCompany(Model): ['clinic.shop','department_id.code','='], ['clinic.dialyzer','department_id.code','='], ['clinic.schedule','department_id.code','='], + ['clinic.department','code','='], ] user_id=get_active_user() diff --git a/netforce_clinic/models/visit.py b/netforce_clinic/models/visit.py index 99b1f23..ccd58c6 100644 --- a/netforce_clinic/models/visit.py +++ b/netforce_clinic/models/visit.py @@ -483,7 +483,6 @@ class Visit(Model): 'state': 'pending', }) - def onchange_department(self,context={}): data=context['data'] dpt_id=data['department_id']