4
# OpenERP - Model 347 Aeat
5
# Copyright (C) 2009 Asr Oss Sistemas Informáticos. All Rights Reserved
8
# This program is free software: you can redistribute it and/or modify
9
# it under the terms of the GNU General Public License as published by
10
# the Free Software Foundation, either version 3 of the License, or
11
# (at your option) any later version.
13
# This program is distributed in the hope that it will be useful,
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
# GNU General Public License for more details.
18
# You should have received a copy of the GNU General Public License
19
# along with this program. If not, see <http://www.gnu.org/licenses/>.
23
Views for the l10n Es aeat mod347.
25
Authors: Alejandro Sanchez Ramirez Asr Oss - alejandro@asr-oss.com
26
Borja Lópes Soilán (Pexego) - borjals@pexego.es
1
<?xml version="1.0" encoding="utf-8"?>
31
<!-- AEAT 347 report tree view -->
32
<record model="ir.ui.view" id="view_l10n_es_aeat_mod347_report_tree">
33
<field name="name">l10n.es.aeat.mod347.report.tree</field>
34
<field name="model">l10n.es.aeat.mod347.report</field>
35
<field name="type">tree</field>
36
<field name="arch" type="xml">
37
<tree string="AEAT 347 Reports">
38
<field name="company_id" on_change="on_change_company_id(company_id)" required="1" select="1"/>
39
<field name="fiscalyear_id" select="1"/>
40
<field name="number"/>
41
<field name="support_type"/>
46
<!-- AEAT 347 report form view -->
47
<record model="ir.ui.view" id="view_l10n_es_aeat_mod347_report_form">
48
<field name="name">l10n.es.aeat.mod347.report.form</field>
49
<field name="model">l10n.es.aeat.mod347.report</field>
50
<field name="type">form</field>
51
<field name="arch" type="xml">
52
<form string="AEAT 347 Report">
53
<group string="Declaration" colspan="4">
54
<field name="company_id" on_change="on_change_company_id(company_id)" required="1" select="1"/>
55
<field name="fiscalyear_id" select="1"/>
56
<field name="number"/>
57
<field name="support_type"/>
59
<notebook colspan="4">
60
<page string="General">
61
<group string="Identification" colspan="4">
62
<field name="company_vat" required="1"/>
63
<field name="contact_phone"/>
64
<field name="contact_name" colspan="4"/>
65
<field name="representative_vat"/>
67
<group string="Susbtitutive/complementary declaration" colspan="4">
69
<field name="previous_number"/>
71
<group string="Summary" colspan="4">
72
<field name="total_partner_records"/>
73
<field name="total_amount"/>
74
<field name="total_real_state_records"/>
75
<field name="total_real_state_amount"/>
77
<group string="Calculation" colspan="4">
78
<field name="operations_limit"/>
79
<field name="received_cash_limit"/>
80
<field name="charges_obtp_limit"/>
83
<field name="state" select="2" readonly="1"/>
84
<field name="calc_date" select="2" readonly="1"/>
86
<group colspan="4" col="10">
87
<!-- <button name="calculate" string="Calculate" states="draft"/> -->
88
<button name="%(wiz_l10n_es_aeat_mod347_calculate)d"
94
<button name="%(wiz_l10n_es_aeat_mod347_export_boe)d"
100
<button name="confirm" string="Confirm" states="calc_done" icon="gtk-apply"/>
101
<button name="cancel" string="Cancel" states="calc_done,done" icon="gtk-cancel"/>
102
<button name="action_recover" string="Draft" type="object" states="canceled" icon="gtk-undo"/>
105
<page string="Partner records">
106
<field name="partner_record_ids" nolabel="1" context="{'report_id': active_id}"/>
108
<page string="Real State records">
109
<field name="real_state_record_ids" nolabel="1" context="{'report_id': active_id}"/>
117
<!-- AEAT 347 partner record tree view -->
5
<!-- ################################
6
### AEAT MODEL 347 PARTNER RECORD ###
7
################################# -->
118
9
<record model="ir.ui.view" id="view_l10n_es_aeat_mod347_partner_record_tree">
119
10
<field name="name">l10n.es.aeat.mod347.partner_record.tree</field>
120
11
<field name="model">l10n.es.aeat.mod347.partner_record</field>
271
<!-- Menus and windows -->
273
<record model="ir.actions.act_window" id="action_view_l10n_es_aeat_mod347_report">
274
<field name="name">AEAT 347 Report</field>
275
<field name="type">ir.actions.act_window</field>
166
<!-- #################
167
### AEAT MODEL 347 ###
168
################## -->
170
<record id="view_l10n_es_aeat_mod347_report_tree" model="ir.ui.view">
171
<field name="name">AEAT Model 347 (tree)</field>
172
<field name="model">l10n.es.aeat.mod347.report</field>
173
<field name="type">tree</field>
174
<field name="arch" type="xml">
175
<tree string="AEAT 347 Reports">
176
<field name="number"/>
178
<field name="company_id"/>
179
<field name="fiscalyear_id"/>
181
<field name="previous_number"/>
182
<field name="support_type"/>
188
<record id="view_l10n_es_aeat_mod347_report_form" model="ir.ui.view">
189
<field name="name">AEAT Model 347 (form)</field>
190
<field name="model">l10n.es.aeat.mod347.report</field>
191
<field name="type">form</field>
192
<field name="arch" type="xml">
193
<form string="AEAT 347 Report">
194
<group string="Declaration" colspan="4">
195
<field name="company_id" on_change="on_change_company_id(company_id)" required="1" select="1"/>
196
<field name="fiscalyear_id" select="1"/>
197
<field name="number"/>
198
<field name="support_type"/>
200
<notebook colspan="4">
201
<page string="General">
202
<group string="Identification" colspan="4">
203
<field name="company_vat" required="1"/>
204
<field name="contact_phone"/>
205
<field name="contact_name" colspan="4"/>
206
<field name="representative_vat"/>
208
<group string="Susbtitutive/complementary declaration" colspan="4">
210
<field name="previous_number"/>
212
<group string="Summary" colspan="4">
213
<field name="total_partner_records"/>
214
<field name="total_amount"/>
215
<field name="total_real_state_records"/>
216
<field name="total_real_state_amount"/>
218
<group string="Calculation" colspan="4">
219
<field name="operations_limit"/>
220
<field name="received_cash_limit"/>
221
<field name="charges_obtp_limit"/>
224
<field name="state" select="2" readonly="1"/>
225
<field name="calculation_date" select="2" readonly="1"/>
227
<group colspan="4" col="10">
228
<button name="button_calculate"
233
<button name="button_recalculate"
236
states="calculating,calculated"
238
<button name="button_export"
240
string="Export to BOE"
241
states="calculated,done"
243
<button name="confirm" string="Confirm" type="workflow" states="calculated" icon="gtk-ok"/>
244
<button name="cancel" string="Cancel" type="workflow" states="calculated,done" icon="gtk-cancel"/>
245
<button name="action_recover" string="Draft" type="object" states="canceled" icon="gtk-undo"/>
248
<page string="Partner records">
249
<field name="partner_record_ids" nolabel="1" context="{'report_id': active_id}"/>
251
<page string="Real State records">
252
<field name="real_state_record_ids" nolabel="1" context="{'report_id': active_id}"/>
259
<record id="view_l10n_es_aeat_mod347_report_search" model="ir.ui.view">
260
<field name="name">AEAT Model 347 (search)</field>
261
<field name="model">l10n.es.aeat.mod347.report</field>
262
<field name="type">search</field>
263
<field name="arch" type="xml">
264
<search string="AEAT 347">
265
<group col="8" colspan="4">
266
<filter icon="terp-gtk-media-pause" string="Draft" domain="[('state','=','draft')]" help="Draft models"/>
267
<filter icon="gtk-execute" string="In process" domain="[('state','in',('calculating', 'calculated'))]" help="In process models"/>
268
<filter icon="terp-camera_test" string="Done" domain="[('state','=','done')]" help="Confirmed models"/>
269
<filter icon="gtk-cancel" string="Cancelled" domain="[('state', '=', 'canceled')]" help="Cancelled models"/>
270
<separator orientation="vertical"/>
271
<filter string="Fiscal Year" icon="terp-folder-orange" domain="[]" context="{'group_by':'fiscalyear_id'}"/>
272
<separator orientation="vertical"/>
273
<filter string="Company" icon="terp-personal" domain="[]" context="{'group_by':'company_id'}"/>
276
<field name="number"/>
278
<field name="support_type"/>
283
<!-- Window action -->
284
<record id="action_l10n_es_aeat_mod347_report" model="ir.actions.act_window">
285
<field name="name">AEAT Model 347</field>
276
286
<field name="res_model">l10n.es.aeat.mod347.report</field>
277
287
<field name="view_type">form</field>
278
288
<field name="view_mode">tree,form</field>
279
<field name="view_id" ref="view_l10n_es_aeat_mod347_report_tree"/>
289
<field name="help">Create and query AEAT Model 347 Reports</field>
282
<menuitem id="menu_account_aeat"
283
name="Agencia Tributaria"
284
parent="account.menu_finance_legal_statement"/>
286
<menuitem id="menu_l10n_es_aeat_mod347"
287
parent="menu_account_aeat"
289
action="action_view_l10n_es_aeat_mod347_report"/>
298
id="menu_aeat_mod347_report"
299
parent="l10n_es_aeat.menu_root_aeat"
300
action="action_l10n_es_aeat_mod347_report"
302
name="AEAT 347 Model"/>