Se rendre au contenu
Menu
Cette question a été signalée

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
Ignorer
Publications associées Réponses Vues Activité
2
août 20
4606
3
sept. 23
11763
0
oct. 24
2253
1
août 24
5154
2
févr. 24
4910