Skip to content

Commit fe3fc86

Browse files
committed
[ADD] queue_job module: migration from 9.0
1 parent 2304328 commit fe3fc86

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2017 Tecnativa - Vicent Cubells
3+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
4+
5+
6+
def migrate(cr, version):
7+
if not version:
8+
return
9+
# In order to migrate connector from v. 9.0 to v. 10.0, we need to set
10+
# connector module state to 'to upgrade'
11+
cr.execute("""
12+
UPDATE ir_module_module
13+
SET state='to upgrade'
14+
WHERE name='connector'
15+
""")

0 commit comments

Comments
 (0)