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

64 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_salary_structure_tree" model="ir.ui.view">
<field name="name">yuthon.salary.structure.tree</field>
<field name="model">yuthon.salary.structure</field>
<field name="arch" type="xml">
<list>
<field name="code"/>
<field name="name"/>
<field name="applicable_type"/>
<field name="school_type"/>
<field name="total_basic"/>
<field name="total_deduction"/>
<field name="total_net"/>
<field name="active" widget="boolean_toggle"/>
</list>
</field>
</record>
<record id="view_salary_structure_form" model="ir.ui.view">
<field name="name">yuthon.salary.structure.form</field>
<field name="model">yuthon.salary.structure</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<group>
<field name="name"/>
<field name="code"/>
<field name="applicable_type"/>
<field name="school_type"/>
</group>
<group>
<field name="total_basic"/>
<field name="total_deduction"/>
<field name="total_net"/>
<field name="active" widget="boolean_toggle"/>
</group>
</group>
<field name="description" placeholder="薪资结构说明..."/>
<notebook>
<page string="薪资项目明细">
<field name="line_ids">
<list editable="bottom">
<field name="sequence" widget="handle"/>
<field name="item_id"/>
<field name="amount"/>
<field name="note"/>
</list>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="action_salary_structure" model="ir.actions.act_window">
<field name="name">薪资结构</field>
<field name="res_model">yuthon.salary.structure</field>
<field name="view_mode">list,form</field>
</record>
</odoo>