68 lines
3.3 KiB
XML
68 lines
3.3 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<record id="view_yuthon_salary_party_tree" model="ir.ui.view">
|
|
<field name="name">yuthon.salary.party.tree</field>
|
|
<field name="model">yuthon.salary.party</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="党费" editable="bottom" js_class="custom_party_button">
|
|
<header>
|
|
<button name="action_batch_send_party_reminder" string="批量催缴" type="object" class="btn btn-blue"/>
|
|
<button name="action_test_monthly_party_reminder" string="测试月度提醒" type="object" class="btn btn-blue"/>
|
|
</header>
|
|
<field name="select_year"/>
|
|
<field name="select_time"/>
|
|
<field name="employee_id"/>
|
|
<field name="card"/>
|
|
<field name="fee"/>
|
|
<field name="payment"/>
|
|
<field name="total_payment"/>
|
|
<field name="toll_state"/>
|
|
<field name="party_state"/>
|
|
<button name="send_party" string="发送" type="object" class="oe_highlight" invisible="party_state == 'done'"/>
|
|
<button name="action_party_review_confirm" string="复核确认" type="object" class="btn btn-blue" invisible="toll_state != 'done'"/>
|
|
<button name="action_send_party_reminder" string="催缴" type="object" class="btn btn-blue" invisible="toll_state != 'to_do' or party_state != 'done'"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record id="view_my_yuthon_salary_party_tree" model="ir.ui.view">
|
|
<field name="name">yuthon.my.salary.party.tree</field>
|
|
<field name="model">yuthon.salary.party</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="党费" editable="bottom">
|
|
<field name="select_time"/>
|
|
<field name="select_year"/>
|
|
<field name="employee_id"/>
|
|
<field name="fee"/>
|
|
<field name="payment"/>
|
|
<field name="total_payment"/>
|
|
<field name="company_id" column_invisible="1"/>
|
|
<field name="toll_state"/>
|
|
<button name="toll_confirm" string="缴费确认" type="object" class="btn btn-blue" confirm="注意:交完费了才点这个确认,是否确认?" invisible="toll_state != 'to_do'"/>
|
|
|
|
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record id="view_yuthon_salary_party_action" model="ir.actions.act_window">
|
|
<field name="name">党费</field>
|
|
<field name="res_model">yuthon.salary.party</field>
|
|
<field name="view_mode">tree</field>
|
|
<field name="view_ids" eval="[(5, 0, 0),
|
|
(0, 0, {'view_mode': 'tree', 'view_id': ref('yuthon_salary.view_yuthon_salary_party_tree')})]"/>
|
|
</record>
|
|
<record id="view_my_yuthon_salary_party_action" model="ir.actions.act_window">
|
|
<field name="name">党费</field>
|
|
<field name="res_model">yuthon.salary.party</field>
|
|
<field name="view_mode">tree</field>
|
|
<field name="domain">[('employee_id.user_id', '=', uid)]</field>
|
|
<field name="view_ids" eval="[(5, 0, 0),
|
|
(0, 0, {'view_mode': 'tree', 'view_id': ref('yuthon_salary.view_my_yuthon_salary_party_tree')})]"/>
|
|
</record>
|
|
</odoo>
|
|
|
|
|
|
|
|
|
|
|
|
|