Files
gzth/yuthon_approval/views/inherit_approval_request_views.xml
T
2024-05-31 18:37:33 +08:00

39 lines
2.1 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="inherit_approvals_request_form" model="ir.ui.view">
<field name="name">approvals.request.inherit.form</field>
<field name="model">approval.request</field>
<field name="inherit_id" ref="approvals.approval_request_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='approver_ids']/tree//field[@name='user_id']" position="after">
<field name="approval_user"/>
<field name="approval_datetime"/>
<field name="approval_notice"/>
<field name="approval_sign" widget="image" options='{"size": [80, 40]}'/>
</xpath>
<xpath expr="//button[@name='action_cancel']" position="after">
<button name="print_approval_report" string="打印" type="object"
invisible="request_status in ['new', 'cancel']"/>
</xpath>
<xpath expr="//button[@name='action_approve']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//button[@name='action_refuse']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//button[@name='action_approve']" position="after">
<button name="%(approval_notice_wizard_action)d" string="批准" type="action"
invisible="request_status in ['approved', 'refused', 'cancel'] or user_status != 'pending'"
data-hotkey="v"/>
</xpath>
<xpath expr="//button[@name='action_refuse']" position="after">
<button name="%(approval_refuse_wizard_action)d" string="拒绝" type="action"
invisible="request_status in ['approved', 'refused', 'cancel'] or user_status != 'pending'"
data-hotkey="z"/>
</xpath>
<xpath expr="//field[@name='company_id']" position="after">
<field name="approval_category_name" invisible="1"/>
</xpath>
</field>
</record>
</odoo>