OCA / l10n-brazil

Localização brasileira oficial do Odoo.
https://odoo-community.org/psc-teams/brazil-66
GNU Affero General Public License v3.0
241 stars 244 forks source link

[12.0][FIX][l10n_br_account_payment_order] harden migr script #3333

Closed rvalyi closed 2 months ago

rvalyi commented 2 months ago

tive esse erro sem isso ao migrar um banco antigo:

  File "/odoo/external-src/l10n-brazil.updated/l10n_br_account_payment_order/migrations/12.0.3.0.0/pre-migration.py", line 21, in migrate
    openupgrade.rename_tables(env.cr, _table_renames)
  File "/src/openupgradelib/openupgradelib/openupgrade.py", line 702, in rename_tables
    cr.execute('ALTER TABLE "%s" RENAME TO "%s"' % (old, new,))
  File "/odoo/src/odoo/sql_db.py", line 148, in wrapper
    return f(self, *args, **kwargs)
  File "/odoo/src/odoo/sql_db.py", line 225, in execute
    res = self._obj.execute(query, params)
psycopg2.ProgrammingError: relation "cnab_return_move_code" does not exist
rvalyi commented 2 months ago

/ocabot merge patch

OCA-git-bot commented 2 months ago

Hey, thanks for contributing! Proceeding to merge this for you. Prepared branch 12.0-ocabot-merge-pr-3333-by-rvalyi-bump-patch, awaiting test results.

OCA-git-bot commented 2 months ago

Congratulations, your PR was merged at 3bd352ba3a1eb3e00fcb8a8cd82c09d8515f650c. Thanks a lot for contributing to OCA. ❤️