Files
gzth/yuthon_hr_attendance/views/yuthon_duty_plan_views.xml
T
2024-12-11 14:49:22 +08:00

65 lines
2.9 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_yuthon_duty_plan_tree" model="ir.ui.view">
<field name="name">yuthon.duty.plan.tree</field>
<field name="model">yuthon.duty.plan</field>
<field name="arch" type="xml">
<tree string="排班安排">
<field name="name"/>
<field name="start_index_time"/>
<field name="end_index_time"/>
<field name="is_enable"/>
</tree>
</field>
</record>
<record id="view_yuthon_duty_plan_form" model="ir.ui.view">
<field name="name">yuthon.duty.plan.form</field>
<field name="model">yuthon.duty.plan</field>
<field name="arch" type="xml">
<form string="排班安排">
<header>
<button name="auto_duty_plan" type="object" string="安排值班" class="oe_highlight"/>
</header>
<sheet>
<div class="oe_title">
<label for="name"/>
<h1>
<field name="name" required="1"/>
</h1>
</div>
<group>
<group>
<field name="notice"/>
</group>
<group>
<field name="start_index_time"/>
<field name="end_index_time"/>
<field name="is_enable"/>
</group>
</group>
<notebook>
<page string="值班人员">
<field name="plan_line_ids">
<tree editable="bottom">
<field name="duty_plan_id" column_invisible="1"/>
<field name="sequence" widget="handle"/>
<field name="employee_ids" required="1"
domain="[('department_id.name', 'in', ['仓储组', '综合组','保管组',
'机安组','1库', '2库', '3库','联安粮库'])]"
widget="many2many_tags"/>
<field name="duty_class_id" required="1"/>
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="view_yuthon_duty_plan_action" model="ir.actions.act_window">
<field name="name">排班安排</field>
<field name="res_model">yuthon.duty.plan</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>