Se rendre au contenu
Menu
Cette question a été signalée
4 Réponses
1327 Vues

Hello, how can i change in Employee view in Resume Tab the dates of the certifications / courses / Experience / other ? 

i want it to show

Date_start - Date_end  and a custom field that i created named x_expiry_date , i cant find the xml to edit it , or the view to edit it 

thank you in advance !!!

sorry i forgot to tell you that im on self hosted Odoo 17




Avatar
Ignorer
Auteur

Anyone ?

Meilleure réponse

This section of the form uses a widget to render the data in a more visual way. See https://github.com/odoo/odoo/blob/17.0/addons/hr_skills/views/hr_views.xml#L70

The template actually rendered seems to be https://github.com/odoo/odoo/blob/17.0/addons/hr_skills/static/src/xml/resume_templates.xml. You can not change this type of template using Studio.

Avatar
Ignorer
Auteur

Thank you for your time , im on community edition, So i can only change the view from outside odoo, in this path ? is there any way to change it from inside odoo without studio ?

If "outside Odoo" means in a custom module, sure. You'll have to inherit the template as described in this section: https://www.odoo.com/documentation/17.0/developer/reference/frontend/qweb.html#template-inheritance. No, this kind of template can not be changed from within Odoo UI.

Auteur Meilleure réponse

The big question for me is wehre can i change this , to add more lines , i cant find the xml that handles this .

Avatar
Ignorer
Meilleure réponse

In Odoo, the Resume View typically refers to the Kanban or Form View used to display applicant data in the Recruitment module. By default, it shows name, job title, and contact details.

Steps to Change Resume View (Using UI or Code)

Via Studio (Enterprise Only)

  1. Go to Recruitment > Applications.
  2. Click the Studio icon (top-right).
  3. Select the view you want to edit: Kanban, Form, or List.
  4. Drag & drop fields, rename labels, or change visibility.
  5. Save your changes.

Avatar
Ignorer
Meilleure réponse

Hi,


To edit employee resume data, the records are stored in the 'hr.resume.line' model. Therefore, you need to inherit the corresponding model and its view. Use the following example to add a field to the model.


<record id="resume_line_view_form" model="ir.ui.view">
<field name="name">hr.resume.line.form</field>
<field name="model">hr.resume.line</field>
<field name="inherit_id" ref="hr_skills.resume_line_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='line_type_id']" position="after">
<field name="your_field"/>
</xpath>
</field>
</record>


You need to define your field in the 'hr.resume.line' model.


Hope it helps.

Avatar
Ignorer
Auteur

i already have defined a field named x_expiry_date, but when i add it to the hr.resume.line Tree
i cant see it under resume in employees card , also tried
in models " Resume line of an employee" to add it in order " line_type_id, date_end desc, date_start desc, x_expiry_date desc" but still i cant see it

Publications associées Réponses Vues Activité
3
juin 25
2663
1
nov. 24
1761
0
sept. 25
344
2
mai 25
1139
1
févr. 25
1952