Skip to content

Commit

Permalink
Update pre-migration.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobaeza committed Aug 30, 2017
1 parent 6c2d675 commit f642f25
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions queue_job/migrations/10.0.1.0.0/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ def migrate(cr, version):
SET state='to upgrade'
WHERE name='connector'
""")
from openupgradelib import openupgrade
openupgrade.rename_xmlids(
cr, [
('queue_job.group_connector_manager',
'queue_job.group_queue_job_manager',)
],
)
try:
from openupgradelib import openupgrade
openupgrade.rename_xmlids(
cr, [
('queue_job.group_connector_manager',
'queue_job.group_queue_job_manager',)
],
)
except ImportError:
pass

0 comments on commit f642f25

Please sign in to comment.