~unifield-team/unifield-wm/us-826

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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="invoice_from_registers_search" model="ir.ui.view">
            <field name="name">account.statement.from.invoice.lines.search</field>
            <field name="model">account.move.line</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Account Entry Lines">
                    <group col='10' colspan='4'>
                        <filter icon="terp-document-new" string="Unbalanced" domain="[('state','=','draft')]" help="Unbalanced Journal Items"/>
                        <separator orientation="vertical"/>
                        <filter icon="terp-document-new" string="Unposted" domain="[('move_id.state','=','draft')]" help="Unposted Journal Items"/>
                        <filter name="posted" icon="terp-camera_test" string="Posted" domain="[('move_id.state','=','posted')]" help="Posted Journal Items"/>
                        <separator orientation="vertical"/>
                        <filter
                            icon="terp-dolar_ok!"
                            string="Unreconciled"
                            domain="[('reconcile_id','=',False), ('account_id.reconcile','=',True)]" help="Unreconciled Journal Items"
                            name="unreconciled"/>
                        <separator orientation="vertical"/>
                        <field name="move_id" select="1" string="Number (Move)"/>
                        <field name="document_date"/>
                        <field name="date" select='1'/>
                        <newline/>
                        <field name="account_id" select='1'/>
                        <field name="partner_id" select='1'>
                        </field>
                    </group>
                    <newline/>
                    <group col="10" colspan="4">
                        <field name="journal_id" widget="selection" context="{'journal_id':self, 'visible_id':self, 'normal_view':False}"/>
                        <field name="period_id" context="{'period_id':self, 'search_default_period_id':self}"/>
                    </group>
                    <newline/>
                    <group expand="0" string="Extended Filters...">
                        <field name="ref" select="1" string="Reference"/>
                        <field name="name" select="1"/>
                        <field name="narration" select="1"/>
                        <field name="balance" string="Debit/Credit" select='1'/>
                    </group>
                    <newline/>
                    <group expand="0" string="Group By..." colspan="12" col="10">
                        <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
                        <separator orientation="vertical"/>
                        <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
                        <filter string="Account"  icon="terp-folder-green" context="{'group_by':'account_id'}"/>
                        <separator orientation="vertical"/>
                        <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/>
                    </group>
                    <newline/>
                </search>
            </field>
        </record>

        <record id="invoice_from_registers_tree" model="ir.ui.view">
            <field name="name">account.statement.from.invoice.lines.tree</field>
            <field name="model">account.move.line</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Account Entry Lines" editable="top" noteditable="True" hide_new_button="1">
                    <field name="invoice"/>
                    <field name="ref"/>
                    <field name="supplier_invoice_ref"/>
                    <field name="account_id"/>
                    <field name="partner_id" string="3rd Party"/>
                    <field name="document_date"/>
                    <field name="date"/>
                    <field name="date_maturity"/>
                    <field name="amount_residual_import_inv" />
                    <field name="amount_currency" string="Book. Amount"/>
                    <field name="currency_id" string="Book. Currency"/>
                    <field name="reconcile_total_partial_id" />
                </tree>
            </field>
        </record>

        <record id="import_invoice_on_registers_lines" model="ir.ui.view">
            <field name="name">import.invoice.on.registers.lines.form</field>
            <field name="model">wizard.import.invoice</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Import Entries">
                    <group colspan="4" expand="1">
                        <separator string="Payable and Receivables" colspan="4"/>
                        <field name="line_ids" domain="[('ready_for_import_in_register','=',True), ('currency_id', '=', currency_id)]" 
                          context="{'from': 'wizard_import_invoice'}" colspan="4" nolabel="1">
                            <tree string="Account Entry Lines" editable="top" noteditable="True">
                                <field name="invoice"/>
                                <field name="ref"/>
                                <field name="supplier_invoice_ref"/>
                                <field name="account_id"/>
                                <field name="partner_id" string="3rd Party"/>
                                <field name="document_date"/>
                                <field name="date"/>
                                <field name="date_maturity"/>
                                <field name="amount_residual_import_inv" />
                                <field name="amount_currency" string="Book. Amount"/>
                                <field name="currency_id" string="Book. Currency"/>
                                <field name="reconcile_total_partial_id" />
                          </tree>
                        </field>
                        <group colspan="4" col="6">
                            <button name="group_import" type="object" string="Import Group By partner" icon="gtk-add"/>
                            <button name="single_import" type="object" string="Single Import" icon="gtk-add"/>
                            <field name="date" />
                        </group>
                        <separator string="" colspan="4"/>
                        <newline/>
                        <field name="invoice_lines_ids" colspan="4" nolabel="1" attrs="{'required': [('state', '=', 'open')], 'readonly': [('state', '=', 'draft')]}">
                            <tree editable="bottom" hide_new_button="1">
                                <field name="number_invoices" />
                                <field name="ref"/>
                                <field name="account_id"/>
                                <field name="partner_id"/>
                                <field name="document_date"/>
                                <field name="date"/>
                                <field name="amount" sum="Total"/>
                                <field name="amount_to_pay"/>
                                <field name="amount_currency" string="Book. Amount"/>
                                <field name="currency_id" string="Book. Currency"/>
                            </tree>
                        </field>
                    </group>
                    <group colspan="4" col="6">
                        <label string ="" colspan="2"/>
                        <button icon="gtk-cancel" special="cancel" string="Cancel"/>
                        <button icon="gtk-execute" string="Ok" name="action_confirm" type="object" attrs="{'readonly': [('state', '=', 'draft')]}"/>
                   </group>
                   <field name="currency_id" invisible="1"/>
                   <field name="state" invisible="1"/>
               </form>
            </field>
        </record>

        <record id="import_invoice_on_registers_lines_cheque" model="ir.ui.view">
            <field name="name">import.invoice.on.registers.lines.cheque.form</field>
            <field name="model">wizard.import.invoice</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Import Entries">
                    <group colspan="4" expand="1">
                        <separator string="Payable and Receivables" colspan="4"/>
                        <field name="line_ids" domain="[('ready_for_import_in_register','=',True), ('currency_id', '=', currency_id)]" 
                          context="{'from': 'wizard_import_invoice'}" colspan="4" nolabel="1">
                            <tree string="Account Entry Lines" editable="top" noteditable="True">
                                <field name="invoice"/>
                                <field name="ref"/>
                                <field name="supplier_invoice_ref"/>
                                <field name="account_id"/>
                                <field name="partner_id" string="3rd Party"/>
                                <field name="document_date"/>
                                <field name="date"/>
                                <field name="date_maturity"/>
                                <field name="amount_residual_import_inv" />
                                <field name="amount_currency" string="Book. Amount"/>
                                <field name="currency_id" string="Book. Currency"/>
                                <field name="reconcile_total_partial_id" />
                            </tree>
                        </field>
                        <group colspan="4" col="6">
                            <button name="group_import" type="object" string="Import Group By partner" icon="gtk-add"/>
                            <button name="single_import" type="object" string="Single Import" icon="gtk-add"/>
                            <field name="date" />
                        </group>
                        <separator string="" colspan="4"/>
                        <field name="invoice_lines_ids" colspan="4" nolabel="1" attrs="{'required': [('state', '=', 'open')], 'readonly': [('state', '=', 'draft')]}">
                            <tree editable="bottom" colors="red:cheque_number==False" hide_new_button="1">
                                <field name="number_invoices" />
                                <field name="ref"/>
                                <field name="cheque_number" required="1"/>
                                <field name="account_id"/>
                                <field name="partner_id"/>
                                <field name="document_date"/>
                                <field name="date"/>
                                <field name="amount" sum="Total"/>
                                <field name="amount_to_pay"/>
                                <field name="amount_currency" string="Book. Amount"/>
                                <field name="currency_id" string="Book. Currency"/>
                            </tree>
                        </field>
                    </group>
                    <group colspan="4" col="6">
                        <label string ="" colspan="2"/>
                        <button icon="gtk-cancel" special="cancel" string="Cancel"/>
                        <button icon="gtk-execute" string="Ok" name="action_confirm" type="object" attrs="{'readonly': [('state', '=', 'draft')]}"/>
                   </group>
                   <field name="currency_id" invisible="1"/>
                   <field name="state" invisible="1"/>
               </form>
            </field>
        </record>

    </data>
</openerp>