添加功能

This commit is contained in:
李鹏宇
2026-02-09 23:07:26 +08:00
parent 2aeb19c552
commit 77f871ada6
3 changed files with 4 additions and 5 deletions
@@ -441,7 +441,6 @@ class HrAttendanceDetail(models.Model):
end_datetime = datetime.combine(date, datetime.min.time()).replace(
hour=end_hour, minute=end_minute, second=0, microsecond=0
) - timedelta(hours=8)
if template.planning_name == '中夜':
end_datetime = datetime.combine(date, datetime.min.time()).replace(
hour=22, minute=0, second=0, microsecond=0
@@ -51,6 +51,7 @@
</div>
<group col="4">
<group>
<field name="company_id"/>
<field name="is_back" invisible="1"/>
<field name="work_end" invisible="1"/>
<field name="pay_date"/>
@@ -60,7 +61,7 @@
<field name="users_id"/>
</group>
<group>
<field name="company_id"/>
<field name="company_id1"/>
</group>
<group>
<field name="tenure_type"/>
+2 -3
View File
@@ -10,12 +10,11 @@
<group>
<field name="user_id" string="采购人员"/>
<field name="employee_id" string="验收人" required="1"/>
<field name="document_ids" widget="preview_many2many" required="1"/>
<field name="certifier_id"/>
<field name="certifier_document_ids" widget="preview_many2many" required="1"/>
</group>
</group>
<group>
<field name="certifier_document_ids" widget="preview_many2many" required="1"/>
</group>
</xpath>
<xpath expr="//field[@name='picking_type_id']" position="after">
<field name="department_id"/>