[IMP] resource: remove the need to install matplotlib

Seriously? To flatten a list, a math dependency of 80MB?
Fixes #4383
This commit is contained in:
Martin Trigaux 2014-12-23 11:54:35 +01:00
parent 69e8edb8f2
commit 44513a73b5
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@
############################################################################
import faces.pcalendar as pcal
import matplotlib.cbook as cbook
import openerp.tools as tools
import datetime
import sys
@ -73,7 +73,7 @@ class TimeScale(object):
def create_time_slots(day):
src_slots = dcal.get_working_times(day)
slots = [0, src_slots, 24*60]
slots = tuple(cbook.flatten(slots))
slots = tuple(tools.flatten(slots))
slots = zip(slots[:-1], slots[1:])
#balance non working slots