Files
gzth/yuthon_hr_employee/views/yuthon_hr_employee_views.xml
T
2026-02-03 17:52:24 +08:00

721 lines
38 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_basic_personal_information" model="ir.ui.view">
<field name="name">hr.employee.basic.personal.information</field>
<field name="model">hr.employee</field>
<field name="arch" type="xml">
<form string="个人基础信息" create="false" delete="0">
<sheet>
<div class="d-flex justify-content-between align-items-center">
<div class="oe_title">
<label for="name"/>
<h1>
<field name="name" readonly="1"/>
</h1>
</div>
<div class="o_employee_avatar m-0 p-0">
<field name="image_1920" widget="image" class="oe_avatar m-0"
options="{&quot;zoom&quot;: true, &quot;preview_image&quot;:&quot;avatar_128&quot;}"/>
</div>
</div>
<group col="2" readonly="1">
<group>
<field name="mobile_phone"/>
<field name="work_phone"/>
<field name="work_email"/>
<field name="user_state" readonly="1" options="{'no_open': True}"/>
<field name="user_role_id" readonly="1" invisible="1"/>
<field name="user_role_ids" widget="many2many_tags" invisible="1"/>
<field name="company_id" readonly="1" options="{'no_open': True}"/>
</group>
<group>
<field name="department_id" readonly="1" options="{'no_open': True}"/>
<field name="department_ids" widget="many2many_tags" readonly="1"
options="{'no_open': True}"/>
<field name="job_id" options="{'no_open': True}"/>
<field name="number" readonly="1"/>
<field name="user_number" readonly="1"/>
<field name="contract_type_id" options="{'no_open': True}"/>
<field name="parent_id" readonly="1" options="{'no_open': True}" string="上级领导"/>
</group>
</group>
<notebook>
<page string="工作经历">
<field name="work_experience_ids">
<tree editable="bottom">
<field name="employee_id" column_invisible="1"/>
<field name="start_date"/>
<field name="end_date"/>
<field name="work_place"/>
<field name="post"/>
<field name="contact_user"/>
<field name="phone_number"/>
<field name="reason_leaving"/>
</tree>
</field>
</page>
<page string="教育经历">
<field name="education_experience_ids">
<tree editable="bottom">
<field name="employee_id" column_invisible="1"/>
<field name="learning_style"/>
<field name="name_school"/>
<field name="start_date"/>
<field name="end_date"/>
<field name="part_time_degree"/>
<field name="full_time_degree"/>
<field name="professional"/>
<field name="documents_ids" widget="preview_many2many"/>
</tree>
</field>
</page>
<page name="技能证书管理">
<field name="skills_certificates_ids">
<tree editable="bottom">
<field name="rank_name"/>
<field name="rank_type"/>
<field name="rank_time"/>
<field name="documents_ids" widget="preview_many2many"/>
</tree>
</field>
</page>
<page string="紧急联系人">
<field name="emergency_contact_ids">
<tree editable="bottom">
<field name="employee_id" column_invisible="1"/>
<field name="name"/>
<field name="user_relationship"/>
<field name="user_sfz"/>
<field name="workplace"/>
<field name="post"/>
<field name="phone_number"/>
<field name="home_address"/>
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="view_employee_inherit_del_form" model="ir.ui.view">
<field name="name">hr.employee.inherit.del.form.inherit</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<!-- 源码的信息暂时隐藏 -->
<xpath expr="//form" position="attributes">
<attribute name="create">0</attribute>
</xpath>
<xpath expr="//button[@name='487']" position="after">
<button name="employee_log" string="余额扣减日志" type="object" class="oe_highlight"/>
</xpath>
<xpath expr="//field[@name='parent_id']" position="attributes">
<attribute name="string">上级领导</attribute>
<attribute name="options">"{'no_create': True}"</attribute>
</xpath>
<xpath expr="//field[@name='coach_id']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='resource_calendar_id']" position="attributes">
<attribute name="readonly">1</attribute>
<attribute name="options">"{'no_open': True}"</attribute>
</xpath>
<xpath expr="//field[@name='tz']" position="attributes">
<attribute name="readonly">1</attribute>
</xpath>
<xpath expr="//page[@name='skills_resume']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='company_id']" position="attributes">
<attribute name="options">"{'no_open': True}"</attribute>
</xpath>
<xpath expr="//field[@name='work_email']" position="attributes">
<attribute name="options">"{'no_open': True}"</attribute>
</xpath>
<xpath expr="//field[@name='department_id']" position="attributes">
<attribute name="options">"{'no_open': True}"</attribute>
</xpath>
<xpath expr="//field[@name='work_email']" position="after">
<field name="user_state"/>
<field name="user_role_id" domain="[('company_id', '=', company_id), ('is_main', '=', True)]"
options="{'no_open': True}"/>
<field name="user_role_ids" widget="many2many_tags"
domain="[('company_id', '=', company_id), ('is_main', '!=', True)]" options="{'no_open': True}"/>
</xpath>
<xpath expr="//field[@name='department_id']" position="attributes">
<attribute name="widget">ztree_select</attribute>
</xpath>
<xpath expr="//field[@name='department_id']" position="after">
<field name="department_ids" widget="many2many_tags"/>
<field name="role_group_ids" column_invisible="1" widget="many2many_tags"/>
</xpath>
<xpath expr="//field[@name='bank_account_id']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//page[@name='personal_information']" position="replace">
<page name="personal_information" string="个人隐私信息">
<group>
<group string="基本信息">
<field name="private_street" string="家庭住址"/>
<field name="user_origin"/>
<field name="user_location"/>
<field name="is_location" invisible="1"/>
<field name="hukou_documents_id" invisible="not is_location" widget="preview_many2one"/>
<field name="user_location_type"/>
<field name="private_email" string="邮箱"/>
<field name="private_phone" string="电话"/>
<field name="pinyin_name"/>
<field name="pinyin_min"/>
<!-- 增加两个字段 -->
<field name="is_soldiers"/>
<field name="job_lv_salary"/>
<field name="bank_account_id" context="{'default_partner_id': work_contact_id}"
options="{'no_quick_create': True}" readonly="not id"/>
</group>
<group string="基本信息">
<field name="identification_id"/>
<field name="user_sex"/>
<field name="user_number_start_time"/>
<field name="user_number_end_time"/>
<field name="nation"/>
<field name="birthday"/>
<label for="old"/>
<div>
<field name="old" style="width: 5%"/>
</div>
<label for="birthday_month"/>
<div>
<field name="birthday_month" style="width: 5%"/>
</div>
<field name="political_aspects"/>
<field name="dang_data"/>
<!-- 原字段的关联 暂时保留并隐藏 -->
<field name="country_of_birth" invisible="1"/>
</group>
<group string="教育">
<field name="high_degree"/>
<field name="high_degree2"/>
<field name="job_lv_change"/>
<field name="move_note_date"/>
</group>
<group string="家庭状态">
<field name="marital"/>
<field name="marriage_documents_id" invisible="marital != 'married'"
options="{'no_create': True}"
widget="preview_many2one"/>
<field name="spouse_complete_name" invisible="marital not in ['married', 'cohabitant']"/>
<field name="spouse_birthdate" invisible="marital not in ['married', 'cohabitant']"/>
</group>
</group>
</page>
</xpath>
<xpath expr="//group[@name='identification_group']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='job_id']" position="attributes">
<attribute name="options">"{'no_open': True}"</attribute>
</xpath>
<xpath expr="//field[@name='parent_id']" position="attributes">
<attribute name="options">"{'no_create': True, 'no_open': True}"</attribute>
</xpath>
<xpath expr="//field[@name='job_id']" position="after">
<field name="number"/>
<field name="user_number"/>
<field name="contract_type_id" options="{'no_open': True}"/>
</xpath>
<xpath expr="//field[@name='department_id']" position="attributes">
<attribute name="readonly">1</attribute>
</xpath>
<xpath expr="//field[@name='job_id']" position="attributes">
<attribute name="readonly">1</attribute>
</xpath>
<xpath expr="//field[@name='identification_id']" position="after">
<field name="is_identification" invisible="1"/>
<field name="card_documents_id" widget="preview_many2one" invisible="not is_identification"/>
<field name="card_back_documents_id" widget="preview_many2one" invisible="not is_identification"/>
</xpath>
<xpath expr="//button[@name='487']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='category_ids']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='wecom_userid']" position="after">
<field name="user_type"/>
<field name="retire_date"/>
<label for="retire_years"/>
<div>
<field name="retire_years" style="width: 5%"/>
</div>
<field name="user_salary"/>
</xpath>
<xpath expr="//group[@name='active_group']" position="after">
<group string="工作信息">
<field name="entry_date"/>
<field name="confirmation_date"/>
<field name="company_old"/>
<field name="regularization_year" invisible="1"/>
<field name="open_start_time"/>
<field name="cumulative_work_month"/>
<field name="cumulative_work_years"/>
<field name="interrupt_work_month"/>
<field name="compute_month" invisible="1"/>
<field name="compute_char"/>
<field name="social_insurance_date"/>
<field name="social_insurance_time"/>
<field name="late_allowed"/>
<field name="is_annual_salary"/>
<field name="is_accum_salary"/>
<field name="is_membership"/>
</group>
<group string="其他">
<field name="archiving_agency"/>
<field name="over_data_time"/>
<field name="employment_registration"/>
<field name="seniority_prize_pick_up_status"/>
</group>
</xpath>
<xpath expr="//page[@name='public']//group[@name='departure']" position="after">
<group string="工资计算" col="2">
<group>
<field name="salary_group_id" options="{'no_create': True}"/>
<field name="subsidy_amount" invisible="1"/>
<field name="security_amount" invisible="1"/>
<field name="salary_year" invisible="1"/>
<field name="last_year_salary"/>
<field name="social_base_on"/>
<field name="social_base_off"/>
<field name="medical_insurance_base"/>
<field name="pension_insurance_base"/>
<field name="work_injury_insurance_base"/>
<field name="housing_fund_base"/>
<field name="done_leave" invisible="1"/>
<field name="done_working_overtime" invisible="1"/>
<field name="compensatory_leave" invisible="1"/>
<field name="leave_of_absence" invisible="1"/>
<field name="statutory_leave" invisible="1"/>
<field name="cop_leave" invisible="1"/>
<field name="duty_off_leave" invisible="1"/>
<field name="marriage_leave" invisible="1"/>
<field name="maternity_leave" invisible="1"/>
<field name="paternity_leave" invisible="1"/>
<field name="family_planning_leave" invisible="1"/>
<field name="bereavement_leave" invisible="1"/>
<field name="home_visit_leave" invisible="1"/>
<field name="parents_meeting_leave" invisible="1"/>
<field name="general_sick_leave" invisible="1"/>
<field name="hospital_sick_leave" invisible="1"/>
<field name="recovery_sick_leave" invisible="1"/>
<field name="exam_leave" invisible="1"/>
<field name="salary_month" invisible="1"/>
<field name="salary_medical_insurance" invisible="1"/>
<field name="salary_insurance" invisible="1"/>
<field name="salary_work_injury_insurance" invisible="1"/>
<field name="salary_housing_fund" invisible="1"/>
</group>
<group>
<field name="converted"/>
<field name="total_coefficients" invisible="1"/>
<field name="salary_year_jin_ids" widget="many2many_tags" invisible="1"/>
<field name="conversion_factor"/>
<field name="calculation_totals"/>
</group>
</group>
<group col="2">
<group>
<field name="last_month_base_salary_deduction"/>
<field name="last_month_performance_deduction"/>
<field name="last_month_commuting_deduction"/>
<field name="is_salary"/>
<field name="last_attendance"/>
</group>
</group>
<group name="overtime" string="加班" col="3">
<group>
<field name="normal_overtime_hours" readonly="0"/>
<field name="weekend_overtime_hours" readonly="0"/>
<field name="holiday_overtime_hours" readonly="0"/>
<field name="all_overtime_hours" readonly="1"/>
<field name="overtime_this_month" readonly="1"/>
<field name="late_allowed" readonly="1"/>
</group>
<group>
<field name="normal_overtime_hours1" readonly="0"/>
<field name="weekend_overtime_hours1" readonly="0"/>
<field name="holiday_overtime_hours1" readonly="0"/>
<field name="result_overtime" readonly="1"/>
<field name="overtime_last_month" readonly="1"/>
</group>
</group>
<group>
<field name="holiday_hours"/>
<field name="replacement_card_count"/>
<field name="duty_replacement_card"/>
<field name="meal_number"/>
<field name="meal_supplement"/>
</group>
<group name="holiday" string="假期" col="2">
<group>
<field name="previous_balance"/>
<field name="quota_issued"/>
<field name="user_year"/>
<field name="remainder_year"/>
<field name="deadline"/>
<field name="cumulative_hours"/>
<field name="all_year"/>
</group>
</group>
</xpath>
<xpath expr="//page[@name='hr_settings']" position="before">
<page string="工作经历">
<field name="work_experience_ids">
<tree editable="bottom">
<field name="employee_id" column_invisible="1"/>
<field name="start_date"/>
<field name="end_date"/>
<field name="work_place"/>
<field name="post"/>
<field name="contact_user"/>
<field name="phone_number"/>
<field name="reason_leaving"/>
</tree>
</field>
</page>
<page string="教育经历">
<field name="education_experience_ids">
<tree editable="bottom">
<field name="employee_id" column_invisible="1"/>
<field name="learning_style"/>
<field name="name_school"/>
<field name="start_date"/>
<field name="end_date"/>
<field name="part_time_degree"/>
<field name="full_time_degree"/>
<field name="professional"/>
<field name="documents_ids" widget="preview_many2many"/>
</tree>
</field>
</page>
<page name="技能证书管理">
<field name="skills_certificates_ids">
<tree editable="bottom">
<field name="rank_name"/>
<field name="rank_type"/>
<field name="rank_time"/>
<field name="documents_ids" widget="preview_many2many"/>
</tree>
</field>
</page>
<page string="紧急联系人">
<field name="emergency_contact_ids">
<tree editable="bottom">
<field name="employee_id" column_invisible="1"/>
<field name="name"/>
<field name="user_relationship"/>
<field name="user_sfz"/>
<field name="workplace"/>
<field name="post"/>
<field name="phone_number"/>
<field name="home_address"/>
</tree>
</field>
</page>
<page string="专项扣除" name="deduction">
<group string="3岁以下婴幼儿照护">
<field name="care_line_ids" string=" ">
<tree editable="bottom">
<field name="employee_id" column_invisible="1"/>
<field name="name"/>
<field name="date"/>
<field name="deduction"/>
</tree>
</field>
</group>
<group string="子女教育">
<field name="education_line_ids" string=" ">
<tree editable="bottom">
<field name="employee_id" column_invisible="1"/>
<field name="name"/>
<field name="start_date"/>
<field name="end_date"/>
<field name="deduction"/>
</tree>
</field>
</group>
<group string="赡养老人">
<field name="support_line_ids" string=" ">
<tree editable="bottom">
<field name="employee_id" column_invisible="1"/>
<field name="name"/>
<field name="date"/>
<field name="deduction"/>
</tree>
</field>
</group>
<group col="3" string="大病医疗">
<group>
<field name="hospital_name"/>
</group>
<group>
<field name="hospital_related"/>
</group>
<group>
<field name="original_amount"/>
</group>
</group>
<group col="3" string="维续教育">
<group>
<field name="education_name"/>
</group>
<group>
<field name="education_end_date"/>
</group>
<group>
<field name="education_deduction"/>
</group>
</group>
<group col="3" string="住房贷款">
<group>
<field name="loan_name"/>
</group>
<group>
<field name="loan_end_date"/>
</group>
<group>
<field name="loan_deduction"/>
</group>
</group>
<group col="3" string="住房租金">
<group>
<field name="rent_name"/>
</group>
<group>
<field name="rent_end_date"/>
</group>
<group>
<field name="rent_deduction"/>
</group>
</group>
</page>
</xpath>
</field>
</record>
<record id="view_employee_inherit_del_tree" model="ir.ui.view">
<field name="name">hr.employee.inherit.del.tree</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_tree"/>
<field name="arch" type="xml">
<xpath expr="//tree" position="replace">
<tree string="员工列表" banner_route="/employee/banner/route" limit="15"
decoration-info="end_comparison == 'blue'"
decoration-danger="end_comparison == 'red'"
decoration-warning="end_comparison == 'yellow'"
>
<header>
</header>
<field name="end_comparison" column_invisible="1"/>
<field name="name"/>
<field name="department_id"/>
<field name="job_id"/>
<field name="work_phone"/>
<field name="mobile_phone"/>
<field name="work_email"/>
<field name="political_aspects"/>
<field name="dang_data"/>
<field name="contract_type_id"/>
<field name="date_end"/>
<!-- <field name="version"/>-->
<field name="identification_id"/>
<field name="user_sex"/>
<field name="nation"/>
<field name="birthday_month"/>
<field name="old"/>
<field name="entry_date"/>
<field name="confirmation_date"/>
<field name="interrupt_work_month"/>
<field name="cumulative_work_month"/>
<field name="cumulative_work_years"/>
<field name="graduate_school"/>
<field name="profession"/>
<field name="high_degree"/>
<field name="high_degree2"/>
<field name="graduate_date"/>
<field name="user_type"/>
<field name="user_number"/>
<field name="company_id"/>
<field name="work_location_id" column_invisible="1"/>
</tree>
</xpath>
</field>
</record>
<!--通讯录 -->
<record id="view_employee_contacts_tree" model="ir.ui.view">
<field name="name">hr.employee.inherit.del.form</field>
<field name="model">hr.employee</field>
<field name="arch" type="xml">
<tree string="通讯录" create="false" delete="false" editable="bottom">
<field name="name" readonly="1"/>
<field name="department_id" readonly="1"/>
</tree>
</field>
</record>
<record id="member_view_search" model="ir.ui.view">
<field name="name">hr.employee.search</field>
<field name="model">hr.employee</field>
<field name="arch" type="xml">
<search string="工会会员">
<field name="name"/>
<field name="department_id"/>
</search>
</field>
</record>
<!--会员列表-->
<record id="view_employee_member_tree" model="ir.ui.view">
<field name="name">hr.employee.member</field>
<field name="model">hr.employee</field>
<field name="arch" type="xml">
<tree string="会员列表" create="false" delete="false" editable="bottom">
<field name="name" readonly="1"/>
<field name="work_phone" readonly="1"/>
<field name="department_id" readonly="1" options='{"no_open": True, "no_create": True}'/>
<field name="job_id" readonly="1" options='{"no_open": True, "no_create": True}'/>
<field name="is_company" column_invisible="1"/>
<field name="company_id" column_invisible="1"/>
</tree>
</field>
</record>
<!--手机转交-->
<record id="view_employee_phone_tree" model="ir.ui.view">
<field name="name">hr.employee.member</field>
<field name="model">hr.employee</field>
<field name="arch" type="xml">
<tree string="人员" create="false" delete="false" editable="bottom">
<field name="name" readonly="1"/>
<field name="department_id" readonly="1" options='{"no_open": True, "no_create": True}'/>
</tree>
</field>
</record>
<record id="view_employee_inherit_filter" model="ir.ui.view">
<field name="name">hr.employee.inherit.search</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_filter"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='job_id']" position="after">
<field name="pinyin_name"/>
<field name="pinyin_min"/>
</xpath>
<xpath expr="//filter[@name='group_manager']" position="after">
<filter name="group_is_membership" string="工会会员" context="{'group_by': 'is_membership'}"/>
</xpath>
<xpath expr="//search" position="inside">
<header_search class="header-search-inline">
<field name="role_group_ids"/>
</header_search>
</xpath>
<xpath expr="//searchpanel" position="inside">
<field string="状态" name="user_state" />
<field name="end_comparison"/>
</xpath>
</field>
</record>
<record id="all_data_write_user" model="ir.actions.server">
<field name="name">批量更新员工</field>
<field name="model_id" ref="hr.model_hr_employee"/>
<field name="binding_model_id" ref="hr.model_hr_employee"/>
<field name="state">code</field>
<field name="code">action = model.action_hr_employee()</field>
<field name="groups_id" eval="[(4, ref('base.group_system'))]"/>
</record>
<record id="all_write_social_base" model="ir.actions.server">
<field name="name">更新公积金</field>
<field name="model_id" ref="hr.model_hr_employee"/>
<field name="binding_model_id" ref="hr.model_hr_employee"/>
<field name="state">code</field>
<field name="code">action = model.update_social_base()</field>
<field name="groups_id" eval="[(4, ref('base.group_system'))]"/>
</record>
<record id="hr.open_view_employee_list_my" model="ir.actions.act_window">
<field name="view_mode">tree,kanban,form,activity,graph,pivot,hierarchy</field>
<field name="view_ids" eval="[(5, 0, 0),
(0, 0, {'view_mode': 'tree', 'view_id': ref('hr.view_employee_tree')}),
(0, 0, {'view_mode': 'form', 'view_id': ref('hr.view_employee_form')})]"/>
</record>
<record id="all_employee_contacts_action" model="ir.actions.act_window">
<field name="name">通讯录</field>
<field name="res_model">hr.employee</field>
<field name="domain">[('is_company', '=', True)]</field>
<field name="view_mode">tree,kanban,form,search</field>
<field name="view_ids" eval="[(5, 0, 0),
(0, 0, {'view_mode': 'tree', 'view_id': ref('yuthon_hr_employee.view_employee_contacts_tree')}),
(0, 0, {'view_mode': 'form', 'view_id': ref('hr.view_employee_form')})]"/>
</record>
<record id="action_server_my_employee" model="ir.actions.server">
<field name="name">个人基础信息</field>
<field name="model_id" ref="hr.model_hr_employee"/>
<field name="binding_model_id" ref="hr.model_hr_employee"/>
<field name="state">code</field>
<field name="code">
action = model.get_my_employee_action()
</field>
</record>
<record id="action_password_reset_board" model="ir.actions.server">
<field name="name">重置密码</field>
<field name="model_id" ref="hr.model_hr_employee"/>
<field name="binding_model_id" ref="hr.model_hr_employee"/>
<field name="state">code</field>
<field name="code">
action = model.change_password_wizard()
</field>
</record>
<record id="all_employee_member_action" model="ir.actions.act_window">
<field name="name">会员列表</field>
<field name="res_model">hr.employee</field>
<field name="domain">[('is_membership', '=', True), ('is_company', '=', True)]</field>
<field name="view_mode">tree,kanban,form,search</field>
<field name="view_ids" eval="[(5, 0, 0),
(0, 0, {'view_mode': 'tree', 'view_id': ref('yuthon_hr_employee.view_employee_member_tree')}),
(0, 0, {'view_mode': 'form', 'view_id': ref('hr.view_employee_form')})]"/>
<field name="search_view_id" ref="member_view_search"/>
</record>
<record id="hr.open_view_employee_list_my" model="ir.actions.act_window">
<field name="view_mode">tree,kanban,form,activity,graph,pivot,hierarchy</field>
</record>
<!-- <record id="all_data_write_time_form" model="ir.actions.server">-->
<!-- <field name="name">批量更新时间表</field>-->
<!-- <field name="model_id" ref="hr.model_hr_employee"/>-->
<!-- <field name="binding_model_id" ref="hr.model_hr_employee"/>-->
<!-- <field name="state">code</field>-->
<!-- <field name="code">action = model.action_hr_time_form()</field>-->
<!-- </record>-->
<record id="all_data_write_employee_state" model="ir.actions.server">
<field name="name">更新员工主角色</field>
<field name="model_id" ref="hr.model_hr_employee"/>
<field name="binding_model_id" ref="hr.model_hr_employee"/>
<field name="state">code</field>
<field name="code">action = model.action_hr_state()</field>
</record>
<record id="all_update_role_group" model="ir.actions.server">
<field name="name">更新员工角色组</field>
<field name="model_id" ref="hr.model_hr_employee"/>
<field name="binding_model_id" ref="hr.model_hr_employee"/>
<field name="state">code</field>
<field name="code">action = model.update_role_group_ids()</field>
</record>
<!-- <record id="view_employee_form_inherit_hr_attendance" model="ir.ui.view">-->
<!-- <field name="name">hr.employee.attendance.form</field>-->
<!-- <field name="model">hr.employee</field>-->
<!-- <field name="inherit_id" ref="hr_attendance.view_employee_form_inherit_hr_attendance"/>-->
<!-- <field name="arch" type="xml">-->
<!-- &lt;!&ndash; 源码的信息暂时隐藏 &ndash;&gt;-->
<!-- <xpath expr="//group[@name='managers']" position="attributes">-->
<!-- <attribute name="invisible">1</attribute>-->
<!-- </xpath>-->
<!-- </field>-->
<!-- </record>-->
</odoo>