pengyuthon wechat

This commit is contained in:
李鹏宇
2024-12-08 21:48:17 +08:00
parent 0f4dd9933b
commit 201051c40a
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -50,8 +50,8 @@
<field name="is_issues" invisible="1"/>
</group>
</group>
<group string="按天请假"/>
<div>
<label for="leave_line_ids" string="按天请假"/>
<field name="leave_line_ids" nolabel="1" context="{'default_leave_unit': 'day'}">
<tree editable="bottom">
<field name="leave_batch_id" column_invisible="1"/>
@@ -82,8 +82,8 @@
</tree>
</field>
</div>
<group string="按小时请假" invisible="leave_by_hour == False"/>
<div invisible="leave_by_hour == False">
<label for="hour_leave_line_ids" string="按小时请假"/>
<field name="hour_leave_line_ids" nolabel="1" context="{'default_leave_unit': 'hour'}">
<tree editable="bottom">
<field name="leave_batch_id" column_invisible="1"/>
@@ -4,6 +4,10 @@ from datetime import datetime, time, timedelta
from odoo.exceptions import UserError
class GoApprovalsLine(models.Model):
_name = 'go.approvals.line'
class GoApprovals(models.Model):
_name = 'go.approval'
_description = "外出审批"