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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright (C) 2013 Akretion (http://www.akretion.com)
  @author: Alexis de Lattre <alexis.delattre@akretion.com>
  The licence is in the file __openerp__.py
-->
<openerp>
<data>

<record id="view_banking_export_sdd_form" model="ir.ui.view">
    <field name="name">account.banking.export.sdd.form</field>
    <field name="model">banking.export.sdd</field>
    <field name="arch" type="xml">
        <form string="SEPA Direct Debit">
            <notebook>
                <page string="General Information">
                    <field name="total_amount" />
                    <field name="nb_transactions" />
                    <field name="batch_booking" />
                    <field name="charge_bearer"/>
                    <field name="create_date" />
                    <newline />
                    <field name="file" filename="filename"/>
                    <field name="filename" invisible="True"/>
                </page>
                <page string="Payment Orders">
                    <field name="payment_order_ids" colspan="4" nolabel="1">
                        <tree colors="blue:state in ('draft');gray:state in ('cancel','done');black:state in ('open')" string="Payment Orders">
                            <field name="reference"/>
                            <field name="date_created"/>
                            <field name="date_done"/>
                            <field name="total"/>
                            <field name="state"/>
                        </tree>
                    </field>
                </page>
            </notebook>
        </form>
    </field>
</record>


<record id="view_banking_export_sdd_tree" model="ir.ui.view">
    <field name="name">account.banking.export.sdd.tree</field>
    <field name="model">banking.export.sdd</field>
    <field name="arch" type="xml">
        <tree string="SEPA Direct Debit">
            <field name="filename"/>
            <field name="create_date"/>
            <field name="nb_transactions"/>
        </tree>
    </field>
</record>


<record id="action_account_banking_sdd" model="ir.actions.act_window">
    <field name="name">SEPA Direct Debit Files</field>
    <field name="res_model">banking.export.sdd</field>
    <field name="view_type">form</field>
    <field name="view_mode">tree,form</field>
</record>


<menuitem id="menu_account_banking_sdd"
          parent="account_payment.menu_main_payment"
          action="action_account_banking_sdd"
          sequence="20"
          />

<act_window id="act_banking_export_sdd_payment_order"
    name="Generated SEPA Direct Debit Files"
    domain="[('payment_order_ids', '=', active_id)]"
    res_model="banking.export.sdd"
    src_model="payment.order"
    view_type="form"
    view_mode="tree,form"
/>

</data>
</openerp>