[FIX] migration from 11.0

Update product_contract/migrations/12.0.3.0.0/pre-migration.py

Co-Authored-By: Bejaoui Souheil <souheil_bejaoui@hotmail.fr>

Update product_contract/migrations/12.0.3.0.0/pre-migration.py

Co-Authored-By: Bejaoui Souheil <souheil_bejaoui@hotmail.fr>

[FIX]
This commit is contained in:
sergiocorato
2020-03-24 10:44:48 +01:00
parent 14e46b1400
commit 244b2f3cc7

View File

@@ -1,4 +1,8 @@
from odoo.tools import parse_version
def migrate(cr, version):
if parse_version(version) == parse_version('12.0.2.0.0'):
# pre-paid/post-paid becomes significant for monthlylastday too,
# make sure it has the value that was implied for previous versions.
cr.execute(