bugGNU Health - Bugs: bug #65058, Can not update data from data/*.xml

 
 

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

bug #65058: Can not update data from data/*.xml

Submitter:  Feng Shu <tumashu>
Submitted:  Wed 20 Dec 2023 08:41:00 AM UTC
   
 
Category:  localization Severity:  3 - Normal
Item Group:  None Status:  Ready For Test
Privacy:  Public Assigned to:  teffalump
Open/Closed:  Open Release:  None
Module:  health_disability Component:  Hospital Management

Mon 25 Dec 2023 03:41:48 AM UTC, comment #3: 

Updated: https://hg.savannah.gnu.org/hgweb/health/rev/942a6ccf0d17

I new install gnuhealth, and this change seem to solve the issue.

Feng Shu <tumashu>
Thu 21 Dec 2023 11:11:07 PM UTC, comment #2: 


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'



 

Feng Shu <tumashu>
Thu 21 Dec 2023 12:28:52 PM UTC, comment #1: 

Check under

Administration -> Models -> Models -> Data

To see if there are items out of sync related to those models.

Bests
Luis

Luis Falcon <meanmicio>
Group administrator
Wed 20 Dec 2023 08:41:00 AM UTC, original submission:  

Today I try to test translation of health_disability.

I edit the below files:

 activity_and_participation.xml
 body_functions.xml
 body_structures.xml
 categories.xml
 environmental_factors.xml

and let noupdate="0"

then I upgrade health_disability module, but translation do not effective, I do not know why,

I reinstall gnuhealth to test again,   translation of health_disability work well.

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 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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-12-25 tumashu StatusNeed Info Ready For Test
    2023-12-21 meanmicio CategoryNone localization
        StatusNone Need Info
        Assigned toNone teffalump

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code