1
<?xml version="1.0" encoding="utf-8"?>
5
<!-- distinguish between payment orders and debit orders in the menu
6
<record id="account_payment.action_payment_order_tree" model="ir.actions.act_window">
7
<field name="domain">[('type', '=', 'payable')]</field>
8
<field name="context">{'search_type': 'payable'}</field>
11
<record id="action_debit_order_tree" model="ir.actions.act_window">
12
<field name="name">Direct Debit Orders</field>
13
<field name="res_model">payment.order</field>
14
<field name="view_type">form</field>
15
<field name="view_mode">tree,form</field>
16
<field name="context">{'search_type': 'receivable',
17
'default_type': 'receivable'}</field>
18
<field name="search_view_id" ref="account_payment.view_payment_order_search"/>
19
<field name="domain">[('type', '=', 'receivable')]</field>
20
<field name="help">A debit order is a debit request from your company to collect customer invoices. Here you can register all debit orders that should be done, keep track of all debit orders and mention the invoice reference and the partner the withdrawal should be done for.</field>
23
<menuitem action="action_debit_order_tree" id="menu_action_debit_order_form" parent="account_payment.menu_main_payment" sequence="4"/>-->
25
<!--<record id="view_payment_order_form" model="ir.ui.view">
26
<field name="name">payment.order.form</field>
27
<field name="model">payment.order</field>
28
<field name="inherit_id" ref="account_payment.view_payment_order_form"/>
29
<field name="priority" eval="60"/>
30
<field name="arch" type="xml">
32
<field name="reference" position="after">
33
<field name="payment_order_type"/>
35
<xpath expr="//button[@string='Select Invoices to Pay']"
36
position="attributes">
37
<attribute name="attrs">
38
{'invisible':['|',('state','!=','draft'),('payment_order_type', '!=', 'payment')]}
41
<xpath expr="//button[@string='Select Invoices to Pay']"
43
<button colspan="2" name="%(account_payment.action_create_payment_order)s"
44
string="Select Invoices to Collect" type="action"
45
attrs="{'invisible':['|',('state','!=','draft'),('payment_order_type', '!=', 'debit')]}"
49
<field name="mode" position="attributes">
50
<attribute name="domain">[('payment_order_type', '=', payment_order_type)]</attribute>
56
<record id="view_payment_line_tree" model="ir.ui.view">
57
<field name="name">Payment Lines</field>
58
<field name="model">payment.line</field>
59
<field name="inherit_id" ref="account_payment.view_payment_line_tree"/>
60
<field eval="4" name="priority"/>
61
<field name="arch" type="xml">
62
<field name="name" position="after">
63
<field name="storno"/>