Browse Source

migrate being called when version is None

Tested the following issue:
https://github.com/OCA/bank-statement-import/issues/52
I made sure account_banking was not installed, and did not appear in ir_module_module of the source database. I ran it through a debugger and found that version was None. Compared this script with other scripts and recalled that it is indeed common to return if version is None.
pull/73/head
Kevin Graveman 8 years ago
committed by GitHub
parent
commit
fc915f1cf3
  1. 2
      account_bank_statement_import/migrations/8.0.1.0/post-migrate.py

2
account_bank_statement_import/migrations/8.0.1.0/post-migrate.py

@ -21,6 +21,8 @@
def migrate(cr, version): def migrate(cr, version):
if not version:
return
# if we end up here, we migrate from 7.0's account_banking # if we end up here, we migrate from 7.0's account_banking
# set transaction ids, taking care to enforce uniqueness # set transaction ids, taking care to enforce uniqueness
cr.execute( cr.execute(

Loading…
Cancel
Save