| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | <record id="hr_employee_public_view_form" model="ir.ui.view"> |
| 4 | <field name="name">hr.employee.public.form.inherit.skills.slides</field> |
| 5 | <field name="model">hr.employee.public</field> |
| 6 | <field name="inherit_id" ref="hr.hr_employee_public_view_form"/> |
| 7 | <field name="arch" type="xml"> |
| 8 | <xpath expr="//div[@name='button_box']" position="inside"> |
| 9 | <field name="has_subscribed_courses" invisible="1" groups="website_slides.group_website_slides_officer"/> |
| 10 | <button name="action_open_courses" |
| 11 | class="oe_stat_button" |
| 12 | groups="website_slides.group_website_slides_officer" |
| 13 | icon="fa-graduation-cap" |
| 14 | type="object" |
| 15 | invisible="not is_user or not user_id or not has_subscribed_courses"> |
| 16 | <field name="courses_completion_text" widget="statinfo" string="Courses"/> |
| 17 | </button> |
| 18 | </xpath> |
| 19 | </field> |
| 20 | </record> |
| 21 | </odoo> |