changeset 4886:a95ad6799917

health_caldv: Remove obsolete reference in view. Update default institution method
author Luis Falcon <falcon@gnuhealth.org>
date Tue, 18 Jan 2022 12:58:06 +0000
parents aff414b28fbe
children 0aed3b7f4cb6
files tryton/health_caldav/view/event_form.xml tryton/health_calendar/wizard/wizard_health_calendar.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tryton/health_caldav/view/event_form.xml
+++ b/tryton/health_caldav/view/event_form.xml
@@ -41,7 +41,7 @@
             <field name="exrules" colspan="2"/>
             <field name="exdates" colspan="2"/>
             <field name="occurences" colspan="4"
-                view_ids="calendar.event_view_tree_occurence"/>
+                view_ids="health_caldav.event_view_tree_occurence"/>
         </page>
     </notebook>
     <field name="parent" colspan="4" invisible="1"/>
--- a/tryton/health_calendar/wizard/wizard_health_calendar.py
+++ b/tryton/health_calendar/wizard/wizard_health_calendar.py
@@ -26,6 +26,7 @@
 from trytond.pool import Pool
 from trytond.transaction import Transaction
 from trytond.i18n import gettext
+from trytond.modules.health.core import get_institution
 
 __all__ = ['CreateAppointmentStart', 'CreateAppointment']
 
@@ -64,8 +65,7 @@
 
     @staticmethod
     def default_institution():
-        HealthInst = Pool().get('gnuhealth.institution')
-        return HealthInst.get_institution()
+        return get_institution()
 
     @fields.depends('healthprof')
     def on_change_with_specialty(self):