first push message
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<odoo>
|
||||
<data>
|
||||
<!--
|
||||
<template id="listing">
|
||||
<ul>
|
||||
<li t-foreach="objects" t-as="object">
|
||||
<a t-attf-href="#{ root }/objects/#{ object.id }">
|
||||
<t t-esc="object.display_name"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
<template id="object">
|
||||
<h1><t t-esc="object.display_name"/></h1>
|
||||
<dl>
|
||||
<t t-foreach="object._fields" t-as="field">
|
||||
<dt><t t-esc="field"/></dt>
|
||||
<dd><t t-esc="object[field]"/></dd>
|
||||
</t>
|
||||
</dl>
|
||||
</template>
|
||||
-->
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user