2024-6-17:在考勤列表中添加公司字段,显示员工所属公司单位
This commit is contained in:
@@ -18,6 +18,7 @@ class HrAttendance(models.Model):
|
||||
out_card_time = fields.Datetime(string="外出打卡时间")
|
||||
out_card_location = fields.Char(string="外出打卡地点")
|
||||
work_hours = fields.Float(string="工作时长")
|
||||
company_id = fields.Many2one('res.company', string='公司', index=True, default=lambda self: self.env.company)
|
||||
|
||||
def send_wecom_attendance(self):
|
||||
pass
|
||||
@@ -10,6 +10,7 @@
|
||||
<button class="oe_stat_button" name="send_wecom_attendance" string="同步企业微信打卡记录" groups="hr_attendance.group_hr_attendance_manager" type="object" icon="fa-bars"/>
|
||||
</header>
|
||||
<field name="employee_id" widget="many2one_avatar_user"/>
|
||||
<field name="company_id" optional="show"/>
|
||||
<field name="is_clock_card" optional="show"/>
|
||||
<field name="is_no_card" optional="show"/>
|
||||
<field name="is_early_card" optional="show"/>
|
||||
|
||||
Reference in New Issue
Block a user