community-data-files icon indicating copy to clipboard operation
community-data-files copied to clipboard

[16.0] l10n_eu_nace - migration script

Open edlopen opened this issue 1 year ago • 2 comments

I'm working on a migration script for that module as I forgot to add one when I migrated the module. Hopefully on Monday I'll push a PR for this issue.

edlopen avatar Apr 26 '24 15:04 edlopen

I suppose this issue is related to this merged PR : https://github.com/OCA/community-data-files/pull/205

@edlopen I got an error from this migration script if '_ir_translation' does not exist

File "/usr/local/lib/python3.10/dist-packages/odoo/addons/l10n_eu_nace/migrations/16.0.1.0.0/pre-migrate.py", line 26, in migrate
    cr.execute(
  File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 321, in execute
    res = self._obj.execute(query, params)
psycopg2.errors.UndefinedTable: relation "_ir_translation" does not exist
LINE 6:             FROM _ir_translation it

I think it's related to this: https://oca.github.io/openupgradelib/API.html#openupgradelib.openupgrade_160.migrate_translations_to_jsonb

Lukwos avatar Oct 03 '24 15:10 Lukwos

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] avatar Apr 06 '25 12:04 github-actions[bot]