Files
gzth/yuthon_performance/views/yuthon_assessment_tasks.xml
T
2025-04-02 15:45:18 +08:00

72 lines
3.4 KiB
XML

<odoo>
<!-- Views -->
<record id="yuthon_assessment_tasks_tree" model="ir.ui.view">
<field name="name">yuthon.assessment.tasks.tree</field>
<field name="model">yuthon.assessment.tasks</field>
<field name="arch" type="xml">
<tree string="责任书" editable="bottom" create="false">
<field name="name"/>
<field name="performance_type" string="绩效类型"/>
<field name="assessment_time" string="考核时间"/>
<field name="index_statu"/>
<button name="button_appraisal_ids" type="object" string="考核详情"/>
<button name="button_clone_task" type="object" string="克隆"/>
<button name="button_calculate_score" type="object" string="计算分数"/>
<button name="unlink" type="object" string="删除"/>
<button name="button_appraisals_ids" type="object" string="查看" />
<button name="button_appraisals_ids" type="object" string="修改" invisible="index_statu != 'void'"/>
</tree>
</field>
</record>
<record id="yuthon_assessment_tasks_form" model="ir.ui.view">
<field name="name">yuthon.assessment.tasks.form</field>
<field name="model">yuthon.assessment.tasks</field>
<field name="arch" type="xml">
<form create="0">
<sheet>
<div class="col-12 text-center">
<h1>
<field name="name"/>
</h1>
</div>
<group col="2">
<group>
<field name="performance_type" string="绩效类型"/>
</group>
<group>
<field name="assessment_time" string="考核时间"/>
</group>
</group>
<notebook>
<page string="考核情况">
<header>
<button name="pub_alert_people" type="object" string="提醒未考核人员"/>
</header>
<field name="assessment_ids" string=" ">
<tree editable="bottom">
<field name="examiners"/>
<field name="be_examiners"/>
<field name="assessment_status"/>
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="yuthon_assessment_tasks_search" model="ir.ui.view">
<field name="name">yuthon.assessment.tasks.search</field>
<field name="model">yuthon.assessment.tasks</field>
<field name="arch" type="xml">
<search string="考核任务">
<filter name="performance_type" string="绩效类型" context="{'group_by':'performance_type'}"/>
</search>
</field>
</record>
<record id="yuthon_assessment_tasks_action1" model="ir.actions.act_window">
<field name="name">考核任务</field>
<field name="res_model">yuthon.assessment.tasks</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>