pengyuthon wechat
This commit is contained in:
@@ -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 = "外出审批"
|
||||
|
||||
Reference in New Issue
Block a user