添加功能

This commit is contained in:
zhouzhou
2024-11-10 10:09:22 +00:00
committed by 李鹏宇
parent 40d0f66c92
commit ae4e2bfb4b
@@ -5,6 +5,9 @@
<field name="model">hr.leave.allocation</field>
<field name="inherit_id" ref="hr_holidays.hr_leave_allocation_view_tree"/>
<field name="arch" type="xml">
<xpath expr="//tree" position="attributes">
<attribute name="editable">bottom</attribute>
</xpath>
<xpath expr="//tree/field[@name='duration_display']" position="attributes">
<attribute name="string">假期余额</attribute>
</xpath>
@@ -32,9 +35,6 @@
<field name="new_employee_holidays" invisible="holiday_type != 'employee'"/>
<field name="holiday_month" invisible="new_employee_holidays != 'limit'"/>
</xpath>
<xpath expr="//div[@name='validity_label']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
</field>
</record>
</odoo>