Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1845 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
ago 20
4609
3
set 23
11768
0
ott 24
2262
1
ago 24
5162
2
feb 24
4921