107 lines
5.0 KiB
XML
107 lines
5.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="view_class_teacher_allowance_tree" model="ir.ui.view">
|
|
<field name="name">yuthon.class.teacher.allowance.tree</field>
|
|
<field name="model">yuthon.class.teacher.allowance</field>
|
|
<field name="arch" type="xml">
|
|
<list>
|
|
<field name="name"/>
|
|
<field name="year"/>
|
|
<field name="month"/>
|
|
<field name="employee_id"/>
|
|
<field name="class_name"/>
|
|
<field name="student_count"/>
|
|
<field name="total_amount"/>
|
|
<field name="overall_score"/>
|
|
<field name="state" widget="badge" decoration-success="state == 'approved'" decoration-info="state == 'submitted'"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_class_teacher_allowance_form" model="ir.ui.view">
|
|
<field name="name">yuthon.class.teacher.allowance.form</field>
|
|
<field name="model">yuthon.class.teacher.allowance</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<header>
|
|
<button name="action_submit" string="提交" type="object" class="oe_highlight" invisible="state != 'draft'"/>
|
|
<button name="action_approve" string="审核" type="object" class="oe_highlight" invisible="state != 'submitted'"/>
|
|
<button name="action_draft" string="退回草稿" type="object" invisible="state != 'submitted'"/>
|
|
<field name="state" widget="statusbar" statusbar_visible="draft,submitted,approved,paid"/>
|
|
</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="class_name"/>
|
|
<field name="grade_level"/>
|
|
<field name="student_count"/>
|
|
</group>
|
|
<group string="考核周期">
|
|
<field name="year"/>
|
|
<field name="month"/>
|
|
<field name="overall_score" readonly="1"/>
|
|
</group>
|
|
</group>
|
|
<group string="津贴明细">
|
|
<group>
|
|
<field name="base_allowance"/>
|
|
<field name="student_count_bonus"/>
|
|
<field name="performance_bonus"/>
|
|
</group>
|
|
<group>
|
|
<field name="special_allowance"/>
|
|
<field name="deduction"/>
|
|
<field name="total_amount" readonly="1"/>
|
|
</group>
|
|
</group>
|
|
<group string="考核评分">
|
|
<group>
|
|
<field name="discipline_score"/>
|
|
<field name="hygiene_score"/>
|
|
</group>
|
|
<group>
|
|
<field name="activity_score"/>
|
|
<field name="parent_score"/>
|
|
</group>
|
|
</group>
|
|
<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_class_teacher_allowance_search" model="ir.ui.view">
|
|
<field name="name">yuthon.class.teacher.allowance.search</field>
|
|
<field name="model">yuthon.class.teacher.allowance</field>
|
|
<field name="arch" type="xml">
|
|
<search>
|
|
<field name="name"/>
|
|
<field name="employee_id"/>
|
|
<field name="class_name"/>
|
|
<filter name="draft" string="草稿" domain="[('state', '=', 'draft')]"/>
|
|
<filter name="approved" string="已审核" domain="[('state', '=', 'approved')]"/>
|
|
<group expand="0" string="分组">
|
|
<filter name="group_employee" string="按班主任" context="{'group_by': 'employee_id'}"/>
|
|
<filter name="group_month" string="按月" context="{'group_by': 'month'}"/>
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_class_teacher_allowance" model="ir.actions.act_window">
|
|
<field name="name">班主任津贴</field>
|
|
<field name="res_model">yuthon.class.teacher.allowance</field>
|
|
<field name="view_mode">list,form</field>
|
|
</record>
|
|
</odoo>
|