I don't now why the result of a function from another function seems to be in Square brackets:
time event 1: ['2016-02-28 10:10:28']
time event 2: 2016-02-28 10:10:28
Time event 1 code (call):
dummy = self._compute_stop_time_hrs(self.start_datetime, self.duration)
print "time event 1: ", dummy
Time event 2 code (shortend):
@api.one # TODO causes error "strftime" Getting the Stop DateTime
def _compute_stop_time_hrs(self, start, duration):
return self.start_datetime
Seems that I miss something basic here?
How did you declared start_datetime ?