コンテンツへスキップ
メニュー
この質問にフラグが付けられました

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]
アバター
破棄
関連投稿 返信 ビュー 活動
2
8月 20
4603
3
9月 23
11755
0
10月 24
2248
1
8月 24
5148
2
2月 24
4904