123456789101112131415161718192021222324 |
- <?xml version="1.0" encoding="utf-8"?>
- <odoo>
- <record id="hr_holiday_status_view_form_inherit" model="ir.ui.view">
- <field name="name">hr.leave.type.form</field>
- <field name="model">hr.leave.type</field>
- <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
- <field name="arch" type="xml">
- <xpath expr="//group[@name='visual']" position="before">
- <group name="timesheet" groups="base.group_no_one" string="Timesheet">
- <group>
- <field name="timesheet_project_id" context="{'active_test': False}"/>
- <field name="company_id" invisible="1"/>
- <field name="timesheet_task_id" context="{'active_test': False, 'default_project_id': timesheet_project_id}" attrs="
- {'invisible': [('timesheet_project_id', '=', False)], 'required': [('timesheet_project_id', '!=', False)]}"/>
- <field name="timesheet_generate" invisible="1"/>
- </group>
- </group>
- </xpath>
- </field>
- </record>
- </odoo>
|