Skip to Content
Menu
You need to be registered to interact with the community.
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
avg. 20
4620
3
sep. 23
11788
0
okt. 24
2274
1
avg. 24
5185
2
feb. 24
4956