from odoo import api, fields, models, tools class AttendanceScheme(models.Model): _name = 'attendance.scheme' _description = '考勤方案' name = fields.Char(string='名称', required=True) employee_name = fields.Char(string='姓名', required=True) phone = fields.Char(string='手机号', required=True) form_employment = fields.Selection([('exercitation', '实习'), ('expatriate', '外派'), ('tryout', '试用'), ('official', '正式'), ], string="聘用形式") department_id = fields.Many2one('hr.department', string="部门") working_system = fields.Char(string='工时制',default='未设置') start_time = fields.Datetime(string="入职日期") shifts = fields.Char(string='排版制') punch_way = fields.Char(string='打卡方式') attendance_mode = fields.Char(string='出勤方式') attendance_group = fields.Char(string='考勤组') overtime_programs = fields.Char(string='加班方案') subsidy_programme = fields.Char(string='补贴方案') chargeback_schemes = fields.Char(string='扣款方案') remarks = fields.Char(string='备注')