summaryrefslogtreecommitdiff
path: root/addons/l10n_fr_fec/wizard/account_fr_fec_view.xml
blob: 2f7a66dcacd925567ba45a73d8ce6e97edf9c546 (plain)
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="account_fr_fec_view" model="ir.ui.view">
    <field name="name">account.fr.fec.form.view</field>
    <field name="model">account.fr.fec</field>
    <field name="arch" type="xml">
        <form string="FEC File Generation">
            <div class="alert alert-info" role="alert" attrs="{'invisible': [('test_file', '=', True)]}">
                When you download a FEC file, the lock date is set to the end date.
                If you want to test the FEC file generation, please tick the test file checkbox.
            </div>
            <div class="alert alert-info" role="alert" attrs="{'invisible': [('test_file', '=', False)]}">
                You are in test mode. The FEC file generation will not set the lock date.
            </div>
            <notebook>
                <page string="Options" name="options">
                    <group>
                        <field name="date_from"/>
                        <field name="date_to"/>
                        <field name="test_file"/>
                        <field name="export_type" attrs="{'invisible': [('test_file', '=', False)]}"/>
                    </group>
                </page>
                <page string="Technical Info" name="technical_info">
                    <group>
                        <div>
                        The encoding of this text file is UTF-8. The structure of file is CSV separated by pipe '|'.
                        </div>
                    </group>
                    <group>
                        <table style="width:80%">
                            <tr>
                                <th>Technical Name</th>
                                <th>Column</th>
                                <th>Comment</th>
                            </tr>
                            <tr>
                                <td>JournalCode</td>
                                <td># 0</td>
                            </tr>
                            <tr>
                                <td>JournalLib</td>
                                <td>
                                    # 1</td>
                            </tr>
                            <tr>
                                <td>EcritureNum</td>
                                <td># 2</td>
                            </tr>
                            <tr>
                                <td>EcritureDate</td>
                                <td>
                                    # 3</td>
                            </tr>
                            <tr>
                                <td>CompteNum</td>
                                <td># 4</td>
                            </tr>
                            <tr>
                                <td>CompteLib</td>
                                <td># 5</td>
                            </tr>
                            <tr>
                                <td>CompAuxNum</td>
                                <td># 6</td>
                                <td>We use partner.id</td>
                            </tr>
                            <tr>
                                <td>CompAuxLib</td>
                                <td># 7</td>
                            </tr>
                            <tr>
                                <td>PieceRef</td>
                                <td># 8</td>
                            </tr>
                            <tr>
                                <td>PieceDate</td>
                                <td># 9</td>
                            </tr>
                            <tr>
                                <td>EcritureLib</td>
                                <td># 10</td>
                            </tr>
                            <tr>
                                <td>Debit</td>
                                <td># 11</td>
                            </tr>
                            <tr>
                                <td>Credit</td>
                                <td># 12</td>
                            </tr>
                            <tr>
                                <td>EcritureLet</td>
                                <td># 13</td>
                            </tr>
                            <tr>
                                <td>DateLet</td>
                                <td># 14</td>
                            </tr>
                            <tr>
                                <td>ValidDate</td>
                                <td># 15</td>
                            </tr>
                            <tr>
                                <td>Montantdevise</td>
                                <td># 16</td>
                            </tr>
                            <tr>
                                <td>Idevise</td>
                                <td># 17</td>
                            </tr>
                        </table>
                    </group>
                </page>
            </notebook>
            <footer>
                <button string="Generate" name="generate_fec" type="object"
                    class="oe_highlight"/>
                <button string="Cancel" class="btn btn-secondary" special="cancel"/>
            </footer>
        </form>
    </field>
</record>

<record id="account_fr_fec_action" model="ir.actions.act_window">
    <field name="name">FEC</field>
    <field name="res_model">account.fr.fec</field>
    <field name="view_mode">form</field>
    <field name="target">new</field>
</record>

<menuitem id="account_fr_fec_menu"
        parent="l10n_fr.account_reports_fr_statements_menu"
        action="account_fr_fec_action"
        sequence="100" />
</odoo>