URL: <https://savannah.gnu.org/bugs/?61869>
Summary: health_inpatient: AttributeError: type object 'gnuhealth.institution' has no attribute 'get_institution' Project: GNU Health Submitted by: tumashu Submitted on: Thu 20 Jan 2022 06:36:07 AM UTC Category: Programming / Tracebacks Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Release: None Discussion Lock: Any Module: health_inpatient _______________________________________________________ Details: ERROR trytond.protocols.dispatcher <class 'trytond.modules.health_inpatient.health_inpatient.InpatientMeal'>.default_get(*(['diet_belief', 'diet_therapeutic', 'diet_vegetarian', 'institution', 'name'], {'client': 'c39e9094-4a3c-4beb-bef1-5ccf8f91b782', 'company_filter': 'one', 'company': 1, 'company.rec_name': 'xxx', 'language': 'zh_CN', 'language_direction': 'ltr', 'groups': [7, 8, 1, 22, 4, 2, 5, 15, 21, 24, 25, 30, 26, 28, 31, 29, 20, 33, 3, 6, 12, 13, 14, 9, 10, 11], 'locale': {'date': '%Y-%m-%d', 'grouping': [3, 0], 'decimal_point': '.', 'thousands_sep': ','}, 'default_rec_name': None}), **{}) from admin@127.0.0.1/gnuhealth1/ Traceback (most recent call last): File "/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/protocols/dispatcher.py", line 180, in _dispatch result = rpc.result(meth(*c_args, **c_kwargs)) File "/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/model/model.py", line 149, in default_get value[field_name] = cls._defaults[field_name]() File "/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/modules/health_inpatient/health_inpatient.py", line 618, in default_institution institution = HealthInst.get_institution() AttributeError: type object 'gnuhealth.institution' has no attribute 'get_institution' _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?61869> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/