hr_applicant_views.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="hr_applicant_view_form" model="ir.ui.view">
  4. <field name="name">hr.applicant.view.form.inherit.hr.recruitment.skills</field>
  5. <field name="model">hr.applicant</field>
  6. <field name="inherit_id" ref="hr_recruitment.hr_applicant_view_form"/>
  7. <field name="arch" type="xml">
  8. <notebook position="inside">
  9. <page string="Skills">
  10. <div class="row">
  11. <div class="o_hr_skills_editable o_hr_skills_group o_group_skills col-lg-5 d-flex flex-column">
  12. <field name="id" invisible="1"/>
  13. <field name="is_interviewer" invisible="1"/>
  14. <field mode="tree" nolabel="1" name="applicant_skill_ids" widget="skills_one2many"
  15. context="{'default_applicant_id': id}" attrs="{'readonly': [('is_interviewer', '=', True)]}">
  16. <tree>
  17. <field name="skill_type_id" invisible="1"/>
  18. <field name="skill_id"/>
  19. <field name="skill_level_id"/>
  20. <field name="level_progress" widget="progressbar"/>
  21. </tree>
  22. </field>
  23. </div>
  24. </div>
  25. </page>
  26. </notebook>
  27. </field>
  28. </record>
  29. <record id="hr_applicant_view_search_bis" model="ir.ui.view">
  30. <field name="name">hr.applicant.view.search.inherit.skills.bis</field>
  31. <field name="model">hr.applicant</field>
  32. <field name="inherit_id" ref="hr_recruitment.hr_applicant_view_search_bis"/>
  33. <field name="arch" type="xml">
  34. <xpath expr="//field[@name='email_from']" position="after">
  35. <field name="applicant_skill_ids"/>
  36. </xpath>
  37. <filter name="refuse_reason_id" position="after">
  38. <filter string="Skills" name="groupby_skills" context="{'group_by': 'skill_ids'}"/>
  39. </filter>
  40. </field>
  41. </record>
  42. <record id="hr_applicant_view_search" model="ir.ui.view">
  43. <field name="name">hr.applicant.view.search.inherit.skills</field>
  44. <field name="model">hr.applicant</field>
  45. <field name="inherit_id" ref="hr_recruitment.hr_applicant_view_search"/>
  46. <field name="arch" type="xml">
  47. <xpath expr="//field[@name='user_id']" position="after">
  48. <field name="applicant_skill_ids"/>
  49. </xpath>
  50. <filter name="stage" position="after">
  51. <filter string="Skills" name="groupby_skills" context="{'group_by': 'skill_ids'}"/>
  52. </filter>
  53. </field>
  54. </record>
  55. </odoo>