File: hr_employee_views.xml

package info (click to toggle)
odoo 18.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 878,716 kB
  • sloc: javascript: 927,937; python: 685,670; xml: 388,524; sh: 1,033; sql: 415; makefile: 26
file content (28 lines) | stat: -rw-r--r-- 1,392 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="hr_employee_view_form" model="ir.ui.view">
        <field name="name">hr.employee.view.form.inherit.resume.slides</field>
        <field name="model">hr.employee</field>
        <field name="priority" eval="45" />
        <field name="inherit_id" ref="hr.view_employee_form"/>
        <field name="arch" type="xml">
            <xpath expr="//field[@name='line_type_id']" position="after">
                <field name="course_url" column_invisible="True"/>
            </xpath>
            <xpath expr="//field[@name='company_country_code']" position="after">
                <field name="user_id" invisible="1"/>
            </xpath>
            <xpath expr="//div[@name='button_box']" position="inside">
                <field name="has_subscribed_courses" invisible="1" groups="website_slides.group_website_slides_officer"/>
                <button name="action_open_courses"
                    class="oe_stat_button"
                    groups="website_slides.group_website_slides_officer"
                    icon="fa-graduation-cap"
                    type="object"
                    invisible="not user_id or not has_subscribed_courses">
                    <field name="courses_completion_text" widget="statinfo" string="Courses"/>
                </button>
            </xpath>
        </field>
    </record>
</odoo>