diff --git a/.travis.yml b/.travis.yml index 4a8a3a506..18d9f584d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ sudo: false cache: pip addons: - postgresql: "9.2" # minimal postgresql version for the daterange method + postgresql: "9.6" # minimal postgresql version for the daterange method apt: packages: - expect-dev # provides unbuffer utility diff --git a/account_credit_control/migrations/9.0.1.0.0/post-migration.py b/account_credit_control/migrations/9.0.1.0.0/post-migration.py index eec2ae37a..f028122c4 100644 --- a/account_credit_control/migrations/9.0.1.0.0/post-migration.py +++ b/account_credit_control/migrations/9.0.1.0.0/post-migration.py @@ -42,7 +42,7 @@ def migrate_followup_data(env): def set_followup_data(env): - today = fields.Date.context_today + today = fields.Date.context_today(env.user) policy = env['credit.control.policy.level'].search([])[:-1] if policy: env.cr.execute(""" @@ -52,7 +52,7 @@ def set_followup_data(env): AND aa.internal_type = 'receivable' AND aml.reconciled IS NULL AND aml.date_maturity < %s - """, today) + """, (today,)) data = env.cr.dictfetchall() for line in data: env['credit.control.line'].create({