[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:
parent
69e8edb8f2
commit
44513a73b5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue