Skip to content

Conversation

@nicoe
Copy link
Collaborator

@nicoe nicoe commented Jan 22, 2024

PCLAS-540

@nicoe nicoe requested review from CoopVincent and JCavallo January 22, 2024 10:12
@CoopVincent
Copy link
Contributor

Hello,

Le fix fait crash l'update du serveur:

Traceback (most recent call last):
  File "/home/vincent.garde/Dev/venvs/coog/bin/trytond-admin", line 36, in <module>
    admin.run(options)
  File "/home/vincent.garde/Dev/coog-master/tryton/trytond/trytond/admin.py", line 150, in run
    pool = _init_pool(db_name, options, lang)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vincent.garde/Dev/coog-master/tryton/trytond/trytond/admin.py", line 91, in _init_pool
    pool.init(
  File "/home/vincent.garde/Dev/coog-master/tryton/trytond/trytond/pool.py", line 209, in init
    restart = not load_modules(
                  ^^^^^^^^^^^^^
  File "/home/vincent.garde/Dev/coog-master/tryton/trytond/trytond/modules/__init__.py", line 599, in load_modules
    _load_modules(update)
  File "/home/vincent.garde/Dev/coog-master/tryton/trytond/trytond/modules/__init__.py", line 562, in _load_modules
    load_module_graph(graph, pool, update, lang, options)
  File "/home/vincent.garde/Dev/coog-master/tryton/trytond/trytond/modules/__init__.py", line 236, in load_module_graph
    pool.setup(classes)
  File "/home/vincent.garde/Dev/coog-master/tryton/trytond/trytond/pool.py", line 306, in setup
    cls.__post_setup__()
  File "/home/vincent.garde/Dev/coog-master/tryton/trytond/trytond/modules/coog_core/model.py", line 2159, in __post_setup__
    field_copy(Model, fname, cls)
  File "/home/vincent.garde/Dev/coog-master/tryton/trytond/trytond/modules/coog_core/model.py", line 2147, in field_copy
    raise e
  File "/home/vincent.garde/Dev/coog-master/tryton/trytond/trytond/modules/coog_core/model.py", line 2144, in field_copy
    copy = field.__class__(string=field.string, readonly=True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vincent.garde/Dev/coog-master/tryton/trytond/trytond/model/fields/field.py", line 289, in __init__
    assert string, 'a string is required'
AssertionError: a string is required

Le modèle incriminé est TreatIjPeriodSelectLine, qui hérite de view_only , et l'erreur se joue sur le champ create_date (donc la string est renseignée en lazy_gettext).

@CoopVincent
Copy link
Contributor

CoopVincent commented Jan 24, 2024

LGTM avec ce commit, j'ai ma lazy_gettext bien chargée dans l'appli. et le wizard de traduction réagit correctement, GJ

@nicoe nicoe merged commit d491b4d into coopengo:master Jan 24, 2024
nicoe added a commit that referenced this pull request Jan 24, 2024
nicoe pushed a commit to nicoe/tryton-coopengo-new that referenced this pull request Sep 3, 2024
PR: (coopengo#120)
OTH #0000
* fix multiselection in dictionnaries first display
* variable declaration missing
nicoe added a commit to nicoe/tryton-coopengo-new that referenced this pull request Sep 3, 2024
jmousset pushed a commit to jmousset/tryton that referenced this pull request Jan 9, 2025
PR: (coopengo#120)
OTH #0000
* fix multiselection in dictionnaries first display
* variable declaration missing
nicoe pushed a commit to nicoe/tryton-coopengo-new that referenced this pull request Jun 16, 2025
nicoe added a commit to nicoe/tryton-coopengo-new that referenced this pull request Jun 16, 2025
nicoe pushed a commit to nicoe/tryton-coopengo-new that referenced this pull request Jun 19, 2025
nicoe added a commit to nicoe/tryton-coopengo-new that referenced this pull request Jun 19, 2025
nicoe pushed a commit to nicoe/tryton-coopengo-new that referenced this pull request Sep 11, 2025
nicoe added a commit to nicoe/tryton-coopengo-new that referenced this pull request Sep 11, 2025
JCavallo pushed a commit to JCavallo/tryton that referenced this pull request Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants