resource_calendar_views.xml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="resource_calendar_leaves_view_search_inherit" model="ir.ui.view">
  4. <field name="name">resource.calendar.leaves.search.inherit</field>
  5. <field name="model">resource.calendar.leaves</field>
  6. <field name="inherit_id" ref="resource.view_resource_calendar_leaves_search"/>
  7. <field name="arch" type="xml">
  8. <filter name="resource" position="after">
  9. <field name="work_entry_type_id" groups="hr.group_hr_user"/>
  10. <filter name="work_entry" string="Work Entry Type" context="{'group_by':'work_entry_type_id'}" groups="hr.group_hr_user"/>
  11. </filter>
  12. </field>
  13. </record>
  14. <record id="resource_calendar_attendance_view_tree" model="ir.ui.view">
  15. <field name="name">resource.calendar.attendance.tree.inherit.hr.work.entry</field>
  16. <field name="model">resource.calendar.attendance</field>
  17. <field name="inherit_id" ref="resource.view_resource_calendar_attendance_tree"/>
  18. <field name="arch" type="xml">
  19. <field name="week_type" position="after">
  20. <field name="work_entry_type_id"/>
  21. </field>
  22. </field>
  23. </record>
  24. <record id="resource_calendar_attendance_view_form" model="ir.ui.view">
  25. <field name="name">resource.calendar.attendance.form.inherit.hr.work.entry</field>
  26. <field name="model">resource.calendar.attendance</field>
  27. <field name="inherit_id" ref="resource.view_resource_calendar_attendance_form"/>
  28. <field name="arch" type="xml">
  29. <field name="day_period" position="after">
  30. <field name="work_entry_type_id"/>
  31. </field>
  32. </field>
  33. </record>
  34. <record id="resource_calendar_leave_view_form" model="ir.ui.view">
  35. <field name="name">resource.calendar.leaves.form.inherit.hr.work.entry</field>
  36. <field name="model">resource.calendar.leaves</field>
  37. <field name="inherit_id" ref="resource.resource_calendar_leave_form"/>
  38. <field name="arch" type="xml">
  39. <field name="resource_id" position="after">
  40. <field name="work_entry_type_id"/>
  41. </field>
  42. </field>
  43. </record>
  44. <record id="resource_calendar_leave_view_tree" model="ir.ui.view">
  45. <field name="name">resource.calendar.leaves.tree.inherit.hr.work.entry</field>
  46. <field name="model">resource.calendar.leaves</field>
  47. <field name="inherit_id" ref="resource.resource_calendar_leave_tree"/>
  48. <field name="arch" type="xml">
  49. <field name="date_to" position="after">
  50. <field name="work_entry_type_id"/>
  51. </field>
  52. </field>
  53. </record>
  54. </odoo>