Skip to Content
Menu
This question has been flagged

Hi,

I have added a field to select timezone. Now, I want to trigger a mail according to the time and timezone given by the user. How can we do that?.


due_time = fields.Float(string='Due Time')
timezone = fields.Selection('_tz_get', string='Timezone',
default=lambda self: self.env.user.tz)
@api.model
def _tz_get(self):
return [(x, x) for x in pytz.all_timezones]
Avatar
Discard
Related Posts Replies Views Activity
2
Aug 20
4705
3
Sep 23
12026
0
Oct 24
2444
1
Aug 24
5364
2
Feb 24
5075