添加功能
This commit is contained in:
@@ -270,6 +270,17 @@ class HrAttendanceDetail(models.Model):
|
||||
'is_week': False,
|
||||
'absenteeism_card': absenteeism_card,
|
||||
})
|
||||
else:
|
||||
att_id = self.env['hr.attendance'].search([('employee_id', '=', employee.id), ('current_data', '=', current_data)])
|
||||
if att_id:
|
||||
att_id.write({
|
||||
'is_no_card': False,
|
||||
'is_early_card': False,
|
||||
'is_late_card': False,
|
||||
'is_abnormal': False,
|
||||
'is_warning': False,
|
||||
'absenteeism_card': False,
|
||||
})
|
||||
|
||||
def normal_clock_in_time(self, template, current_data):
|
||||
"""
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<t t-name="bank_module.ListView.Buttons" t-inherit="web.ListView.Buttons">
|
||||
<xpath expr="//div[hasclass('o_list_buttons')]" position="after">
|
||||
<button type="button" class="btn btn-primary" style="margin-left: 10px;" t-on-click="openStatementsWizard">
|
||||
生成流水
|
||||
导入流水
|
||||
</button>
|
||||
</xpath>
|
||||
</t>
|
||||
|
||||
Reference in New Issue
Block a user