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.
This commit is contained in:
Kevin Graveman
2016-09-21 15:12:37 +02:00
committed by GitHub
parent e94ecc1ffc
commit fc915f1cf3

View File

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