34 lines
1.9 KiB
XML
34 lines
1.9 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<odoo>
|
||
|
|
<data>
|
||
|
|
<record id="view_request_approval_form_inherit" model="ir.ui.view">
|
||
|
|
<field name="name">Request Approval</field>
|
||
|
|
<field name="model">xf.doc.approval.document.package</field>
|
||
|
|
<field name="inherit_id" ref="xf_doc_approval.xf_doc_approval_document_package_form"/>
|
||
|
|
<field name="arch" type="xml">
|
||
|
|
<xpath expr="//header" position="inside">
|
||
|
|
<button string="Request Bank Payment" type="object" name="action_request_bank_payment"
|
||
|
|
invisible="state != 'approved' or payment_order_id != False" class="btn-primary" groups="account.group_account_user,account.group_account_manager"/>
|
||
|
|
<button string="Post Vendor Bill" type="object" name="action_post_vendor_bill"
|
||
|
|
invisible="1" class="btn-primary" groups="account.group_account_user,account.group_account_manager"/>
|
||
|
|
</xpath>
|
||
|
|
<xpath expr="//group[@name='documents']" position="before">
|
||
|
|
<div>
|
||
|
|
<b><label for="type_request" string="Type of Request"/></b>
|
||
|
|
<field name="type_request" required="1"/>
|
||
|
|
</div>
|
||
|
|
</xpath>
|
||
|
|
<xpath expr="//group[@name='documents']" position="after">
|
||
|
|
<group string="Payment Details" invisible="type_request == '1'">
|
||
|
|
<field name="payment_amount"/>
|
||
|
|
<field name="currency_id" readonly="1"/>
|
||
|
|
<field name="partner_id" required="type_request == '2'"/>
|
||
|
|
<field name="bill_id" readonly="1"/>
|
||
|
|
<field name="payment_order_id" readonly="1"/>
|
||
|
|
</group>
|
||
|
|
</xpath>
|
||
|
|
</field>
|
||
|
|
</record>
|
||
|
|
|
||
|
|
</data>
|
||
|
|
</odoo>
|