21 lines
540 B
Python
21 lines
540 B
Python
# -*- coding: utf-8 -*-
|
|
import datetime
|
|
import calendar
|
|
from odoo import models, api, fields, _
|
|
|
|
|
|
class WeComApiSyncWizard(models.Model):
|
|
_name = "wecom.api.sync.wizard"
|
|
_description = "企业微信数据同步"
|
|
|
|
sync_name = fields.Selection([
|
|
('0', '用户'),
|
|
('1', '员工'),
|
|
('2', '部门'),
|
|
('3', '考勤'),
|
|
], string="同步选项")
|
|
company_id = fields.Many2one('res.company', string="公司", default=lambda self: self.env.company)
|
|
|
|
def wecom_api_sync_users(self):
|
|
pass
|