health-es
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Health-es] Error al grabar datos en personas (party)


From: trscheidig
Subject: Re: [Health-es] Error al grabar datos en personas (party)
Date: Wed, 3 Aug 2016 13:24:01 -0300 (ART)

Hola de nuevo
Bueno revisando el codigo aparentemente encontre el error
se trata que en la definiciĆ³n write (linea 477 y 479)hay 2 variables sin asignar asi que agregue lo siguiente: given_name='' y family_name='' y solo me falta actualizar y probar si ahora funciona


---- Original Message ----
From: address@hidden
To: address@hidden
Sent: Mar, Ago 2, 2016, 11:58 AM
Subject: [Health-es] Error al grabar datos en personas (party)

Hola Luis
Ha surgido un problema, no se si es desde la ultima actualizacion (efectuada con gnuhealth-control, por que nolo habia notado antes, el mencionado error se produce cuando quiero asignarle el el valor true a healtprofesional (tilde en healthprofesional) para poder darlo de alta como profesional de salud, antes no me pasaba.
el error salta en lalinea 477 en el modulo health/healt.py

aqui transcribo parte del mensaje de error (tambien me aparece en la pantalla del cliente.

502 140672905590528 [2016-08-02 14:33:47,607] INFO trytond.protocols.dispatcher model.party.party.on_cha
nge_with(*({'is_patient': True, 'is_person': True, 'is_healthprof': True, 'id': 13880}, ['is_person'], {'
date_format': '%d/%m/%Y', 'language': 'es_AR', 'locale': {'date': '%d/%m/%Y', 'thousands_sep': '.', 'deci
mal_point': ',', 'grouping': [3, 3, 0]}, 'company': None, 'groups': [1, 10, 6, 4, 7, 20, 3, 2, 11, 18, 27
, 9, 28, 5, 8, 22, 23, 16, 19, 25, 24, 21, 29], 'employee': None, 'language_direction': 'ltr'}), **{}) fr
om 1@::ffff:127.0.0.1:49872/csrioceb
3502 140672905590528 [2016-08-02 14:33:49,535] INFO trytond.protocols.dispatcher model.party.party.write(
*([13880], {'is_person': True, 'is_healthprof': True}, {'date_format': '%d/%m/%Y', '_timestamp': {'gnuhea
lth.person_name,6883': '1459354261.26329', 'party.contact_mechanism,27': '1459354261.26329', 'party.addre
ss,28': '1459354261.26329', 'party.party,13880': '1459354261.26329', 'party.category,1': '1459260130.4387
1'}, 'language': 'es_AR', 'locale': {'date': '%d/%m/%Y', 'thousands_sep': '.', 'decimal_point': ',', 'gro
uping': [3, 3, 0]}, 'company': None, 'groups': [1, 10, 6, 4, 7, 20, 3, 2, 11, 18, 27, 9, 28, 5, 8, 22, 23
, 16, 19, 25, 24, 21, 29], 'employee': None, 'language_direction': 'ltr'}), **{}) from 1@::ffff:127.0.0.1
:49872/csrioceb
3502 140672905590528 [2016-08-02 14:33:49,544] ERROR trytond.protocols.dispatcher model.party.party.write
(*([13880], {'is_person': True, 'is_healthprof': True}, {'date_format': '%d/%m/%Y', 'language': 'es_AR',
'locale': {'date': '%d/%m/%Y', 'thousands_sep': '.', 'decimal_point': ',', 'grouping': [3, 3, 0]}, 'compa
ny': None, '_check_access': True, 'groups': [1, 10, 6, 4, 7, 20, 3, 2, 11, 18, 27, 9, 28, 5, 8, 22, 23, 1
6, 19, 25, 24, 21, 29], 'employee': None, 'language_direction': 'ltr'}), **{}) from 1@::ffff:127.0.0.1:49
872/csrioceb
Traceback (most recent call last):
 File "/home/gnuhealth/gnuhealth/tryton/server/trytond-3.8.6/trytond/protocols/dispatcher.py", line 162,
in dispatch
   result = rpc.result(meth(*c_args, **c_kwargs))
 File "/home/gnuhealth/gnuhealth/tryton/server/trytond-3.8.6/trytond/modules/health/health.py", line 477
, in write
   cls.update_person_official_name(person_id,given_name,
UnboundLocalError: local variable 'given_name' referenced before assignment


la verdad me sorprendio,

Saludos Thomas
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]