Přejít na obsah
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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
srp 20
4603
3
zář 23
11752
0
říj 24
2247
1
srp 24
5134
2
úno 24
4900