You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
129 lines
6.5 KiB
129 lines
6.5 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<odoo>
|
|
<!-- Tree view of employee orientation-->
|
|
<record id="employee_orientation_view_tree" model="ir.ui.view">
|
|
<field name="name">employee.orientation.view.tree</field>
|
|
<field name="model">employee.orientation</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Employee Orientation">
|
|
<field name="employee_id"/>
|
|
<field name="department_id"/>
|
|
<field name="responsible_user_id"/>
|
|
<field name="orientation_id"/>
|
|
<field name="state"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<!-- Form view of employee orientation-->
|
|
<record id="employee_orientation_view_form" model="ir.ui.view">
|
|
<field name="name">employee.orientation.view.form</field>
|
|
<field name="model">employee.orientation</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Employee Orientation">
|
|
<header>
|
|
<button name="action_confirm_orientation" string="Confirm"
|
|
type="object" invisible="state !='draft'"
|
|
class="btn-primary"/>
|
|
<button name="action_complete_orientation"
|
|
string="Mark Done" type="object"
|
|
invisible="state !='confirm'" class="btn-primary"/>
|
|
<button name="action_cancel_orientation" string="Cancel"
|
|
type="object"
|
|
invisible="state not in ['draft','confirm']"/>
|
|
<field name="state" widget="statusbar"
|
|
statusbar_visible="draft,confirm,complete"/>
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<h1>
|
|
<field name="name" readonly="1"/>
|
|
</h1>
|
|
</div>
|
|
<group colspan="1" col="4" name="main">
|
|
<field name="employee_id"
|
|
readonly="state in ['confirm', 'complete']"/>
|
|
<field name="department_id"/>
|
|
<field name="date"
|
|
readonly="state in ['confirm', 'complete']"/>
|
|
<field name="job_id"
|
|
readonly="state in ['confirm', 'complete']"/>
|
|
<field name="responsible_user_id"
|
|
readonly="state in ['confirm', 'complete']"/>
|
|
<field name="parent_id"/>
|
|
<field name="employee_company_id"
|
|
readonly="state in ['confirm', 'complete']"/>
|
|
<field name="orientation_id"
|
|
readonly="state in ['confirm', 'complete']"/>
|
|
</group>
|
|
<notebook colspan="4">
|
|
<page name="checklist_lines"
|
|
string="Orientation Checklists Lines"
|
|
invisible="state not in ['complete','confirm']">
|
|
<field name="orientation_request_ids"
|
|
readonly="state not in ['confirm','draft']">
|
|
<tree string="lines" editable="bottom"
|
|
create="true">
|
|
<field name="request_name"/>
|
|
<field name="partner_id"/>
|
|
<field name="request_expected_date"/>
|
|
<field name="state"/>
|
|
</tree>
|
|
<form>
|
|
<group colspan="1" col="4" name="main">
|
|
<field name="request_name"/>
|
|
<field name="request_orientation_id"/>
|
|
<field name="employee_company_id"
|
|
readonly="1"/>
|
|
<field name="partner_id"/>
|
|
<field name="request_date"
|
|
readonly="1"/>
|
|
<field name="request_expected_date"/>
|
|
<field name="employee_id"
|
|
invisible="1"/>
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</page>
|
|
<page name="note_book"
|
|
string="Notes">
|
|
<field name="note" colspan="4" nolabel="1"/>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
<div class="oe_chatter">
|
|
<field name="message_follower_ids" widget="mail_followers"
|
|
groups="base.group_user"/>
|
|
<field name="message_ids" widget="mail_thread"/>
|
|
</div>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<!-- Search view of employee orientation-->
|
|
<record id="employee_orientation_view_search" model="ir.ui.view">
|
|
<field name="name">employee.orientation.view.search</field>
|
|
<field name="model">employee.orientation</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Employee Orientation">
|
|
<field name="employee_id"/>
|
|
<field name="department_id"/>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
<record model="ir.actions.act_window" id="employee_orientation_action">
|
|
<field name="name">Employee Orientation</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">employee.orientation</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="search_view_id" ref="employee_orientation_view_search"/>
|
|
<field name="help" type="html">
|
|
<field class="oe_view_nocontent_create">
|
|
Create Employee Orientation.
|
|
</field>
|
|
</field>
|
|
</record>
|
|
<!-- Menus of employee orientation-->
|
|
<menuitem action="employee_orientation_action"
|
|
id="employee_orientation_menu_action" name="Employee Orientation"
|
|
parent="employee_orientation_menu_root" sequence="1"
|
|
groups="hr.group_hr_manager,hr.group_hr_user"/>
|
|
</odoo>
|
|
|