#fix:Leave Screen
This commit is contained in:
parent
445bc8e6d4
commit
d0ed9e4e9d
|
|
@ -19,7 +19,7 @@ class HrLeaveAllocation(models.Model):
|
|||
('validate', 'Approved'),
|
||||
('refuse', 'Rejected'),
|
||||
],
|
||||
string='Status',
|
||||
string='Status',default='draft',
|
||||
tracking=True,copy=False)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -29,4 +29,27 @@
|
|||
</xpath>
|
||||
</field>
|
||||
</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">
|
||||
|
||||
<!-- <!– First statusbar –>-->
|
||||
<!-- <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>
|
||||
Loading…
Reference in New Issue