yun_product/yuthon_salary/views/employee_salary_views.xml
2026-07-30 19:56:43 +08:00

139 lines
6.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_employee_salary_tree" model="ir.ui.view">
<field name="name">yuthon.employee.salary.tree</field>
<field name="model">yuthon.employee.salary</field>
<field name="arch" type="xml">
<list>
<field name="name"/>
<field name="employee_id"/>
<field name="department_id"/>
<field name="job_id"/>
<field name="teacher_title"/>
<field name="basic_salary"/>
<field name="state" widget="badge" decoration-success="state == 'active'" decoration-muted="state == 'draft'" decoration-danger="state == 'resigned'"/>
</list>
</field>
</record>
<record id="view_employee_salary_form" model="ir.ui.view">
<field name="name">yuthon.employee.salary.form</field>
<field name="model">yuthon.employee.salary</field>
<field name="arch" type="xml">
<form>
<header>
<button name="action_activate" string="生效" type="object" class="oe_highlight" invisible="state != 'draft'"/>
<button name="action_suspend" string="停薪" type="object" invisible="state != 'active'"/>
<button name="action_resign" string="离职" type="object" invisible="state not in ('active', 'suspended')"/>
<field name="state" widget="statusbar" statusbar_visible="draft,active,suspended,resigned"/>
</header>
<sheet>
<div class="oe_title">
<h1>
<field name="name" readonly="1"/>
</h1>
</div>
<group>
<group string="基本信息">
<field name="employee_id"/>
<field name="department_id" readonly="1"/>
<field name="job_id" readonly="1"/>
<field name="employee_type"/>
<field name="teacher_title"/>
<field name="education_level"/>
<field name="effective_date"/>
</group>
<group string="薪资结构">
<field name="structure_id"/>
<field name="basic_salary"/>
<field name="position_salary"/>
<field name="performance_salary"/>
</group>
</group>
<notebook>
<page string="课时费标准">
<group>
<group>
<field name="class_hour_rate_normal"/>
<field name="class_hour_rate_overtime"/>
</group>
<group>
<field name="class_hour_rate_weekend"/>
<field name="class_hour_rate_holiday"/>
</group>
</group>
</page>
<page string="津贴补贴">
<group>
<group>
<field name="is_class_teacher"/>
<field name="class_teacher_allowance" invisible="is_class_teacher == False"/>
<field name="class_level" invisible="is_class_teacher == False"/>
</group>
<group>
<field name="seniority_allowance"/>
<field name="education_allowance"/>
<field name="title_allowance"/>
<field name="other_allowance"/>
</group>
</group>
</page>
<page string="社保公积金">
<group>
<group>
<field name="social_insurance_base"/>
<field name="provident_fund_base"/>
</group>
<group>
<field name="pension_rate_personal"/>
<field name="medical_rate_personal"/>
<field name="unemployment_rate_personal"/>
<field name="provident_fund_rate_personal"/>
</group>
</group>
</page>
<page string="银行卡信息">
<group>
<field name="bank_name"/>
<field name="bank_account"/>
<field name="bank_branch"/>
</group>
</page>
</notebook>
<field name="note" placeholder="备注..."/>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids"/>
<field name="activity_ids"/>
<field name="message_ids"/>
</div>
</form>
</field>
</record>
<record id="view_employee_salary_search" model="ir.ui.view">
<field name="name">yuthon.employee.salary.search</field>
<field name="model">yuthon.employee.salary</field>
<field name="arch" type="xml">
<search>
<field name="name"/>
<field name="employee_id"/>
<field name="department_id"/>
<filter name="active" string="已生效" domain="[('state', '=', 'active')]"/>
<filter name="draft" string="草稿" domain="[('state', '=', 'draft')]"/>
<filter name="resigned" string="已离职" domain="[('state', '=', 'resigned')]"/>
<group expand="0" string="分组">
<filter name="group_department" string="按部门" context="{'group_by': 'department_id'}"/>
<filter name="group_title" string="按职称" context="{'group_by': 'teacher_title'}"/>
</group>
</search>
</field>
</record>
<record id="action_employee_salary" model="ir.actions.act_window">
<field name="name">教职工薪资档案</field>
<field name="res_model">yuthon.employee.salary</field>
<field name="view_mode">list,form</field>
</record>
</odoo>