bugGNU Health - Bugs: bug #61869, health_inpatient: AttributeError:...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #61869: health_inpatient: AttributeError: type object 'gnuhealth.institution' has no attribute 'get_institution'

Submitter:  Feng Shu <tumashu>
Submitted:  Thu 20 Jan 2022 06:36:07 AM UTC
   
 
Category:  Programming / Tracebacks Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  meanmicio
Open/Closed:  Closed Release:  3.9.0
Module:  health_inpatient Component:  None

Thu 20 Jan 2022 07:42:02 PM UTC, comment #1: 
Luis Falcon <meanmicio>
Group administrator
Thu 20 Jan 2022 06:36:07 AM UTC, original submission:  

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'

Feng Shu <tumashu>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by meanmicio (Posted a comment)
  • -email is unavailable- added by tumashu (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-01-25 meanmicio StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2022-01-20 meanmicio StatusNone Ready For Test
        Assigned toNone meanmicio
        ReleaseNone 3.9.0

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code