Skip to content

Commit

Permalink
removing unnecessary call to api_fields
Browse files Browse the repository at this point in the history
  • Loading branch information
luisiniguezh committed Dec 5, 2018
1 parent 3d91f86 commit 8fe1af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/calendar/models/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -1552,7 +1552,7 @@ def read(self, fields=None, load='_classic_read'):
@api.model
def get_time_dst_delta(self, id, tz, record):
master_id = self.browse(id)
master_dst = tz.localize(api_fields.Datetime.from_string(master_id.start_datetime)).dst()
master_dst = tz.localize(fields.Datetime.from_string(master_id.start_datetime)).dst()
current_dst = tz.localize(datetime.strptime(record['id'].split('-')[1], '%Y%m%d%H%M%S')).dst()
if master_dst and not current_dst:
delta = timedelta(hours=1)
Expand Down

0 comments on commit 8fe1af3

Please sign in to comment.