bugGNU Health - Bugs: bug #62771, ...

 
 

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

bug #62771: doc/samples/interfaces/demographics/patient_uploader.py can not handle federation_account

Submitter:  Feng Shu <tumashu>
Submitted:  Fri 15 Jul 2022 12:15:05 AM UTC
 
Category:  Functionality Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  None
Module:  health Component:  None

Fri 15 Jul 2022 12:24:35 AM UTC, comment #1: 

I think the problem is fed_country is not proberly handled.

original submission:

> 7233 139797540673280 [2022-07-15 00:12:21,116] ERROR trytond.protocols.dispatcher <class 'trytond.pool.party.party'>.create(*([{'activation_date': None, 'active': True, 'addresses': [['create', [{'active': True, 'delivery': False, 'invoice': False, 'is_school': False, 'is_work': False, 'street': 'C/ Buenos Aires 32', 'city': '35001 – Las Palmas'}]]], 'alternative_identification': False, 'citizenship': None, 'customer_location': 7, 'customer_payment_term': 2, 'customer_tax_rule': None, 'fed_country': None, 'fsync': True, 'is_healthprof': False, 'is_institution': False, 'is_insurance_company': False, 'is_patient': True, 'is_person': True, 'is_pharmacy': False, 'lang': 24, 'residence': None, 'supplier_location': 6, 'supplier_tax_rule': None, 'unidentified': False, 'warehouse': None, 'name': 'Ana', 'lastname': 'Betz', 'ref': '', 'gender': 'f', 'dob': datetime.date(1971, 10, 12), 'contact_mechanisms': [['create', [{'active': True, 'delivery': False, 'emergency': False, 'invoice': False, 'type': 'mobile', 'value': '+34928555555', 'skype': '+34928555555', 'other_value': '+34928555555', 'email': '+34928555555', 'sip': '+34928555555', 'website': '+34928555555'}]]]}], {'company_filter': 'one', 'company': 1, 'company.rec_name': 'xxx', 'language': 'zh_CN', 'language_direction': 'ltr', 'groups': [7, 8, 1, 22, 4, 2, 5, 15, 34, 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': ','}}), **{}) from admin@127.0.0.1/gnuhealth1/
> Traceback (most recent call last):
>   File "/home/feng/gnuhealth/tryton/server/trytond-6.0.20/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.20/trytond/modules/health_federation/health_federation.py", line 549, in create
>     parties = super(PartyFed, cls).create(vlist)
>   File "/home/feng/gnuhealth/tryton/server/trytond-6.0.20/trytond/modules/health/health.py", line 675, in create
>     values['federation_account'] = values['fed_country'] + \
> TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
>

>

Feng Shu <tumashu>
Fri 15 Jul 2022 12:15:05 AM UTC, original submission:  

7233 139797540673280 [2022-07-15 00:12:21,116] ERROR trytond.protocols.dispatcher <class 'trytond.pool.party.party'>.create(*([{'activation_date': None, 'active': True, 'addresses': [['create', [{'active': True, 'delivery': False, 'invoice': False, 'is_school': False, 'is_work': False, 'street': 'C/ Buenos Aires 32', 'city': '35001 – Las Palmas'}]]], 'alternative_identification': False, 'citizenship': None, 'customer_location': 7, 'customer_payment_term': 2, 'customer_tax_rule': None, 'fed_country': None, 'fsync': True, 'is_healthprof': False, 'is_institution': False, 'is_insurance_company': False, 'is_patient': True, 'is_person': True, 'is_pharmacy': False, 'lang': 24, 'residence': None, 'supplier_location': 6, 'supplier_tax_rule': None, 'unidentified': False, 'warehouse': None, 'name': 'Ana', 'lastname': 'Betz', 'ref': '', 'gender': 'f', 'dob': datetime.date(1971, 10, 12), 'contact_mechanisms': [['create', [{'active': True, 'delivery': False, 'emergency': False, 'invoice': False, 'type': 'mobile', 'value': '+34928555555', 'skype': '+34928555555', 'other_value': '+34928555555', 'email': '+34928555555', 'sip': '+34928555555', 'website': '+34928555555'}]]]}], {'company_filter': 'one', 'company': 1, 'company.rec_name': 'xxx', 'language': 'zh_CN', 'language_direction': 'ltr', 'groups': [7, 8, 1, 22, 4, 2, 5, 15, 34, 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': ','}}), **{}) from admin@127.0.0.1/gnuhealth1/
Traceback (most recent call last):
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.20/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.20/trytond/modules/health_federation/health_federation.py", line 549, in create
    parties = super(PartyFed, cls).create(vlist)
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.20/trytond/modules/health/health.py", line 675, in create
    values['federation_account'] = values['fed_country'] + \
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Feng Shu <tumashu>

 

(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 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.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.9