health-dev
[Top][All Lists]
Advanced

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

[Health-dev] [bug #65058] Can not update data from data/*.xml


From: Feng Shu
Subject: [Health-dev] [bug #65058] Can not update data from data/*.xml
Date: Thu, 21 Dec 2023 18:11:07 -0500 (EST)

Follow-up Comment #2, bug#65058 (group health):


[comment #1 comment #1:]
> Check under
> 
> Administration -> Models -> Models -> Data
> 
> To see if there are items out of sync related to those models.
> 
> Bests
> Luis

'Out of Sync' seem no records, and 'All' have records. 

if I disable health_disability module and enable health_disability again, all
data will not show again.
and I find that 'Resource Id' of all data will lost.


if I disable again, show error:

raceback (most recent call last):
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/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.34/trytond/wizard/wizard.py",
line 313, in execute
    return wizard._execute(state_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/wizard/wizard.py",
line 344, in _execute
    result = self._execute(transition())
                           ^^^^^^^^^^^^
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/ir/module.py", line
572, in transition_upgrade
    pool.init(update=update, lang=lang)
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/pool.py",
line 164, in init
    restart = not load_modules(
                  ^^^^^^^^^^^^^
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/modules/__init__.py",
line 448, in load_modules
    _load_modules(update)
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/modules/__init__.py",
line 429, in _load_modules
    Model.delete([Model(rid)])
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/model/modelsql.py",
line 159, in wrapper
    return func(cls, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/model/modelsql.py",
line 1072, in delete
    ids = list(map(int, records))
          ^^^^^^^^^^^^^^^^^^^^^^^
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/model/model.py",
line 300, in __int__
    return int(self.id)
           ^^^^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real
number, not 'NoneType'



 



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65058>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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