mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
require minimum postgres version to use the date_range
This commit is contained in:
committed by
Jordi Ballester Alomar
parent
8fc11ace9a
commit
797ff5f3fb
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user