تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1852 أدوات العرض

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
أغسطس 20
4613
3
سبتمبر 23
11773
0
أكتوبر 24
2268
1
أغسطس 24
5173
2
فبراير 24
4928