~pedro-q/account-payment/account-payment-sepa-7.0

« back to all changes in this revision

Viewing changes to account_payment_direct_debit/view/account_payment.xml

  • Committer: Ignacio Ibeas - Acysos S.L.
  • Date: 2014-01-25 13:30:35 UTC
  • Revision ID: ignacio@acysos.com-20140125133035-46kipms7z97u825v
[ADD] SEPA modules ported from Banking Addons to Account Payment Extension

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<openerp>
 
3
    <data>
 
4
 
 
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>
 
9
        </record>
 
10
 
 
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>
 
21
        </record>
 
22
        
 
23
        <menuitem action="action_debit_order_tree" id="menu_action_debit_order_form" parent="account_payment.menu_main_payment" sequence="4"/>-->
 
24
 
 
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">
 
31
                <data>
 
32
                    <field name="reference" position="after">
 
33
                        <field name="payment_order_type"/>
 
34
                    </field>
 
35
                    <xpath expr="//button[@string='Select Invoices to Pay']"
 
36
                           position="attributes">
 
37
                        <attribute name="attrs">
 
38
                            {'invisible':['|',('state','!=','draft'),('payment_order_type', '!=', 'payment')]}
 
39
                        </attribute>
 
40
                    </xpath>
 
41
                    <xpath expr="//button[@string='Select Invoices to Pay']"
 
42
                           position="after">
 
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')]}"
 
46
                                icon="gtk-find"
 
47
                                />
 
48
                    </xpath>
 
49
                    <field name="mode" position="attributes">
 
50
                        <attribute name="domain">[('payment_order_type', '=', payment_order_type)]</attribute>
 
51
                    </field>
 
52
                </data>
 
53
            </field>
 
54
        </record>-->
 
55
 
 
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"/>
 
64
                </field>
 
65
            </field>
 
66
        </record>
 
67
 
 
68
    </data>
 
69
</openerp>