health-dev
[Top][All Lists]
Advanced

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

[Health-dev] Error on inexistent variable


From: Francisco Maria Moyano Casco
Subject: [Health-dev] Error on inexistent variable
Date: Thu, 12 Dec 2019 04:56:17 -0300

Hello I get an error creating some records trough M2O fields.

Could solve it commenting lines 513-517 on record.py on the GNU Health Client 3.6.4.

The complete path to the file is ~/.local/lib/python3.6/site-packages/tryton/gui/window/view_form/model/record.py

The error is that is calling an inexistent variable called val.

The track is

ERROR:tryton.common.common:  File "/home/fran/.local/lib/python3.6/site-packages/tryton/gui/window/win_form.py", line 412, in response
    self.callback(result)
  File "/home/fran/.local/lib/python3.6/site-packages/tryton/gui/window/view_form/view/form_gtk/many2one.py", line 167, in callback
    screen.current_record.rec_name()))
  File "/home/fran/.local/lib/python3.6/site-packages/tryton/gui/window/view_form/model/field.py", line 447, in set_client
    force_change=force_change)
  File "/home/fran/.local/lib/python3.6/site-packages/tryton/gui/window/view_form/model/field.py", line 161, in set_client
    self.sig_changed(record)
  File "/home/fran/.local/lib/python3.6/site-packages/tryton/gui/window/view_form/model/field.py", line 45, in sig_changed
    record.on_change([self.name])
  File "/home/fran/.local/lib/python3.6/site-packages/tryton/gui/window/view_form/model/record.py", line 595, in on_change
    self.set_on_change(change)
  File "/home/fran/.local/lib/python3.6/site-packages/tryton/gui/window/view_form/model/record.py", line 514, in set_on_change
    self.value[field_rec_name] = val[field_rec_name]

NameError: name 'val' is not defined

Thanks.
   Francisco

reply via email to

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