#fix:Leave Screen

This commit is contained in:
seshikanth 2026-07-07 11:41:17 +05:30
parent 445bc8e6d4
commit d0ed9e4e9d
2 changed files with 24 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class HrLeaveAllocation(models.Model):
('validate', 'Approved'), ('validate', 'Approved'),
('refuse', 'Rejected'), ('refuse', 'Rejected'),
], ],
string='Status', string='Status',default='draft',
tracking=True,copy=False) tracking=True,copy=False)

View File

@ -29,4 +29,27 @@
</xpath> </xpath>
</field> </field>
</record> </record>
<record id="view_hr_leave_allocation_form_manager_inherit" model="ir.ui.view">
<field name="name">hr.leave.allocation.form.manager.inherit</field>
<field name="model">hr.leave.allocation</field>
<field name="inherit_id" ref="hr_holidays.hr_leave_allocation_view_form_manager"/>
<field name="arch" type="xml">
<!-- &lt;!&ndash; First statusbar &ndash;&gt;-->
<!-- <xpath expr="//field[@name='state'][1]" position="replace">-->
<!-- <field name="state"-->
<!-- widget="statusbar"-->
<!-- statusbar_visible="draft,submitted,confirm,validate1,validate"/>-->
<!-- </xpath>-->
<!-- Second statusbar -->
<xpath expr="//field[@name='state'][2]" position="replace">
<field name="state"
widget="statusbar"
statusbar_visible="draft,submitted,validate"/>
</xpath>
</field>
</record>
</odoo> </odoo>