You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
3.2 KiB
54 lines
3.2 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<data>
|
|
<record id="invoice_approval_form_view" model="ir.ui.view">
|
|
<field name="name">invoice.approval.form.view</field>
|
|
<field name="model">invoice.approval</field>
|
|
<field name="arch" type="xml">
|
|
<form class="oe_form_configuration">
|
|
<header>
|
|
<button name="apply_configuration" type="object" string="Apply" class="btn-primary"/>
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_title oe_read_only">
|
|
<h1>
|
|
<field name="name"/>
|
|
</h1>
|
|
</div>
|
|
<group>
|
|
<group string="Customer Configuration">
|
|
<field name="approve_customer_invoice"/>
|
|
<field name="invoice_approver_ids" widget="many2many_tags"
|
|
attrs="{'invisible': [('approve_customer_invoice', '=', False)],'required':[('approve_customer_invoice', '=', True)]}"/>
|
|
<field name="approve_customer_credit"/>
|
|
<field name="cust_credit_approver_ids" widget="many2many_tags"
|
|
attrs="{'invisible': [('approve_customer_credit', '=', False)],'required':[('approve_customer_credit', '=', True)]}"/>
|
|
</group>
|
|
<group string="Vendor Configuration">
|
|
<field name="approve_vendor_bill"/>
|
|
<field name="bill_approver_ids" widget="many2many_tags"
|
|
attrs="{'invisible': [('approve_vendor_bill', '=', False)],'required':[('approve_vendor_bill', '=', True)]}"/>
|
|
<field name="approve_vendor_credit"/>
|
|
<field name="vend_credit_approver_ids" widget="many2many_tags"
|
|
attrs="{'invisible': [('approve_vendor_credit', '=', False)],'required':[('approve_vendor_credit', '=', True)]}"/>
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
<div class="oe_chatter">
|
|
<field name="message_follower_ids" widget="mail_followers"/>
|
|
<field name="activity_ids" widget="mail_activity"/>
|
|
<field name="message_ids" widget="mail_thread" options="{'post_refresh': 'recipients'}"/>
|
|
</div>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record id="approval_sub_menu_action" model="ir.actions.act_window">
|
|
<field name="name">Invoice Multi Approval</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">invoice.approval</field>
|
|
<field name="res_id" ref="invoice_multi_approval.default_invoice_multi_approval_config"/>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">inline</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|