hr_applicant_skill_views.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="hr_applicant_skill_view_form" model="ir.ui.view">
  4. <field name="name">hr.applicant.skill.view.form</field>
  5. <field name="model">hr.applicant.skill</field>
  6. <field name="arch" type="xml">
  7. <form string="Skills" class="o_hr_skills_dialog_form">
  8. <sheet>
  9. <group>
  10. <group>
  11. <field name="applicant_id" invisible="1"/>
  12. <field name="skill_type_id" widget="radio" />
  13. </group>
  14. <group>
  15. <field name="skill_id" options="{'no_open': True, 'no_create_edit': True}"
  16. context="{'default_skill_type_id': skill_type_id}"
  17. domain="[('skill_type_id', '=', skill_type_id)]"
  18. attrs="{'invisible': [('skill_type_id', '=', False)]}"/>
  19. <label for="skill_level_id"
  20. attrs="{'invisible': ['|', ('skill_id', '=', False), ('skill_type_id', '=', False)]}"/>
  21. <div class="o_row"
  22. attrs="{'invisible': ['|', ('skill_id', '=', False), ('skill_type_id', '=', False)]}">
  23. <span class="ps-0" style="flex:1">
  24. <field name="skill_level_id"
  25. attrs="{'readonly': [('skill_id', '=', False)]}"
  26. context="{'from_skill_level_dropdown': True}" />
  27. </span>
  28. <span style="flex:1">
  29. <field name="level_progress" widget="progressbar" class="o_hr_skills_progress" attrs="{'invisible': [('skill_level_id', '=', False)]}" />
  30. </span>
  31. </div>
  32. </group>
  33. </group>
  34. </sheet>
  35. </form>
  36. </field>
  37. </record>
  38. </odoo>