~vauxoo/openerp-venezuela-localization/barbara-generatetxt

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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="view_islr_wh_doc_invoices_form_" model="ir.ui.view">
            <field name="name">islr.wh.doc.invoices_form</field>
            <field name="model">islr.wh.doc.invoices</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Invoices">
                    <field name="invoice_id" domain="[('partner_id','=',parent.partner_id)]"/>
                </form>
            </field>
        </record>

    <!-- 
    =====================================================
    Retention ISLR DOC, DOC LINE  CUSTOMERS
    =====================================================
    -->

        <record id="view_wh_islr_filter_customer" model="ir.ui.view">
            <field name="name">islr.wh.doc.search</field>
            <field name="model">islr.wh.doc</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Search Withholding Income">
                   <group col="10" colspan="4">
                        <filter name="to_process" icon="terp-gtk-go-back-rtl" string="To Process" domain="[('state','=','to_process')]" help="To Process Withholding Income"/>
                        <filter name="draft" icon="terp-gtk-media-pause" string="Draft" domain="[('state','=','draft')]" help="Draft Withholding Income"/>
                        <filter name="confirmed" icon="terp-camera_test" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Withholding Income"/>
                        <filter name="done" icon="terp-check" string="Done" domain="[('state','=','done')]" help="Done Withholding Income"/>
                        <filter name="cancel" icon="terp-dialog-close" string="Cancel" domain="[('state','=','cancel')]" help="Cancel Withholding Income"/>
                        <separator orientation="vertical"/>
                        <field name="code"/>
                        <field name="partner_id"/>
                        <field name="journal_id"  select="1" widget="selection" string="Journal"/>
                        <field name="user_id" select="1" widget="selection" string="Salesman">
                        <filter domain="[('user_id','=',uid)]" help="My Withholding Income" icon="terp-personal" separator="1"/>
                        </field>
                    </group>
                    <newline/>
                    <group expand="1" string="Group By...">
                        <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
                        <separator orientation="vertical"/>
                        <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]"  context="{'group_by':'state'}"/>
                        <separator orientation="vertical"/>
                        <filter string="Accounting Date of Withhold" icon="terp-go-month" domain="[]"  context="{'group_by':'date_ret'}"/>
                    </group>
               </search>
            </field>
        </record>

        <record id="view_islr_line_tree" model="ir.ui.view">
            <field name="name">islr.wh.doc_line_tree</field>
            <field name="model">islr.wh.doc.line</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Lines Withholding Income" editable="bottom" >
                    <field name="name"/>
                    <field name="concept_id"/>
                    <field name="retencion_islr"/>
                    <field name="amount"/>
                    <field name="move_id"/>
                </tree>
            </field>
        </record>

        <record id="view_islr_line_form" model="ir.ui.view">
            <field name="name">islr.wh.doc.line_form</field>
            <field name="model">islr.wh.doc.line</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Lines Withholding Income" editable="bottom">
                    <field name="concept_id"  colspan='6'/>
                    <field name="move_id"  colspan='6'/>
                    <newline/>
                    <field name="xml_ids" nolabel="1"  colspan='4'>
                        <tree string="Detail of the Concept of Withholding Income">
                            <field name="rate_id"/>
                            <field name="wh"/>
                            <field name="porcent_rete"/>
                            <field name="base"/>
                        </tree>
                    </field>
                </form>
            </field>
        </record>

        <record id="view_islr_tree_customers" model="ir.ui.view">
            <field name="name">islr.wh.doc_tree_customers</field>
            <field name="model">islr.wh.doc</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree colors="blue:state=='draft'" string="Customer Withholding Income">
                    <field name="name"/>
                    <field name="type"/>
                    <field name="code"/>
                    <field name="number"/>
                    <field name="partner_id"/>
                    <field name="date_ret"/>
                    <field name="currency_id"/>
                    <field name="period_id"/>
                    <field name="state"/>
                    <field name="amount_total_ret"/>
                </tree>
            </field>
        </record>

        <record id="view_islr_form_customers" model="ir.ui.view">
            <field name="name">islr.wh.doc_form_customers</field>
            <field name="model">islr.wh.doc</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Customer Withholding Income">
                    <group colspan="4" col="6">
                        <field name="journal_id" domain="[('type','=','islr_sale')]"/>
                        <field name="type"/>
                        <field name="code"/>
                        <field name="partner_id" on_change="onchange_partner_id(type,partner_id)" domain="[('customer','=',True)]"/>
                        <field name="currency_id" />
                        <field name="date_ret" />
                        <field domain="[('type','&lt;&gt;','view'), ('company_id', '=', company_id)]" name="account_id"/>
                        <field name="name"/>
                        <field name="period_id"/>
                        <field name="date_uid"/>
                    </group>
                            <notebook colspan="6">
                                <page string="Invoices">
                                    <field domain="[('partner_id','=',partner_id),('status','=','no_pro'),('state','in',['open','paid'])]" colspan="6" name="islr_wh_doc_id" nolabel="1" widget="many2many"/>
                                    <group col="4" colspan="2">
                                        <hpaned/>
                                        <button name="action_process" string="Process" states="to_process" type="object"  icon="gtk-go-forward"/>
                                        <button name="action_cancel_process" string="Cancel" states="draft" type="object"  icon="gtk-go-forward"/>
                                    </group>
                                </page>
                                <page string="Concept of Withholding Income">
                                    <field colspan="6" name="concept_ids" nolabel="1" widget="one2many_list"/>
                                        <group col="4" colspan="2">
                                            <field name="state"/>
                                            <field name="amount_total_ret"/>
                                        </group>
                                        <group col="4" colspan="2">
                                            <button name="action_confirm1" string="Confirm" states="draft" type="object" icon="gtk-go-forward"/>
                                            <button name="action_done1" string="Validate" states="confirmed" type="object"  icon="gtk-execute"/>
                                            <button name="action_cancel1" string="Cancel" states="done,confirmed" type="object"  icon="gtk-cancel"/>
                                            <button name="action_cancel_draft" string="Set to Draft" states="cancel" type="object"  icon="gtk-convert"/>
                                         </group>
                                </page>
                               <page string="Other Information">
                                    <field name="company_id"/>
                                </page>
                            </notebook>
                </form>
            </field>
        </record>

    <!-- 
    =====================================================
    Retention ISLR DOC, DOC LINE, SUPPLIERS
    =====================================================
    -->

        <record id="view_wh_islr_filter_suppliers" model="ir.ui.view">
            <field name="name">islr.wh.doc.search</field>
            <field name="model">islr.wh.doc</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Search Withholding Income">
                   <group col="10" colspan="4">
                        <filter name="draft" icon="terp-gtk-media-pause" string="Draft" domain="[('state','=','draft')]" help="Draft Withholding Income"/>
                        <filter name="confirmed" icon="terp-camera_test" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Withholding Income"/>
                        <filter name="done" icon="terp-check" string="Done" domain="[('state','=','done')]" help="Done Withholding Income"/>
                        <filter name="cancel" icon="terp-dialog-close" string="Cancel" domain="[('state','=','cancel')]" help="Cancel Withholding Income"/>
                        <separator orientation="vertical"/>
                        <field name="code"/>
                        <field name="partner_id"/>
                        <field name="journal_id"  select="1" widget="selection" string="Journal"/>
                        <field name="user_id" select="1" widget="selection" string="Salesman">
                        <filter domain="[('user_id','=',uid)]" help="My Withholding Income" icon="terp-personal" separator="1"/>
                        </field>
                    </group>
                    <newline/>
                    <group expand="1" string="Group By...">
                        <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
                        <separator orientation="vertical"/>
                        <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]"  context="{'group_by':'state'}"/>
                        <separator orientation="vertical"/>
                        <filter string="Accounting Date of Withhold" icon="terp-go-month" domain="[]"  context="{'group_by':'date_ret'}"/>
                    </group>
               </search>
            </field>
        </record>

        <record id="view_wh_islr_tree_suppliers" model="ir.ui.view">
            <field name="name">islr.wh.doc_tree_suppliers</field>
            <field name="model">islr.wh.doc</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree colors="blue:state=='draft'" string="Supplier Withholding Income">
                    <field name="name"/>
                    <field name="type"/>
                    <field name="code"/>
                    <field name="partner_id"/>
                    <field name="date_ret"/>
                    <field name="currency_id"/>
                    <field name="period_id"/>
                    <field name="state"/>
                    <field name="amount_total_ret"/>
                </tree>
            </field>
        </record>

        <record id="view_islr_line_tree" model="ir.ui.view">
            <field name="name">islr.wh.doc_line_tree2</field>
            <field name="model">islr.wh.doc.line</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Lines Withholding Income" editable="bottom" >
                    <field name="name"/>
                    <field name="concept_id"/>
                    <field name="retencion_islr"/>
                    <field name="amount"/>
                    <field name="move_id"/>
                </tree>
            </field>
        </record>

        <record id="view_islr_line_form" model="ir.ui.view">
            <field name="name">islr.wh.doc.line_form2</field>
            <field name="model">islr.wh.doc.line</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Lines Withholding Income" editable="bottom">
                    <field name="concept_id"  colspan='6'/>
                    <field name="move_id"  colspan='6'/>
                    <newline/>
                    <field name="xml_ids" nolabel="1"  colspan='4'>
                        <tree string="Detail of the Concept of Withholding Income">
                            <field name="rate_id"/>
                            <field name="wh"/>
                            <field name="porcent_rete"/>
                            <field name="base"/>
                        </tree>
                    </field>
                </form>
            </field>
        </record>


        <record id="view_wh_islr_form_suppliers" model="ir.ui.view">
            <field name="name">islr.wh.doc_form_suppliers</field>
            <field name="model">islr.wh.doc</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Supplier Withholding Income">
                    <group colspan="4" col="6">
                        <field name="journal_id" domain="[('type','=','islr_purchase')]"/>
                        <field name="type"/>
                        <field name="code"/>
                        <field name="partner_id" on_change="onchange_partner_id(type,partner_id)" domain="[('supplier','=',True)]"/>
                        <field name="currency_id" />
                        <field name="date_ret" />
                        <field domain="[('type','&lt;&gt;','view'), ('company_id', '=', company_id)]" name="account_id"/>
                        <field name="name"/>
                        <field name="period_id"/>
                        <field name="number"/>
                        <field name="date_uid" />
                        <field name="invoice_id" />
                    </group>
                            <notebook colspan="6">
                                <page string="Concept of Withholding Income">
                                    <field colspan="6" name="concept_ids" nolabel="1" widget="one2many_list"/>
                                        <group col="4" colspan="2">
                                            <field name="state"/>
                                            <field name="amount_total_ret"/>
                                        </group>
                                        <group col="4" colspan="2">
                                            <button name="action_confirm1" string="Confirm" states="draft" type="object" icon="gtk-go-forward"/>
                                            <button name="action_done1" string="Validate" states="confirmed" type="object"  icon="gtk-execute"/>
                                            <button name="action_cancel1" string="Cancel" states="done,confirmed" type="object"  icon="gtk-cancel"/>
                                            <button name="action_cancel_draft" string="Set to Draft" states="cancel" type="object"  icon="gtk-convert"/>
                                         </group>
                                </page>
                                <page string="Invoices">
                                    <field name="invoice_ids" nolabel="1">
                                        <tree string="Invoices Withhelds">
                                            <field name="invoice_id"/>
                                        </tree>
                                    </field>
                                </page>
                               <page string="Other Information">
                                    <field name="company_id"/>
                                </page>
                            </notebook>
                </form>
            </field>
        </record>


        <record model="ir.actions.act_window" id="action_wh_islr_customer">
            <field name="name">Customer Withholding Income</field>
            <field name="res_model">islr.wh.doc</field>
            <field name="type">ir.actions.act_window</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form,calendar,graph</field>
            <field name="domain">[('type','=','out_invoice')]</field>
            <field name="context">{'type':'out_invoice'}</field>
            <field name="search_view_id" ref="view_wh_islr_filter_customer"/>
            <field name="help">With Customer Withholding  you can create and manage document withholding issued to your customers. OpenERP can also generate document withholding automatically from invoices.For retention must add the invoices, process them and then validate the document.</field>
        </record>
        <record model="ir.actions.act_window.view" id="action_wh_islr_customer_tree">
            <field name="sequence" eval="10"/>
            <field name="view_mode">tree</field>
            <field name="view_id" ref="view_islr_tree_customers"/> 
            <field name="act_window_id" ref="action_wh_islr_customer"/>
        </record>
        <record model="ir.actions.act_window.view" id="action_wh_islr_customer_form">
            <field name="sequence" eval="20"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="view_islr_form_customers"/>
            <field name="act_window_id" ref="action_wh_islr_customer"/>
        </record>

        <menuitem
            id="menu_action_wh_islr_customer"
            name="Customer Withholding Income"
            parent="l10n_ve_withholding.menu_wh_customer"
            action="action_wh_islr_customer"/>

        <record model="ir.actions.act_window" id="action_wh_islr_supplier">
            <field name="name">Supplier Withholding Income</field>
            <field name="res_model">islr.wh.doc</field>
            <field name="type">ir.actions.act_window</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form,calendar,graph</field>
            <field name="domain">[('type','=','in_invoice')]</field>
            <field name="context">{'type':'in_invoice'}</field>
            <field name="search_view_id" ref="view_wh_islr_filter_suppliers"/>
            <field name="help">With Supplier Withholding  you can manage document withholding issued to your suppliers. OpenERP can also generate document withholding automatically from invoices. To generate the withholding income you must confirm and validate the document withholding.</field>

        </record>
        <record model="ir.actions.act_window.view" id="action_wh_islr_tree">
            <field name="sequence" eval="10"/>
            <field name="view_mode">tree</field>
            <field name="view_id" ref="view_wh_islr_tree_suppliers"/> 
            <field name="act_window_id" ref="action_wh_islr_supplier"/>
        </record>
        <record model="ir.actions.act_window.view" id="act_wh_islr_form">
            <field name="sequence" eval="20"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="view_wh_islr_form_suppliers"/>
            <field name="act_window_id" ref="action_wh_islr_supplier"/>
        </record>

        <menuitem
            id="menu_action_wh_islr_supplier"
            name="Supplier Withholding Income" 
            parent="l10n_ve_withholding.menu_wh_suppiler"
            action="action_wh_islr_supplier"/>

    </data>
</openerp>