添加功能

This commit is contained in:
李鹏宇
2025-11-20 10:30:33 +08:00
parent 870c73fd24
commit e885b8ad01
2 changed files with 7 additions and 2 deletions
@@ -32,11 +32,17 @@
widget="datetime" format="short" />
</small>
</div>
<div class="mb-2">
<div class="mb-2" t-if="record.comment.raw_value">
<small>
[<field name="done_by" />]<field name="comment"/>
</small>
</div>
<div class="mb-2" t-if="record.document_ids.raw_value and record.document_ids.raw_value.length > 0">>
<small>
<field name="document_ids" string="" widget="preview_many2many"/>
</small>
</div>
</div>
</div>
</t>
@@ -134,7 +134,6 @@ class HrAttendanceDetail(models.Model):
if employee.id not in template.role_id.resource_ids.employee_id.ids:
template = None
if not template:
role_templates = [
{'role_name': '厨卫(集团)', 'template': None},