hr_holidays_views.xml 1.1 KB

123456789101112131415161718192021222324
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="hr_holiday_status_view_form_inherit" model="ir.ui.view">
  4. <field name="name">hr.leave.type.form</field>
  5. <field name="model">hr.leave.type</field>
  6. <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
  7. <field name="arch" type="xml">
  8. <xpath expr="//group[@name='visual']" position="before">
  9. <group name="timesheet" groups="base.group_no_one" string="Timesheet">
  10. <group>
  11. <field name="timesheet_project_id" context="{'active_test': False}"/>
  12. <field name="company_id" invisible="1"/>
  13. <field name="timesheet_task_id" context="{'active_test': False, 'default_project_id': timesheet_project_id}" attrs="
  14. {'invisible': [('timesheet_project_id', '=', False)], 'required': [('timesheet_project_id', '!=', False)]}"/>
  15. <field name="timesheet_generate" invisible="1"/>
  16. </group>
  17. </group>
  18. </xpath>
  19. </field>
  20. </record>
  21. </odoo>