require minimum postgres version to use the date_range

This commit is contained in:
Jordi Ballester
2017-05-31 13:13:01 +02:00
committed by Jordi Ballester Alomar
parent 8fc11ace9a
commit 797ff5f3fb
2 changed files with 2 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ sudo: false
cache: pip
addons:
postgresql: "9.2" # minimal postgresql version for the daterange method
apt:
packages:
- expect-dev # provides unbuffer utility

View File

@@ -17,4 +17,4 @@ class DateRange(models.Model):
fields.Date.from_string(rec.date_end)).days + 1
days = fields.Float(string="Days between dates",
compute='_compute_days', store=True, readonly=True)
compute='_compute_days', readonly=True)