Merge lp:~joaquing-pedrosa/openerp-spain/7.0-l10n_es_aeat_mod347 into lp:~openerp-spain-team/openerp-spain/7.0
- 7.0-l10n_es_aeat_mod347
- Merge into 7.0
Status: | Merged |
---|---|
Merged at revision: | 419 |
Proposed branch: | lp:~joaquing-pedrosa/openerp-spain/7.0-l10n_es_aeat_mod347 |
Merge into: | lp:~openerp-spain-team/openerp-spain/7.0 |
Diff against target: |
4485 lines (+1447/-1154) 18 files modified
l10n_es_aeat_mod347/__init__.py (+2/-3) l10n_es_aeat_mod347/__openerp__.py (+64/-58) l10n_es_aeat_mod347/account_journal.py (+14/-18) l10n_es_aeat_mod347/account_journal_view.xml (+5/-5) l10n_es_aeat_mod347/i18n/ca.po (+23/-94) l10n_es_aeat_mod347/i18n/es.po (+135/-195) l10n_es_aeat_mod347/i18n/l10n_es_aeat_mod347.pot (+257/-228) l10n_es_aeat_mod347/mod347.py (+285/-167) l10n_es_aeat_mod347/mod347_view.xml (+200/-142) l10n_es_aeat_mod347/mod347_workflow.xml (+2/-2) l10n_es_aeat_mod347/report/mod347_report.rml (+1/-1) l10n_es_aeat_mod347/res_partner.py (+14/-20) l10n_es_aeat_mod347/res_partner_view.xml (+3/-6) l10n_es_aeat_mod347/security/ir.model.access.csv (+4/-0) l10n_es_aeat_mod347/static/src/img/icon_source.svg (+96/-0) l10n_es_aeat_mod347/wizard/__init__.py (+1/-3) l10n_es_aeat_mod347/wizard/calculate_mod347_records.py (+120/-69) l10n_es_aeat_mod347/wizard/export_mod347_to_boe.py (+221/-143) |
To merge this branch: | bzr merge lp:~joaquing-pedrosa/openerp-spain/7.0-l10n_es_aeat_mod347 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Pedro Manuel Baeza | Approve | ||
Review via email: mp+200095@code.launchpad.net |
Commit message
Migracion del modelo 347 a OpenERP 7
Description of the change
[FIX]: Update view definitions to version 7.0.
[FIX]: Add security definition for objects l10n_es_
[FIX]: Changed types to orm.Model, orm.TransientModel and orm.AbstractModel.
[FIX]: Contributions have been written in the standard format of the community.
[FIX]: Remove 'init_xml' keys, because it's no longer needed in v7.
[FIX]: Remove __author__ variables in files, because authors are put on manifest file (__openerp__.py).
[FIX]: Increased compatibility with standard PEP8.
[FIX]: Imports in standard format.
[IMP]: Add "state" field in tree view.
[IMP]: Option to generate report suppliers only.
[FIX]: Update address partner search to V7.
[FIX]: Update state in address partner to V7.
[FIX]: Update dependencies, now required the module documents to view generated file in V7.
[FIX]: Translate .pot file to v7.
[FIX]: Translate field "only_supplier" to spanish language.
[FIX]: Format the text that explains the module.
[IMP]: Add icon and screencapture.
Joaquin Gutierrez (joaquing-pedrosa) wrote : | # |
Pedro Manuel Baeza (pedro.baeza) wrote : | # |
Buenas, Joaquín,
Puesto que he actualizado el l10n_es_aeat con algunas mejoras, descargando los módulos "hijos" de la necesidad de ciertas cosas (workflow, botón, interfaz básico, etc), ¿puedes tú revisar este MP para adecuarlo a ello, o directamente me encargo yo?
Un saludo.
Joaquin Gutierrez (joaquing-pedrosa) wrote : | # |
Hola Pedro:
Ok, este fin de semana lo miro y lo adapto. Un saludo
Enviado en movilidad x un cacharro con iOS
> El 31/01/2014, a las 01:07, Pedro Manuel Baeza <email address hidden> escribió:
>
> Review: Needs Fixing
>
> Buenas, Joaquín,
>
> Puesto que he actualizado el l10n_es_aeat con algunas mejoras, descargando los módulos "hijos" de la necesidad de ciertas cosas (workflow, botón, interfaz básico, etc), ¿puedes tú revisar este MP para adecuarlo a ello, o directamente me encargo yo?
>
> Un saludo.
> --
> https:/
> You are the owner of lp:~joaquing-pedrosa/openerp-spain/7.0-l10n_es_aeat_mod347.
Pedro Manuel Baeza (pedro.baeza) wrote : | # |
Lo incluyo para arreglarlo más tarde en una revisión.
Preview Diff
1 | === modified file 'l10n_es_aeat_mod347/__init__.py' (properties changed: -x to +x) |
2 | --- l10n_es_aeat_mod347/__init__.py 2013-11-22 23:44:11 +0000 |
3 | +++ l10n_es_aeat_mod347/__init__.py 2013-12-27 10:08:05 +0000 |
4 | @@ -19,11 +19,10 @@ |
5 | # |
6 | ############################################################################## |
7 | |
8 | -__author__ = "Luis Manuel Angueira Blanco (Pexego)" |
9 | |
10 | import account_journal |
11 | import res_partner |
12 | import mod347 |
13 | - |
14 | import wizard |
15 | -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
16 | \ No newline at end of file |
17 | + |
18 | +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
19 | |
20 | === modified file 'l10n_es_aeat_mod347/__openerp__.py' (properties changed: -x to +x) |
21 | --- l10n_es_aeat_mod347/__openerp__.py 2013-11-22 23:44:11 +0000 |
22 | +++ l10n_es_aeat_mod347/__openerp__.py 2013-12-27 10:08:05 +0000 |
23 | @@ -20,72 +20,78 @@ |
24 | ############################################################################## |
25 | |
26 | { |
27 | - "name" : "AEAT Model 347", |
28 | - "version" : "1.0", |
29 | - "author" : "Pexego, ASR-OSS, NaN·tic, Acysos", |
30 | - "license" : "AGPL-3", |
31 | - "website" : "http://www.pexego.es, www.asr-oss.com, www.nan-tic.com, www.acysos.com", |
32 | - "category" : "Localisation/Accounting", |
33 | - "description" : """ |
34 | - Módulo para la presentación del Modelo AEAT 347 (Declaración Anual de Operaciones con Terceros) |
35 | + 'name': "AEAT Model 347", |
36 | + 'version': "1.0", |
37 | + 'author': "Pexego, ASR-OSS, NaN·tic, Acysos", |
38 | + 'website': "http://www.pexego.es, www.asr-oss.com, www.nan-tic.com, www.acysos.com", |
39 | + 'contributors': ['Pedro M. Baeza', 'Joaquín Gutierrez'], |
40 | + 'category': "Localisation/Accounting", |
41 | + 'description': """ |
42 | +Presentación del Modelo AEAT 347 |
43 | +============================================ |
44 | |
45 | +(Declaración Anual de Operaciones con Terceros) |
46 | Basado en la Orden EHA/3012/2008, de 20 de Octubre, por el que se aprueban los diseños físicos y lógicos del 347. |
47 | |
48 | De acuerdo con la normativa de la Hacienda Española, están obligados a presentar el modelo 347: |
49 | - * Todas aquellas personas físicas o jurídicas que no esten acogidas al regimen |
50 | - de módulos en el IRPF, de naturaleza pública o privada que desarrollen |
51 | - actividades empresariales o profesionales, siempre y cuando hayan |
52 | - realizado operaciones que, en su conjunto, respecto de otra persona |
53 | - o Entidad, cualquiera que sea su naturaleza o carácter, hayan superado |
54 | - la cifra de 3.005,06€ durante el año natural al que se refiere la |
55 | - declaración. Para el cálculo de la cifra de 3.005,06 € se computan de |
56 | - forma separada las entregas de biene y servicios y las adquisiciones |
57 | - de los mismos. |
58 | - * En el caso de Sociedades Irregulares, Sociedades Civiles y Comunidad de Bienes |
59 | - no acogidas el regimen de módulos en el IRPF, deben incluir las facturas sin |
60 | - incluir la cuantía del IRPF. |
61 | - * En el caso de facturas de proveedor con IRPF, no deben ser presentadas en este |
62 | - modelo. Se presentan en el modelo 190. Desactivar en la ficha del proveedor |
63 | - la opción de "Incluir en el informe 347". |
64 | +----------------------------------------------------------------------------------------------- |
65 | +* Todas aquellas personas físicas o jurídicas que no esten acogidas al regimen de módulos en el IRPF, |
66 | + de naturaleza pública o privada que desarrollen actividades empresariales o profesionales, |
67 | + siempre y cuando hayan realizado operaciones que, en su conjunto, respecto de otra persona |
68 | + o Entidad, cualquiera que sea su naturaleza o carácter, hayan superado la cifra de 3.005,06€ |
69 | + durante el año natural al que se refiere la declaración. Para el cálculo de la cifra de 3.005,06 € |
70 | + se computan de forma separada las entregas de biene y servicios y las adquisiciones de los mismos. |
71 | +* En el caso de Sociedades Irregulares, Sociedades Civiles y Comunidad de Bienes |
72 | + no acogidas el regimen de módulos en el IRPF, deben incluir las facturas sin |
73 | + incluir la cuantía del IRPF. |
74 | +* En el caso de facturas de proveedor con IRPF, no deben ser presentadas en este |
75 | + modelo. Se presentan en el modelo 190. Desactivar en la ficha del proveedor |
76 | + la opción de "Incluir en el informe 347". |
77 | |
78 | De acuerdo con la normativa no están obligados a presentar el modelo 347: |
79 | - * Quienes realicen en España actividades empresariales o profesionales sin |
80 | - tener en territorio español la sede de su actividad, un establecimiento |
81 | - permanente o su domicilio fiscal. |
82 | - * Las personas físicas y entidades en régimen de atribución de rentas en |
83 | - el IRPF, por las actividades que tributen en dicho impuesto por el |
84 | - régimen de estimación objetiva y, simultáneamente, en el IVA por los |
85 | - régimenes especiales simplificados o de la agricultura, ganadería |
86 | - y pesca o recargo de equivalencia, salvo las operaciones que estén |
87 | - excluidas de la aplicación de los expresados regímenes. |
88 | - * Los obligados tributarios que no hayan realizado operaciones que en su |
89 | - conjunto superen la cifra de 3.005,06€ |
90 | - * Los obligados tributarios que hayan realizado exclusivamente operaciones |
91 | - no declarables. |
92 | - * Los obligados tributarios que deban informar sobre las operaciones |
93 | - incluidas en los libros registro de IVA (modelo 340) salvo que realicen |
94 | - operaciones que expresamente deban incluirse en el modelo 347. |
95 | +------------------------------------------------------------------------- |
96 | +* Quienes realicen en España actividades empresariales o profesionales sin |
97 | + tener en territorio español la sede de su actividad, un establecimiento |
98 | + permanente o su domicilio fiscal. |
99 | +* Las personas físicas y entidades en régimen de atribución de rentas en |
100 | + el IRPF, por las actividades que tributen en dicho impuesto por el |
101 | + régimen de estimación objetiva y, simultáneamente, en el IVA por los |
102 | + régimenes especiales simplificados o de la agricultura, ganadería |
103 | + y pesca o recargo de equivalencia, salvo las operaciones que estén |
104 | + excluidas de la aplicación de los expresados regímenes. |
105 | +* Los obligados tributarios que no hayan realizado operaciones que en su |
106 | + conjunto superen la cifra de 3.005,06€ |
107 | +* Los obligados tributarios que hayan realizado exclusivamente operaciones |
108 | + no declarables. |
109 | +* Los obligados tributarios que deban informar sobre las operaciones |
110 | + incluidas en los libros registro de IVA (modelo 340) salvo que realicen |
111 | + operaciones que expresamente deban incluirse en el modelo 347. |
112 | |
113 | (http://www.boe.es/boe/dias/2008/10/23/pdfs/A42154-42190.pdf) |
114 | """, |
115 | - "init_xml" : [], |
116 | - "depends" : [ |
117 | - "base_vat", |
118 | - "l10n_es_aeat", |
119 | - "account_invoice_currency", |
120 | - ], |
121 | - "update_xml" : [ |
122 | - "account_journal_view.xml", |
123 | - "res_partner_view.xml", |
124 | - "mod347_view.xml", |
125 | - "mod347_workflow.xml", |
126 | - "mod347_report.xml", |
127 | - "security/ir.model.access.csv", |
128 | - "security/mod_347_security.xml" |
129 | - ], |
130 | - "demo_xml" : [], |
131 | - "test" : [], |
132 | - "installable" : False, |
133 | - "active" : False, |
134 | + 'license': "AGPL-3", |
135 | + 'init_xml': [], |
136 | + 'depends': [ |
137 | + "base_vat", |
138 | + "l10n_es_aeat", |
139 | + "account_invoice_currency", |
140 | + "document", |
141 | + ], |
142 | + 'data': [ |
143 | + "account_journal_view.xml", |
144 | + "res_partner_view.xml", |
145 | + "mod347_view.xml", |
146 | + "mod347_workflow.xml", |
147 | + "mod347_report.xml", |
148 | + "security/ir.model.access.csv", |
149 | + "security/mod_347_security.xml" |
150 | + ], |
151 | + 'installable': True, |
152 | + 'active': False, |
153 | + 'images': [ |
154 | + 'images/l10n_es_aeat_mod347.png', |
155 | + ], |
156 | + |
157 | } |
158 | + |
159 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
160 | |
161 | === modified file 'l10n_es_aeat_mod347/account_journal.py' (properties changed: -x to +x) |
162 | --- l10n_es_aeat_mod347/account_journal.py 2013-11-22 23:44:11 +0000 |
163 | +++ l10n_es_aeat_mod347/account_journal.py 2013-12-27 10:08:05 +0000 |
164 | @@ -19,27 +19,23 @@ |
165 | # |
166 | ############################################################################## |
167 | |
168 | -__author__ = "Luis Manuel Angueira Blanco (Pexego)" |
169 | - |
170 | -""" |
171 | -Extends the account journals to add fields used by the 347 report. |
172 | -""" |
173 | - |
174 | -from osv import osv, fields |
175 | - |
176 | -class account_journal(osv.osv): |
177 | - """ |
178 | - Extends the account journals to add the cash_journal field. |
179 | - """ |
180 | + |
181 | +from openerp.osv import fields |
182 | +from openerp.osv import orm |
183 | + |
184 | + |
185 | +class account_journal(orm.Model): |
186 | _inherit = 'account.journal' |
187 | - |
188 | _columns = { |
189 | 'cash_journal': fields.boolean('Cash payments journal', |
190 | - help="Payments of this journal will be considered as cash (used on the 347 report)"), |
191 | - } |
192 | + help="Payments of this journal will be considered as cash" \ |
193 | + "(used on the 347 report)"), |
194 | + } |
195 | |
196 | _defaults = { |
197 | - 'cash_journal': lambda *a : False |
198 | - } |
199 | - |
200 | + 'cash_journal': lambda *a: False |
201 | + } |
202 | + |
203 | account_journal() |
204 | + |
205 | +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
206 | |
207 | === modified file 'l10n_es_aeat_mod347/account_journal_view.xml' (properties changed: -x to +x) |
208 | --- l10n_es_aeat_mod347/account_journal_view.xml 2013-11-22 23:44:11 +0000 |
209 | +++ l10n_es_aeat_mod347/account_journal_view.xml 2013-12-27 10:08:05 +0000 |
210 | @@ -24,8 +24,8 @@ |
211 | <field name="type">form</field> |
212 | <field name="inherit_id" ref="account.view_account_period_form"/> |
213 | <field name="arch" type="xml"> |
214 | - <field name="date_stop" position="after"> |
215 | - <field name="quarter"/> |
216 | + <field name="company_id" position="after"> |
217 | + <field name="quarter"/> |
218 | </field> |
219 | </field> |
220 | </record> |
221 | @@ -36,9 +36,9 @@ |
222 | <field name="type">tree</field> |
223 | <field name="inherit_id" ref="account.view_account_period_tree"/> |
224 | <field name="arch" type="xml"> |
225 | - <field name="date_stop" position="after"> |
226 | - <field name="quarter" /> |
227 | - </field> |
228 | + <field name="company_id" position="after"> |
229 | + <field name="quarter" /> |
230 | + </field> |
231 | </field> |
232 | </record> |
233 | |
234 | |
235 | === modified file 'l10n_es_aeat_mod347/i18n/ca.po' |
236 | --- l10n_es_aeat_mod347/i18n/ca.po 2013-12-19 06:16:40 +0000 |
237 | +++ l10n_es_aeat_mod347/i18n/ca.po 2013-12-27 10:08:05 +0000 |
238 | @@ -7,15 +7,15 @@ |
239 | "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" |
240 | "Report-Msgid-Bugs-To: support@openerp.com\n" |
241 | "POT-Creation-Date: 2012-03-20 17:21+0000\n" |
242 | -"PO-Revision-Date: 2013-12-10 16:44+0000\n" |
243 | +"PO-Revision-Date: 2013-10-12 00:00+0000\n" |
244 | "Last-Translator: Jordi Esteve (www.zikzakmedia.com) " |
245 | "<jesteve@zikzakmedia.com>\n" |
246 | "Language-Team: \n" |
247 | "MIME-Version: 1.0\n" |
248 | "Content-Type: text/plain; charset=UTF-8\n" |
249 | "Content-Transfer-Encoding: 8bit\n" |
250 | -"X-Launchpad-Export-Date: 2013-12-19 06:16+0000\n" |
251 | -"X-Generator: Launchpad (build 16872)\n" |
252 | +"X-Launchpad-Export-Date: 2013-10-14 05:33+0000\n" |
253 | +"X-Generator: Launchpad (build 16799)\n" |
254 | |
255 | #. module: l10n_es_aeat_mod347 |
256 | #: code:addons/l10n_es_aeat_mod347/wizard/export_mod347_to_boe.py:157 |
257 | @@ -33,7 +33,7 @@ |
258 | #. module: l10n_es_aeat_mod347 |
259 | #: code:addons/l10n_es_aeat_mod347/mod347.py:142 |
260 | #, python-format |
261 | -msgid "All real estate records state code field must be filled." |
262 | +msgid "All real state records state code field must be filled." |
263 | msgstr "" |
264 | "El codi de província de tots els registres d'immobles han d'estar introduïts." |
265 | |
266 | @@ -61,12 +61,12 @@ |
267 | #: field:l10n.es.aeat.mod347.partner_record,real_state_record_ids:0 |
268 | #: view:l10n.es.aeat.mod347.real_state_record:0 |
269 | #: field:l10n.es.aeat.mod347.report,real_state_record_ids:0 |
270 | -msgid "Real Estate Records" |
271 | +msgid "Real State Records" |
272 | msgstr "Registres d'immobles" |
273 | |
274 | #. module: l10n_es_aeat_mod347 |
275 | #: field:l10n.es.aeat.mod347.partner_record,fourth_quarter_real_state_transmission_amount:0 |
276 | -msgid "Fourth Quarter Real Estate Transmossion Amount" |
277 | +msgid "Fourth Quarter Real State Transmossion Amount" |
278 | msgstr "Import transmissió immoble (T4)" |
279 | |
280 | #. module: l10n_es_aeat_mod347 |
281 | @@ -89,7 +89,7 @@ |
282 | #. module: l10n_es_aeat_mod347 |
283 | #: model:ir.model,name:l10n_es_aeat_mod347.model_l10n_es_aeat_mod347_real_state_record |
284 | #: view:l10n.es.aeat.mod347.real_state_record:0 |
285 | -msgid "Real Estate Record" |
286 | +msgid "Real State Record" |
287 | msgstr "Registre d'immoble" |
288 | |
289 | #. module: l10n_es_aeat_mod347 |
290 | @@ -123,7 +123,7 @@ |
291 | |
292 | #. module: l10n_es_aeat_mod347 |
293 | #: field:l10n.es.aeat.mod347.report,total_real_state_amount:0 |
294 | -msgid "Real Estate Amount" |
295 | +msgid "Real State Amount" |
296 | msgstr "Import immobles" |
297 | |
298 | #. module: l10n_es_aeat_mod347 |
299 | @@ -227,7 +227,7 @@ |
300 | #. module: l10n_es_aeat_mod347 |
301 | #: code:addons/l10n_es_aeat_mod347/wizard/export_mod347_to_boe.py:232 |
302 | #, python-format |
303 | -msgid "The type 2-I record (real estate) must be 502 characters long" |
304 | +msgid "The type 2-I record (real state) must be 502 characters long" |
305 | msgstr "" |
306 | "El tipus de registre 2-I (estat real) ha de ser de 502 caràcters de llargada" |
307 | |
308 | @@ -244,7 +244,7 @@ |
309 | |
310 | #. module: l10n_es_aeat_mod347 |
311 | #: view:l10n.es.aeat.mod347.report:0 |
312 | -msgid "Real Estate records" |
313 | +msgid "Real State records" |
314 | msgstr "Registres d'immobles" |
315 | |
316 | #. module: l10n_es_aeat_mod347 |
317 | @@ -293,7 +293,7 @@ |
318 | |
319 | #. module: l10n_es_aeat_mod347 |
320 | #: field:l10n.es.aeat.mod347.partner_record,bussiness_real_state_rent:0 |
321 | -msgid "Bussiness Real Estate Rent" |
322 | +msgid "Bussiness Real State Rent" |
323 | msgstr "Arrendament local negoci" |
324 | |
325 | #. module: l10n_es_aeat_mod347 |
326 | @@ -445,7 +445,7 @@ |
327 | |
328 | #. module: l10n_es_aeat_mod347 |
329 | #: field:l10n.es.aeat.mod347.real_state_record,situation:0 |
330 | -msgid "Real estate Situation" |
331 | +msgid "Real state Situation" |
332 | msgstr "Situació d'immobles" |
333 | |
334 | #. module: l10n_es_aeat_mod347 |
335 | @@ -496,12 +496,12 @@ |
336 | #. module: l10n_es_aeat_mod347 |
337 | #: view:l10n.es.aeat.mod347.partner_record:0 |
338 | #: view:l10n.es.aeat.mod347.real_state_record:0 |
339 | -msgid "Real estate info" |
340 | +msgid "Real state info" |
341 | msgstr "Informació Immobles" |
342 | |
343 | #. module: l10n_es_aeat_mod347 |
344 | #: field:l10n.es.aeat.mod347.partner_record,real_state_transmissions_amount:0 |
345 | -msgid "Real Estate Transmisions amount" |
346 | +msgid "Real State Transmisions amount" |
347 | msgstr "Import transmissió immoble" |
348 | |
349 | #. module: l10n_es_aeat_mod347 |
350 | @@ -582,8 +582,8 @@ |
351 | #. module: l10n_es_aeat_mod347 |
352 | #: help:l10n.es.aeat.mod347.partner_record,bussiness_real_state_rent:0 |
353 | msgid "" |
354 | -"Set to identify real estate rent operations aside from the rest. You'll need " |
355 | -"to fill in the real estate info only when you are the one that receives the " |
356 | +"Set to identify real state rent operations aside from the rest. You'll need " |
357 | +"to fill in the real state info only when you are the one that receives the " |
358 | "money." |
359 | msgstr "" |
360 | "(Només arrendadors i arrendataris de Locals de Negoci). Marcaran aquesta " |
361 | @@ -691,7 +691,7 @@ |
362 | |
363 | #. module: l10n_es_aeat_mod347 |
364 | #: field:l10n.es.aeat.mod347.partner_record,third_quarter_real_state_transmission_amount:0 |
365 | -msgid "Third Quarter Real Estate Transmission Amount" |
366 | +msgid "Third Quarter Real State Transmission Amount" |
367 | msgstr "Import transmissió immoble (T3)" |
368 | |
369 | #. module: l10n_es_aeat_mod347 |
370 | @@ -747,7 +747,7 @@ |
371 | |
372 | #. module: l10n_es_aeat_mod347 |
373 | #: report:report_l10n_es_aeat_mod347.report:0 |
374 | -msgid "Real Estate Transmission (Q1|Q2|Q3|Q4)" |
375 | +msgid "Real State Transmission (Q1|Q2|Q3|Q4)" |
376 | msgstr "Import transmissió immoble (T1|T2|T3|T4)" |
377 | |
378 | #. module: l10n_es_aeat_mod347 |
379 | @@ -830,7 +830,7 @@ |
380 | |
381 | #. module: l10n_es_aeat_mod347 |
382 | #: view:l10n.es.aeat.mod347.real_state_record:0 |
383 | -msgid "Real estate address" |
384 | +msgid "Real state address" |
385 | msgstr "Adreça de l'immoble" |
386 | |
387 | #. module: l10n_es_aeat_mod347 |
388 | @@ -855,7 +855,7 @@ |
389 | |
390 | #. module: l10n_es_aeat_mod347 |
391 | #: field:l10n.es.aeat.mod347.partner_record,first_quarter_real_state_transmission_amount:0 |
392 | -msgid "First Quarter Real Estate Transmission Amount" |
393 | +msgid "First Quarter Real State Transmission Amount" |
394 | msgstr "Import transmissió immoble (T1)" |
395 | |
396 | #. module: l10n_es_aeat_mod347 |
397 | @@ -870,7 +870,7 @@ |
398 | |
399 | #. module: l10n_es_aeat_mod347 |
400 | #: field:l10n.es.aeat.mod347.partner_record,second_quarter_real_state_transmission_amount:0 |
401 | -msgid "Second Quarter Real Estate Transmission Amount" |
402 | +msgid "Second Quarter Real State Transmission Amount" |
403 | msgstr "Import transmissió immoble (T2)" |
404 | |
405 | #. module: l10n_es_aeat_mod347 |
406 | @@ -905,7 +905,7 @@ |
407 | |
408 | #. module: l10n_es_aeat_mod347 |
409 | #: field:l10n.es.aeat.mod347.report,total_real_state_transmissions_amount:0 |
410 | -msgid "Real Estate Transmissions Amount" |
411 | +msgid "Real State Transmissions Amount" |
412 | msgstr "Import transmissió immoble" |
413 | |
414 | #. module: l10n_es_aeat_mod347 |
415 | @@ -932,7 +932,7 @@ |
416 | |
417 | #. module: l10n_es_aeat_mod347 |
418 | #: field:l10n.es.aeat.mod347.report,total_real_state_records:0 |
419 | -msgid "Real estate records" |
420 | +msgid "Real state records" |
421 | msgstr "Registres d'immobles" |
422 | |
423 | #. module: l10n_es_aeat_mod347 |
424 | @@ -968,74 +968,3 @@ |
425 | #: model:ir.model,name:l10n_es_aeat_mod347.model_account_journal |
426 | msgid "Journal" |
427 | msgstr "Diari" |
428 | - |
429 | -#~ msgid "Real State Record" |
430 | -#~ msgstr "Registre d'immoble" |
431 | - |
432 | -#~ msgid "Real State Records" |
433 | -#~ msgstr "Registres d'immobles" |
434 | - |
435 | -#~ msgid "Real State records" |
436 | -#~ msgstr "Registres d'immobles" |
437 | - |
438 | -#~ msgid "Bussiness Real State Rent" |
439 | -#~ msgstr "Arrendament local negoci" |
440 | - |
441 | -#~ msgid "Real state info" |
442 | -#~ msgstr "Informació Immobles" |
443 | - |
444 | -#~ msgid "Real State Transmisions amount" |
445 | -#~ msgstr "Import transmissió immoble" |
446 | - |
447 | -#~ msgid "" |
448 | -#~ "Set to identify real state rent operations aside from the rest. You'll need " |
449 | -#~ "to fill in the real state info only when you are the one that receives the " |
450 | -#~ "money." |
451 | -#~ msgstr "" |
452 | -#~ "(Només arrendadors i arrendataris de Locals de Negoci). Marcaran aquesta " |
453 | -#~ "casella per identificar les operacions d'arrendament de locals de negoci, i " |
454 | -#~ "s'han de consignar separadament de la resta. A més a més els arrendadors han " |
455 | -#~ "d'emplenar els camps que componen el REGISTRE D'IMMOBLE, consignant l'Import " |
456 | -#~ "Total de cada arrendament corresponent a l'any natural al qual es refereix " |
457 | -#~ "la declaració, amb independència que aquest ja hagi estat inclòs en la clau " |
458 | -#~ "'B' (vendes)." |
459 | - |
460 | -#~ msgid "Real state address" |
461 | -#~ msgstr "Adreça de l'immoble" |
462 | - |
463 | -#~ msgid "Real State Transmissions Amount" |
464 | -#~ msgstr "Import transmissió immoble" |
465 | - |
466 | -#~ msgid "Real State Amount" |
467 | -#~ msgstr "Import immobles" |
468 | - |
469 | -#~ msgid "Real state records" |
470 | -#~ msgstr "Registres d'immobles" |
471 | - |
472 | -#, python-format |
473 | -#~ msgid "All real state records state code field must be filled." |
474 | -#~ msgstr "" |
475 | -#~ "El codi de província de tots els registres d'immobles han d'estar introduïts." |
476 | - |
477 | -#~ msgid "Fourth Quarter Real State Transmossion Amount" |
478 | -#~ msgstr "Import transmissió immoble (T4)" |
479 | - |
480 | -#, python-format |
481 | -#~ msgid "The type 2-I record (real state) must be 502 characters long" |
482 | -#~ msgstr "" |
483 | -#~ "El tipus de registre 2-I (estat real) ha de ser de 502 caràcters de llargada" |
484 | - |
485 | -#~ msgid "Real state Situation" |
486 | -#~ msgstr "Situació d'immobles" |
487 | - |
488 | -#~ msgid "Third Quarter Real State Transmission Amount" |
489 | -#~ msgstr "Import transmissió immoble (T3)" |
490 | - |
491 | -#~ msgid "Real State Transmission (Q1|Q2|Q3|Q4)" |
492 | -#~ msgstr "Import transmissió immoble (T1|T2|T3|T4)" |
493 | - |
494 | -#~ msgid "First Quarter Real State Transmission Amount" |
495 | -#~ msgstr "Import transmissió immoble (T1)" |
496 | - |
497 | -#~ msgid "Second Quarter Real State Transmission Amount" |
498 | -#~ msgstr "Import transmissió immoble (T2)" |
499 | |
500 | === modified file 'l10n_es_aeat_mod347/i18n/es.po' |
501 | --- l10n_es_aeat_mod347/i18n/es.po 2013-12-19 06:16:40 +0000 |
502 | +++ l10n_es_aeat_mod347/i18n/es.po 2013-12-27 10:08:05 +0000 |
503 | @@ -5,23 +5,29 @@ |
504 | msgid "" |
505 | msgstr "" |
506 | "Project-Id-Version: OpenERP Server 6.0.2\n" |
507 | -"Report-Msgid-Bugs-To: support@openerp.com\n" |
508 | -"POT-Creation-Date: 2012-03-20 17:21+0000\n" |
509 | -"PO-Revision-Date: 2013-12-10 16:44+0000\n" |
510 | -"Last-Translator: Alejandro Santana <alejandrosantana@anubia.es>\n" |
511 | +"Report-Msgid-Bugs-To: \n" |
512 | +"POT-Creation-Date: 2013-11-18 11:54+0000\n" |
513 | +"PO-Revision-Date: 2013-11-19 18:01+0100\n" |
514 | +"Last-Translator: Joaquin Gutierrez <joaquing.pedrosa@gmail.com>\n" |
515 | "Language-Team: \n" |
516 | +"Language: \n" |
517 | "MIME-Version: 1.0\n" |
518 | "Content-Type: text/plain; charset=UTF-8\n" |
519 | "Content-Transfer-Encoding: 8bit\n" |
520 | -"X-Launchpad-Export-Date: 2013-12-19 06:16+0000\n" |
521 | -"X-Generator: Launchpad (build 16872)\n" |
522 | - |
523 | -#. module: l10n_es_aeat_mod347 |
524 | -#: code:addons/l10n_es_aeat_mod347/wizard/export_mod347_to_boe.py:157 |
525 | +"X-Launchpad-Export-Date: 2013-10-14 05:33+0000\n" |
526 | +"X-Generator: Launchpad (build 16799)\n" |
527 | + |
528 | +#. module: l10n_es_aeat_mod347 |
529 | +#: view:l10n.es.aeat.mod347.report:0 |
530 | +#, fuzzy |
531 | +msgid "Confirmed models" |
532 | +msgstr "Confirmar" |
533 | + |
534 | +#. module: l10n_es_aeat_mod347 |
535 | +#: code:addons/l10n_es_aeat_mod347/wizard/export_mod347_to_boe.py:202 |
536 | #, python-format |
537 | msgid "The type 2-D record (partner) must be 502 characters long" |
538 | -msgstr "" |
539 | -"El tipo de registro 2-D (empresa) debe ser de 502 caracteres de largo" |
540 | +msgstr "El tipo de registro 2-D (empresa) debe ser de 502 caracteres de largo" |
541 | |
542 | #. module: l10n_es_aeat_mod347 |
543 | #: model:ir.model,name:l10n_es_aeat_mod347.model_l10n_es_aeat_mod347_partner_record |
544 | @@ -30,12 +36,10 @@ |
545 | msgstr "Registro de empresa" |
546 | |
547 | #. module: l10n_es_aeat_mod347 |
548 | -#: code:addons/l10n_es_aeat_mod347/mod347.py:142 |
549 | +#: code:addons/l10n_es_aeat_mod347/mod347.py:199 |
550 | #, python-format |
551 | -msgid "All real estate records state code field must be filled." |
552 | -msgstr "" |
553 | -"El código de provincia de todos los registros de inmuebles debe estar " |
554 | -"rellenado." |
555 | +msgid "All real state records state code field must be filled." |
556 | +msgstr "El código de provincia de todos los registros de inmuebles debe estar rellenado." |
557 | |
558 | #. module: l10n_es_aeat_mod347 |
559 | #: report:report_l10n_es_aeat_mod347.report:0 |
560 | @@ -43,6 +47,12 @@ |
561 | msgstr "Clave oper." |
562 | |
563 | #. module: l10n_es_aeat_mod347 |
564 | +#: view:l10n.es.aeat.mod347.report:0 |
565 | +#, fuzzy |
566 | +msgid "Group By..." |
567 | +msgstr "Agrupar por CIF" |
568 | + |
569 | +#. module: l10n_es_aeat_mod347 |
570 | #: selection:account.period,quarter:0 |
571 | msgid "Fourth" |
572 | msgstr "Cuarto" |
573 | @@ -61,12 +71,12 @@ |
574 | #: field:l10n.es.aeat.mod347.partner_record,real_state_record_ids:0 |
575 | #: view:l10n.es.aeat.mod347.real_state_record:0 |
576 | #: field:l10n.es.aeat.mod347.report,real_state_record_ids:0 |
577 | -msgid "Real Estate Records" |
578 | +msgid "Real State Records" |
579 | msgstr "Registros de inmuebles" |
580 | |
581 | #. module: l10n_es_aeat_mod347 |
582 | #: field:l10n.es.aeat.mod347.partner_record,fourth_quarter_real_state_transmission_amount:0 |
583 | -msgid "Fourth Quarter Real Estate Transmossion Amount" |
584 | +msgid "Fourth Quarter Real State Transmossion Amount" |
585 | msgstr "Importe transmisión inmueble (T4)" |
586 | |
587 | #. module: l10n_es_aeat_mod347 |
588 | @@ -89,17 +99,13 @@ |
589 | #. module: l10n_es_aeat_mod347 |
590 | #: model:ir.model,name:l10n_es_aeat_mod347.model_l10n_es_aeat_mod347_real_state_record |
591 | #: view:l10n.es.aeat.mod347.real_state_record:0 |
592 | -msgid "Real Estate Record" |
593 | +msgid "Real State Record" |
594 | msgstr "Registros de inmuebles" |
595 | |
596 | #. module: l10n_es_aeat_mod347 |
597 | #: help:l10n.es.aeat.mod347.report,operations_limit:0 |
598 | -msgid "" |
599 | -"The declaration will include partners with the total of operations over this " |
600 | -"limit" |
601 | -msgstr "" |
602 | -"La declaración incluirá las empresas cuya suma de operaciones supere este " |
603 | -"límite." |
604 | +msgid "The declaration will include partners with the total of operations over this limit" |
605 | +msgstr "La declaración incluirá las empresas cuya suma de operaciones supere este límite." |
606 | |
607 | #. module: l10n_es_aeat_mod347 |
608 | #: field:l10n.es.aeat.mod347.real_state_record,number_calification:0 |
609 | @@ -117,13 +123,8 @@ |
610 | msgstr "Importe en efectivo" |
611 | |
612 | #. module: l10n_es_aeat_mod347 |
613 | -#: constraint:account.period:0 |
614 | -msgid "Error ! The duration of the Period(s) is/are invalid. " |
615 | -msgstr "¡Error! La duración del periodo(s) no es válida. " |
616 | - |
617 | -#. module: l10n_es_aeat_mod347 |
618 | #: field:l10n.es.aeat.mod347.report,total_real_state_amount:0 |
619 | -msgid "Real Estate Amount" |
620 | +msgid "Real State Amount" |
621 | msgstr "Importe inmuebles" |
622 | |
623 | #. module: l10n_es_aeat_mod347 |
624 | @@ -167,7 +168,7 @@ |
625 | msgstr "Registros de empresas" |
626 | |
627 | #. module: l10n_es_aeat_mod347 |
628 | -#: code:addons/l10n_es_aeat_mod347/wizard/export_mod347_to_boe.py:88 |
629 | +#: code:addons/l10n_es_aeat_mod347/wizard/export_mod347_to_boe.py:106 |
630 | #, python-format |
631 | msgid "The type 1 record must be 502 characters long" |
632 | msgstr "El tipo de registro 1 debe ser de 502 caracteres de largo" |
633 | @@ -178,9 +179,9 @@ |
634 | msgstr "Tipo de soporte" |
635 | |
636 | #. module: l10n_es_aeat_mod347 |
637 | -#: code:addons/l10n_es_aeat_mod347/mod347.py:136 |
638 | -#: code:addons/l10n_es_aeat_mod347/mod347.py:138 |
639 | -#: code:addons/l10n_es_aeat_mod347/mod347.py:142 |
640 | +#: code:addons/l10n_es_aeat_mod347/mod347.py:184 |
641 | +#: code:addons/l10n_es_aeat_mod347/mod347.py:190 |
642 | +#: code:addons/l10n_es_aeat_mod347/mod347.py:198 |
643 | #, python-format |
644 | msgid "Error!" |
645 | msgstr "¡Error!" |
646 | @@ -220,21 +221,21 @@ |
647 | msgstr "CIF/NIF" |
648 | |
649 | #. module: l10n_es_aeat_mod347 |
650 | +#: help:account.journal,cash_journal:0 |
651 | +#, fuzzy |
652 | +msgid "Payments of this journal will be considered as cash(used on the 347 report)" |
653 | +msgstr "Los pagos realizados con este diario serán considerados como efectivo (utilizado en la declaración 347)." |
654 | + |
655 | +#. module: l10n_es_aeat_mod347 |
656 | #: view:l10n.es.aeat.mod347.report:0 |
657 | msgid "Calculation" |
658 | msgstr "Cálculo" |
659 | |
660 | #. module: l10n_es_aeat_mod347 |
661 | -#: code:addons/l10n_es_aeat_mod347/wizard/export_mod347_to_boe.py:232 |
662 | +#: code:addons/l10n_es_aeat_mod347/wizard/export_mod347_to_boe.py:306 |
663 | #, python-format |
664 | -msgid "The type 2-I record (real estate) must be 502 characters long" |
665 | -msgstr "" |
666 | -"El tipo de registro 2-I (estado real) debe ser de 502 caracteres de largo" |
667 | - |
668 | -#. module: l10n_es_aeat_mod347 |
669 | -#: sql_constraint:account.journal:0 |
670 | -msgid "The code of the journal must be unique per company !" |
671 | -msgstr "¡El código del diario debe ser único por compañía!" |
672 | +msgid "The type 2-I record (real state) must be 502 characters long" |
673 | +msgstr "El tipo de registro 2-I (estado real) debe ser de 502 caracteres de largo" |
674 | |
675 | #. module: l10n_es_aeat_mod347 |
676 | #: view:l10n.es.aeat.mod347.report:0 |
677 | @@ -244,7 +245,7 @@ |
678 | |
679 | #. module: l10n_es_aeat_mod347 |
680 | #: view:l10n.es.aeat.mod347.report:0 |
681 | -msgid "Real Estate records" |
682 | +msgid "Real State records" |
683 | msgstr "Registros de inmuebles" |
684 | |
685 | #. module: l10n_es_aeat_mod347 |
686 | @@ -258,18 +259,20 @@ |
687 | msgstr "Confirmar" |
688 | |
689 | #. module: l10n_es_aeat_mod347 |
690 | +#: view:l10n.es.aeat.mod347.report:0 |
691 | +#, fuzzy |
692 | +msgid "Cancelled models" |
693 | +msgstr "Cancelada" |
694 | + |
695 | +#. module: l10n_es_aeat_mod347 |
696 | #: field:l10n.es.aeat.mod347.partner_record,origin_fiscalyear_id:0 |
697 | msgid "Origin fiscal year" |
698 | msgstr "Ejercicio fiscal origen" |
699 | |
700 | #. module: l10n_es_aeat_mod347 |
701 | #: help:l10n.es.aeat.mod347.report,charges_obtp_limit:0 |
702 | -msgid "" |
703 | -"The declaration will include partners from which we received payments, on " |
704 | -"behalf of third parties, over this limit" |
705 | -msgstr "" |
706 | -"La declaración incluirá las empresas a las que hemos realizado cobros por " |
707 | -"cuenta de terceros superiores al límite." |
708 | +msgid "The declaration will include partners from which we received payments, on behalf of third parties, over this limit" |
709 | +msgstr "La declaración incluirá las empresas a las que hemos realizado cobros por cuenta de terceros superiores al límite." |
710 | |
711 | #. module: l10n_es_aeat_mod347 |
712 | #: field:l10n.es.aeat.mod347.report,operations_limit:0 |
713 | @@ -282,7 +285,7 @@ |
714 | msgstr "3 - España, sin referencia catastral" |
715 | |
716 | #. module: l10n_es_aeat_mod347 |
717 | -#: code:addons/l10n_es_aeat_mod347/mod347.py:138 |
718 | +#: code:addons/l10n_es_aeat_mod347/mod347.py:191 |
719 | #, python-format |
720 | msgid "" |
721 | "All partner vat number field must be filled.\n" |
722 | @@ -293,18 +296,17 @@ |
723 | |
724 | #. module: l10n_es_aeat_mod347 |
725 | #: field:l10n.es.aeat.mod347.partner_record,bussiness_real_state_rent:0 |
726 | -msgid "Bussiness Real Estate Rent" |
727 | +msgid "Bussiness Real State Rent" |
728 | msgstr "Arrendamiento local negocio" |
729 | |
730 | #. module: l10n_es_aeat_mod347 |
731 | -#: code:addons/l10n_es_aeat_mod347/mod347.py:136 |
732 | +#: code:addons/l10n_es_aeat_mod347/mod347.py:185 |
733 | #, python-format |
734 | msgid "" |
735 | "All partner state code field must be filled.\n" |
736 | "Partner: %s (%s)" |
737 | msgstr "" |
738 | -"El código de provincia de todos los registros de empresas debe estar " |
739 | -"rellenado.\n" |
740 | +"El código de provincia de todos los registros de empresas debe estar rellenado.\n" |
741 | "Empresa: %s (%s)" |
742 | |
743 | #. module: l10n_es_aeat_mod347 |
744 | @@ -401,6 +403,11 @@ |
745 | msgstr "Escalera" |
746 | |
747 | #. module: l10n_es_aeat_mod347 |
748 | +#: field:l10n.es.aeat.mod347.report,only_supplier:0 |
749 | +msgid "Only Suppliers" |
750 | +msgstr "Solo Proveedores" |
751 | + |
752 | +#. module: l10n_es_aeat_mod347 |
753 | #: field:l10n.es.aeat.mod347.partner_record,third_quarter:0 |
754 | msgid "Third Quarter" |
755 | msgstr "Tercer trimestre" |
756 | @@ -445,7 +452,7 @@ |
757 | |
758 | #. module: l10n_es_aeat_mod347 |
759 | #: field:l10n.es.aeat.mod347.real_state_record,situation:0 |
760 | -msgid "Real estate Situation" |
761 | +msgid "Real state Situation" |
762 | msgstr "Situación de inmuebles" |
763 | |
764 | #. module: l10n_es_aeat_mod347 |
765 | @@ -496,12 +503,12 @@ |
766 | #. module: l10n_es_aeat_mod347 |
767 | #: view:l10n.es.aeat.mod347.partner_record:0 |
768 | #: view:l10n.es.aeat.mod347.real_state_record:0 |
769 | -msgid "Real estate info" |
770 | +msgid "Real state info" |
771 | msgstr "Información de inmuebles" |
772 | |
773 | #. module: l10n_es_aeat_mod347 |
774 | #: field:l10n.es.aeat.mod347.partner_record,real_state_transmissions_amount:0 |
775 | -msgid "Real Estate Transmisions amount" |
776 | +msgid "Real State Transmisions amount" |
777 | msgstr "Importe transmisión inmueble" |
778 | |
779 | #. module: l10n_es_aeat_mod347 |
780 | @@ -581,18 +588,8 @@ |
781 | |
782 | #. module: l10n_es_aeat_mod347 |
783 | #: help:l10n.es.aeat.mod347.partner_record,bussiness_real_state_rent:0 |
784 | -msgid "" |
785 | -"Set to identify real estate rent operations aside from the rest. You'll need " |
786 | -"to fill in the real estate info only when you are the one that receives the " |
787 | -"money." |
788 | -msgstr "" |
789 | -"(Sólo arrendadores y arrendatarios de Locales de Negocio). Marcarán esta " |
790 | -"casilla para identificar las operaciones de arrendamiento de locales de " |
791 | -"negocio, debiendo consignarlas separadamente del resto. Además los " |
792 | -"arrendadores deberán cumplimentar los campos que componen el REGISTRO DE " |
793 | -"INMUEBLE, consignando el Importe Total de cada arrendamiento correspondiente " |
794 | -"al año natural al que se refiere la declaración, con independencia de que " |
795 | -"éste ya haya sido incluido en la clave 'B' (ventas)." |
796 | +msgid "Set to identify real state rent operations aside from the rest. You'll need to fill in the real state info only when you are the one that receives the money." |
797 | +msgstr "(Sólo arrendadores y arrendatarios de Locales de Negocio). Marcarán esta casilla para identificar las operaciones de arrendamiento de locales de negocio, debiendo consignarlas separadamente del resto. Además los arrendadores deberán cumplimentar los campos que componen el REGISTRO DE INMUEBLE, consignando el Importe Total de cada arrendamiento correspondiente al año natural al que se refiere la declaración, con independencia de que éste ya haya sido incluido en la clave 'B' (ventas)." |
798 | |
799 | #. module: l10n_es_aeat_mod347 |
800 | #: view:l10n.es.aeat.mod347.report:0 |
801 | @@ -611,12 +608,25 @@ |
802 | msgstr "Número:" |
803 | |
804 | #. module: l10n_es_aeat_mod347 |
805 | -#: help:l10n.es.aeat.mod347.report,received_cash_limit:0 |
806 | +#: model:ir.actions.act_window,help:l10n_es_aeat_mod347.action_l10n_es_aeat_mod347_report |
807 | msgid "" |
808 | -"The declaration will show the total of cash operations over this limit" |
809 | +"<p class=\"oe_view_nocontent_create\">\n" |
810 | +" Click to create a AEAT Model 347 Reports.\n" |
811 | +" \n" |
812 | +" </p><p>\n" |
813 | +" Basado en la Orden EHA/3012/2008, de 20 de Octubre, por el que se aprueban \n" |
814 | +" los diseños físicos y lógicos del 347.\n" |
815 | +" </p>\n" |
816 | +" " |
817 | msgstr "" |
818 | -"La declaración muestra el total de las operaciones realizadas en efectivo " |
819 | -"superiores a este límite." |
820 | +"<p class=\"oe_view_nocontent_create\">\n" |
821 | +" Click to create a AEAT Model 347 Reports.\n" |
822 | +" \n" |
823 | +" </p><p>\n" |
824 | +" Basado en la Orden EHA/3012/2008, de 20 de Octubre, por el que se aprueban \n" |
825 | +" los diseños físicos y lógicos del 347.\n" |
826 | +" </p>\n" |
827 | +" " |
828 | |
829 | #. module: l10n_es_aeat_mod347 |
830 | #: field:l10n.es.aeat.mod347.partner_record,cash_record_ids:0 |
831 | @@ -682,22 +692,19 @@ |
832 | |
833 | #. module: l10n_es_aeat_mod347 |
834 | #: selection:l10n.es.aeat.mod347.partner_record,operation_key:0 |
835 | -msgid "" |
836 | -"D - Adquisiciones efectuadas por Entidades Públicas (...) superiores al " |
837 | -"límite (1)" |
838 | -msgstr "" |
839 | -"D - Adquisiciones efectuadas por Entidades Públicas (...) superiores al " |
840 | -"límite (1)" |
841 | +msgid "D - Adquisiciones efectuadas por Entidades Públicas (...) superiores al límite (1)" |
842 | +msgstr "D - Adquisiciones efectuadas por Entidades Públicas (...) superiores al límite (1)" |
843 | |
844 | #. module: l10n_es_aeat_mod347 |
845 | #: field:l10n.es.aeat.mod347.partner_record,third_quarter_real_state_transmission_amount:0 |
846 | -msgid "Third Quarter Real Estate Transmission Amount" |
847 | +msgid "Third Quarter Real State Transmission Amount" |
848 | msgstr "Importe transmisión inmueble (T3)" |
849 | |
850 | #. module: l10n_es_aeat_mod347 |
851 | -#: model:ir.actions.act_window,help:l10n_es_aeat_mod347.action_l10n_es_aeat_mod347_report |
852 | -msgid "Create and query AEAT Model 347 Reports" |
853 | -msgstr "Permite crear y consultar las declaraciones sobre el modelo AEAT 347" |
854 | +#: help:l10n.es.aeat.mod347.report,received_cash_limit:0 |
855 | +#, fuzzy |
856 | +msgid "The declaration will showthe total of cash operations over this limit" |
857 | +msgstr "La declaración muestra el total de las operaciones realizadas en efectivo superiores a este límite." |
858 | |
859 | #. module: l10n_es_aeat_mod347 |
860 | #: field:l10n.es.aeat.mod347.report,type:0 |
861 | @@ -705,15 +712,6 @@ |
862 | msgstr "Tipo de declaración" |
863 | |
864 | #. module: l10n_es_aeat_mod347 |
865 | -#: constraint:account.period:0 |
866 | -msgid "" |
867 | -"Invalid period ! Some periods overlap or the date period is not in the scope " |
868 | -"of the fiscal year. " |
869 | -msgstr "" |
870 | -"¡Periodo no válido! Algunos periodos se sobreponen o las fechas del periodo " |
871 | -"no están dentro del ejercicio fiscal. " |
872 | - |
873 | -#. module: l10n_es_aeat_mod347 |
874 | #: field:l10n.es.aeat.mod347.real_state_record,number:0 |
875 | #: selection:l10n.es.aeat.mod347.real_state_record,number_type:0 |
876 | msgid "Number" |
877 | @@ -730,6 +728,12 @@ |
878 | msgstr "Ant" |
879 | |
880 | #. module: l10n_es_aeat_mod347 |
881 | +#: view:l10n.es.aeat.mod347.report:0 |
882 | +#, fuzzy |
883 | +msgid "In process models" |
884 | +msgstr "En proceso" |
885 | + |
886 | +#. module: l10n_es_aeat_mod347 |
887 | #: field:l10n.es.aeat.mod347.partner_record,first_quarter:0 |
888 | msgid "First Quarter" |
889 | msgstr "Primer trimestre" |
890 | @@ -747,7 +751,7 @@ |
891 | |
892 | #. module: l10n_es_aeat_mod347 |
893 | #: report:report_l10n_es_aeat_mod347.report:0 |
894 | -msgid "Real Estate Transmission (Q1|Q2|Q3|Q4)" |
895 | +msgid "Real State Transmission (Q1|Q2|Q3|Q4)" |
896 | msgstr "Importe transmisión inmueble (T1|T2|T3|T4)" |
897 | |
898 | #. module: l10n_es_aeat_mod347 |
899 | @@ -762,13 +766,8 @@ |
900 | |
901 | #. module: l10n_es_aeat_mod347 |
902 | #: help:l10n.es.aeat.mod347.partner_record,insurance_operation:0 |
903 | -msgid "" |
904 | -"Only for insurance companies. Set to identify insurance operations aside " |
905 | -"from the rest." |
906 | -msgstr "" |
907 | -"Sólo entidades aseguradoras. Las entidades aseguradoras marcarán esta " |
908 | -"casilla para identificar las operaciones de seguros, debiendo consignarlas " |
909 | -"separadamente del resto de operaciones." |
910 | +msgid "Only for insurance companies. Set to identify insurance operations aside from the rest." |
911 | +msgstr "Sólo entidades aseguradoras. Las entidades aseguradoras marcarán esta casilla para identificar las operaciones de seguros, debiendo consignarlas separadamente del resto de operaciones." |
912 | |
913 | #. module: l10n_es_aeat_mod347 |
914 | #: field:l10n.es.aeat.mod347.real_state_record,city:0 |
915 | @@ -776,14 +775,6 @@ |
916 | msgstr "Población" |
917 | |
918 | #. module: l10n_es_aeat_mod347 |
919 | -#: help:account.journal,cash_journal:0 |
920 | -msgid "" |
921 | -"Payments of this journal will be considered as cash (used on the 347 report)" |
922 | -msgstr "" |
923 | -"Los pagos realizados con este diario serán considerados como efectivo " |
924 | -"(utilizado en la declaración 347)." |
925 | - |
926 | -#. module: l10n_es_aeat_mod347 |
927 | #: field:l10n.es.aeat.mod347.real_state_record,floor:0 |
928 | msgid "Floor" |
929 | msgstr "Planta" |
930 | @@ -830,7 +821,7 @@ |
931 | |
932 | #. module: l10n_es_aeat_mod347 |
933 | #: view:l10n.es.aeat.mod347.real_state_record:0 |
934 | -msgid "Real estate address" |
935 | +msgid "Real state address" |
936 | msgstr "Dirección del inmueble" |
937 | |
938 | #. module: l10n_es_aeat_mod347 |
939 | @@ -855,7 +846,7 @@ |
940 | |
941 | #. module: l10n_es_aeat_mod347 |
942 | #: field:l10n.es.aeat.mod347.partner_record,first_quarter_real_state_transmission_amount:0 |
943 | -msgid "First Quarter Real Estate Transmission Amount" |
944 | +msgid "First Quarter Real State Transmission Amount" |
945 | msgstr "Importe transmisión inmueble (T1)" |
946 | |
947 | #. module: l10n_es_aeat_mod347 |
948 | @@ -870,7 +861,7 @@ |
949 | |
950 | #. module: l10n_es_aeat_mod347 |
951 | #: field:l10n.es.aeat.mod347.partner_record,second_quarter_real_state_transmission_amount:0 |
952 | -msgid "Second Quarter Real Estate Transmission Amount" |
953 | +msgid "Second Quarter Real State Transmission Amount" |
954 | msgstr "Importe transmisión inmueble (T2)" |
955 | |
956 | #. module: l10n_es_aeat_mod347 |
957 | @@ -905,7 +896,7 @@ |
958 | |
959 | #. module: l10n_es_aeat_mod347 |
960 | #: field:l10n.es.aeat.mod347.report,total_real_state_transmissions_amount:0 |
961 | -msgid "Real Estate Transmissions Amount" |
962 | +msgid "Real State Transmissions Amount" |
963 | msgstr "Importe transmisión inmueble" |
964 | |
965 | #. module: l10n_es_aeat_mod347 |
966 | @@ -920,6 +911,16 @@ |
967 | msgstr "Importe T.I." |
968 | |
969 | #. module: l10n_es_aeat_mod347 |
970 | +#: field:l10n.es.aeat.mod347.report,attach_id:0 |
971 | +msgid "BOE file" |
972 | +msgstr "BOE file" |
973 | + |
974 | +#. module: l10n_es_aeat_mod347 |
975 | +#: view:l10n.es.aeat.mod347.report:0 |
976 | +msgid "Draft models" |
977 | +msgstr "Draft models" |
978 | + |
979 | +#. module: l10n_es_aeat_mod347 |
980 | #: view:l10n.es.aeat.mod347.report:0 |
981 | #: field:l10n.es.aeat.mod347.report,fiscalyear_id:0 |
982 | msgid "Fiscal Year" |
983 | @@ -932,7 +933,7 @@ |
984 | |
985 | #. module: l10n_es_aeat_mod347 |
986 | #: field:l10n.es.aeat.mod347.report,total_real_state_records:0 |
987 | -msgid "Real estate records" |
988 | +msgid "Real state records" |
989 | msgstr "Registros de inmuebles" |
990 | |
991 | #. module: l10n_es_aeat_mod347 |
992 | @@ -947,17 +948,8 @@ |
993 | |
994 | #. module: l10n_es_aeat_mod347 |
995 | #: selection:l10n.es.aeat.mod347.partner_record,operation_key:0 |
996 | -msgid "" |
997 | -"E - Subvenciones, auxilios y ayudas satisfechas por Ad. Públicas superiores " |
998 | -"al límite (1)" |
999 | -msgstr "" |
1000 | -"E - Subvenciones, auxilios y ayudas satisfechas por Ad. Públicas superiores " |
1001 | -"al límite (1)" |
1002 | - |
1003 | -#. module: l10n_es_aeat_mod347 |
1004 | -#: sql_constraint:account.journal:0 |
1005 | -msgid "The name of the journal must be unique per company !" |
1006 | -msgstr "¡El nombre del diaro debe ser único por compañía!" |
1007 | +msgid "E - Subvenciones, auxilios y ayudas satisfechas por Ad. Públicas superiores al límite (1)" |
1008 | +msgstr "E - Subvenciones, auxilios y ayudas satisfechas por Ad. Públicas superiores al límite (1)" |
1009 | |
1010 | #. module: l10n_es_aeat_mod347 |
1011 | #: selection:account.period,quarter:0 |
1012 | @@ -969,74 +961,22 @@ |
1013 | msgid "Journal" |
1014 | msgstr "Diario" |
1015 | |
1016 | -#~ msgid "Real state Situation" |
1017 | -#~ msgstr "Situación de inmuebles" |
1018 | - |
1019 | -#~ msgid "Real State Record" |
1020 | -#~ msgstr "Registros de inmuebles" |
1021 | - |
1022 | -#~ msgid "Real State Records" |
1023 | -#~ msgstr "Registros de inmuebles" |
1024 | - |
1025 | -#~ msgid "Real State records" |
1026 | -#~ msgstr "Registros de inmuebles" |
1027 | - |
1028 | -#~ msgid "Bussiness Real State Rent" |
1029 | -#~ msgstr "Arrendamiento local negocio" |
1030 | - |
1031 | -#~ msgid "Real State Transmisions amount" |
1032 | -#~ msgstr "Importe transmisión inmueble" |
1033 | +#~ msgid "Error ! The duration of the Period(s) is/are invalid. " |
1034 | +#~ msgstr "¡Error! La duración del periodo(s) no es válida. " |
1035 | + |
1036 | +#~ msgid "The code of the journal must be unique per company !" |
1037 | +#~ msgstr "¡El código del diario debe ser único por compañía!" |
1038 | + |
1039 | +#~ msgid "Create and query AEAT Model 347 Reports" |
1040 | +#~ msgstr "" |
1041 | +#~ "Permite crear y consultar las declaraciones sobre el modelo AEAT 347" |
1042 | |
1043 | #~ msgid "" |
1044 | -#~ "Set to identify real state rent operations aside from the rest. You'll need " |
1045 | -#~ "to fill in the real state info only when you are the one that receives the " |
1046 | -#~ "money." |
1047 | -#~ msgstr "" |
1048 | -#~ "(Sólo arrendadores y arrendatarios de Locales de Negocio). Marcarán esta " |
1049 | -#~ "casilla para identificar las operaciones de arrendamiento de locales de " |
1050 | -#~ "negocio, debiendo consignarlas separadamente del resto. Además los " |
1051 | -#~ "arrendadores deberán cumplimentar los campos que componen el REGISTRO DE " |
1052 | -#~ "INMUEBLE, consignando el Importe Total de cada arrendamiento correspondiente " |
1053 | -#~ "al año natural al que se refiere la declaración, con independencia de que " |
1054 | -#~ "éste ya haya sido incluido en la clave 'B' (ventas)." |
1055 | - |
1056 | -#~ msgid "Real state address" |
1057 | -#~ msgstr "Dirección del inmueble" |
1058 | - |
1059 | -#~ msgid "Real State Transmissions Amount" |
1060 | -#~ msgstr "Importe transmisión inmueble" |
1061 | - |
1062 | -#~ msgid "Real State Amount" |
1063 | -#~ msgstr "Importe inmuebles" |
1064 | - |
1065 | -#~ msgid "Real state records" |
1066 | -#~ msgstr "Registros de inmuebles" |
1067 | - |
1068 | -#, python-format |
1069 | -#~ msgid "All real state records state code field must be filled." |
1070 | -#~ msgstr "" |
1071 | -#~ "El código de provincia de todos los registros de inmuebles debe estar " |
1072 | -#~ "rellenado." |
1073 | - |
1074 | -#~ msgid "Fourth Quarter Real State Transmossion Amount" |
1075 | -#~ msgstr "Importe transmisión inmueble (T4)" |
1076 | - |
1077 | -#~ msgid "Real state info" |
1078 | -#~ msgstr "Información de inmuebles" |
1079 | - |
1080 | -#~ msgid "Third Quarter Real State Transmission Amount" |
1081 | -#~ msgstr "Importe transmisión inmueble (T3)" |
1082 | - |
1083 | -#~ msgid "Real State Transmission (Q1|Q2|Q3|Q4)" |
1084 | -#~ msgstr "Importe transmisión inmueble (T1|T2|T3|T4)" |
1085 | - |
1086 | -#~ msgid "First Quarter Real State Transmission Amount" |
1087 | -#~ msgstr "Importe transmisión inmueble (T1)" |
1088 | - |
1089 | -#~ msgid "Second Quarter Real State Transmission Amount" |
1090 | -#~ msgstr "Importe transmisión inmueble (T2)" |
1091 | - |
1092 | -#, python-format |
1093 | -#~ msgid "The type 2-I record (real state) must be 502 characters long" |
1094 | -#~ msgstr "" |
1095 | -#~ "El tipo de registro 2-I (inmuebles) debe ser de 502 caracteres de largo" |
1096 | +#~ "Invalid period ! Some periods overlap or the date period is not in the " |
1097 | +#~ "scope of the fiscal year. " |
1098 | +#~ msgstr "" |
1099 | +#~ "¡Periodo no válido! Algunos periodos se sobreponen o las fechas del " |
1100 | +#~ "periodo no están dentro del ejercicio fiscal. " |
1101 | + |
1102 | +#~ msgid "The name of the journal must be unique per company !" |
1103 | +#~ msgstr "¡El nombre del diaro debe ser único por compañía!" |
1104 | |
1105 | === modified file 'l10n_es_aeat_mod347/i18n/l10n_es_aeat_mod347.pot' |
1106 | --- l10n_es_aeat_mod347/i18n/l10n_es_aeat_mod347.pot 2013-11-23 01:47:07 +0000 |
1107 | +++ l10n_es_aeat_mod347/i18n/l10n_es_aeat_mod347.pot 2013-12-27 10:08:05 +0000 |
1108 | @@ -4,10 +4,10 @@ |
1109 | # |
1110 | msgid "" |
1111 | msgstr "" |
1112 | -"Project-Id-Version: OpenERP Server 6.0.3\n" |
1113 | -"Report-Msgid-Bugs-To: support@openerp.com\n" |
1114 | -"POT-Creation-Date: 2012-03-20 17:21+0000\n" |
1115 | -"PO-Revision-Date: 2012-03-20 17:21+0000\n" |
1116 | +"Project-Id-Version: OpenERP Server 7.0-20130927-231103\n" |
1117 | +"Report-Msgid-Bugs-To: \n" |
1118 | +"POT-Creation-Date: 2013-11-18 11:54+0000\n" |
1119 | +"PO-Revision-Date: 2013-11-18 11:54+0000\n" |
1120 | "Last-Translator: <>\n" |
1121 | "Language-Team: \n" |
1122 | "MIME-Version: 1.0\n" |
1123 | @@ -16,166 +16,171 @@ |
1124 | "Plural-Forms: \n" |
1125 | |
1126 | #. module: l10n_es_aeat_mod347 |
1127 | -#: code:addons/l10n_es_aeat_mod347/wizard/export_mod347_to_boe.py:157 |
1128 | +#: view:l10n.es.aeat.mod347.report:0 |
1129 | +msgid "Confirmed models" |
1130 | +msgstr "Confirmed models" |
1131 | + |
1132 | +#. module: l10n_es_aeat_mod347 |
1133 | +#: code:addons/l10n_es_aeat_mod347/wizard/export_mod347_to_boe.py:202 |
1134 | #, python-format |
1135 | msgid "The type 2-D record (partner) must be 502 characters long" |
1136 | -msgstr "" |
1137 | +msgstr "The type 2-D record (partner) must be 502 characters long" |
1138 | |
1139 | #. module: l10n_es_aeat_mod347 |
1140 | #: model:ir.model,name:l10n_es_aeat_mod347.model_l10n_es_aeat_mod347_partner_record |
1141 | #: view:l10n.es.aeat.mod347.partner_record:0 |
1142 | msgid "Partner Record" |
1143 | -msgstr "" |
1144 | +msgstr "Partner Record" |
1145 | |
1146 | #. module: l10n_es_aeat_mod347 |
1147 | -#: code:addons/l10n_es_aeat_mod347/mod347.py:142 |
1148 | +#: code:addons/l10n_es_aeat_mod347/mod347.py:199 |
1149 | #, python-format |
1150 | -msgid "All real estate records state code field must be filled." |
1151 | -msgstr "" |
1152 | +msgid "All real state records state code field must be filled." |
1153 | +msgstr "All real state records state code field must be filled." |
1154 | |
1155 | #. module: l10n_es_aeat_mod347 |
1156 | #: report:report_l10n_es_aeat_mod347.report:0 |
1157 | msgid "Key Oper." |
1158 | -msgstr "" |
1159 | +msgstr "Key Oper." |
1160 | + |
1161 | +#. module: l10n_es_aeat_mod347 |
1162 | +#: view:l10n.es.aeat.mod347.report:0 |
1163 | +msgid "Group By..." |
1164 | +msgstr "Group By..." |
1165 | |
1166 | #. module: l10n_es_aeat_mod347 |
1167 | #: selection:account.period,quarter:0 |
1168 | msgid "Fourth" |
1169 | -msgstr "" |
1170 | +msgstr "Fourth" |
1171 | |
1172 | #. module: l10n_es_aeat_mod347 |
1173 | #: view:l10n.es.aeat.mod347.report:0 |
1174 | msgid "Calculate" |
1175 | -msgstr "" |
1176 | +msgstr "Calculate" |
1177 | |
1178 | #. module: l10n_es_aeat_mod347 |
1179 | #: field:res.partner,include_in_mod347:0 |
1180 | msgid "Include in 347 Report" |
1181 | -msgstr "" |
1182 | +msgstr "Include in 347 Report" |
1183 | |
1184 | #. module: l10n_es_aeat_mod347 |
1185 | #: field:l10n.es.aeat.mod347.partner_record,real_state_record_ids:0 |
1186 | #: view:l10n.es.aeat.mod347.real_state_record:0 |
1187 | #: field:l10n.es.aeat.mod347.report,real_state_record_ids:0 |
1188 | -msgid "Real Estate Records" |
1189 | -msgstr "" |
1190 | +msgid "Real State Records" |
1191 | +msgstr "Real State Records" |
1192 | |
1193 | #. module: l10n_es_aeat_mod347 |
1194 | #: field:l10n.es.aeat.mod347.partner_record,fourth_quarter_real_state_transmission_amount:0 |
1195 | -msgid "Fourth Quarter Real Estate Transmossion Amount" |
1196 | -msgstr "" |
1197 | +msgid "Fourth Quarter Real State Transmossion Amount" |
1198 | +msgstr "Fourth Quarter Real State Transmossion Amount" |
1199 | |
1200 | #. module: l10n_es_aeat_mod347 |
1201 | #: view:l10n.es.aeat.mod347.partner_record:0 |
1202 | #: field:l10n.es.aeat.mod347.report,partner_record_ids:0 |
1203 | msgid "Partner Records" |
1204 | -msgstr "" |
1205 | +msgstr "Partner Records" |
1206 | |
1207 | #. module: l10n_es_aeat_mod347 |
1208 | #: field:l10n.es.aeat.mod347.real_state_record,township_code:0 |
1209 | msgid "Township Code" |
1210 | -msgstr "" |
1211 | +msgstr "Township Code" |
1212 | |
1213 | #. module: l10n_es_aeat_mod347 |
1214 | #: view:l10n.es.aeat.mod347.report:0 |
1215 | #: field:l10n.es.aeat.mod347.report,company_id:0 |
1216 | msgid "Company" |
1217 | -msgstr "" |
1218 | +msgstr "Company" |
1219 | |
1220 | #. module: l10n_es_aeat_mod347 |
1221 | #: model:ir.model,name:l10n_es_aeat_mod347.model_l10n_es_aeat_mod347_real_state_record |
1222 | #: view:l10n.es.aeat.mod347.real_state_record:0 |
1223 | -msgid "Real Estate Record" |
1224 | -msgstr "" |
1225 | +msgid "Real State Record" |
1226 | +msgstr "Real State Record" |
1227 | |
1228 | #. module: l10n_es_aeat_mod347 |
1229 | #: help:l10n.es.aeat.mod347.report,operations_limit:0 |
1230 | msgid "The declaration will include partners with the total of operations over this limit" |
1231 | -msgstr "" |
1232 | +msgstr "The declaration will include partners with the total of operations over this limit" |
1233 | |
1234 | #. module: l10n_es_aeat_mod347 |
1235 | #: field:l10n.es.aeat.mod347.real_state_record,number_calification:0 |
1236 | msgid "Number calification" |
1237 | -msgstr "" |
1238 | +msgstr "Number calification" |
1239 | |
1240 | #. module: l10n_es_aeat_mod347 |
1241 | #: selection:l10n.es.aeat.mod347.report,type:0 |
1242 | msgid "Substitutive" |
1243 | -msgstr "" |
1244 | +msgstr "Substitutive" |
1245 | |
1246 | #. module: l10n_es_aeat_mod347 |
1247 | #: field:l10n.es.aeat.mod347.report,total_cash_amount:0 |
1248 | msgid "Cash Amount" |
1249 | -msgstr "" |
1250 | - |
1251 | -#. module: l10n_es_aeat_mod347 |
1252 | -#: constraint:account.period:0 |
1253 | -msgid "Error ! The duration of the Period(s) is/are invalid. " |
1254 | -msgstr "" |
1255 | +msgstr "Cash Amount" |
1256 | |
1257 | #. module: l10n_es_aeat_mod347 |
1258 | #: field:l10n.es.aeat.mod347.report,total_real_state_amount:0 |
1259 | -msgid "Real Estate Amount" |
1260 | -msgstr "" |
1261 | +msgid "Real State Amount" |
1262 | +msgstr "Real State Amount" |
1263 | |
1264 | #. module: l10n_es_aeat_mod347 |
1265 | #: selection:l10n.es.aeat.mod347.real_state_record,number_calification:0 |
1266 | msgid "Bis" |
1267 | -msgstr "" |
1268 | +msgstr "Bis" |
1269 | |
1270 | #. module: l10n_es_aeat_mod347 |
1271 | #: selection:l10n.es.aeat.mod347.real_state_record,situation:0 |
1272 | msgid "4 - Foreign" |
1273 | -msgstr "" |
1274 | +msgstr "4 - Foreign" |
1275 | |
1276 | #. module: l10n_es_aeat_mod347 |
1277 | #: selection:l10n.es.aeat.mod347.real_state_record,number_calification:0 |
1278 | msgid "Mod" |
1279 | -msgstr "" |
1280 | +msgstr "Mod" |
1281 | |
1282 | #. module: l10n_es_aeat_mod347 |
1283 | #: view:l10n.es.aeat.mod347.report:0 |
1284 | msgid "AEAT 347 Reports" |
1285 | -msgstr "" |
1286 | +msgstr "AEAT 347 Reports" |
1287 | |
1288 | #. module: l10n_es_aeat_mod347 |
1289 | #: field:l10n.es.aeat.mod347.report,group_by_cif:0 |
1290 | msgid "Group by cif" |
1291 | -msgstr "" |
1292 | +msgstr "Group by cif" |
1293 | |
1294 | #. module: l10n_es_aeat_mod347 |
1295 | #: selection:l10n.es.aeat.mod347.real_state_record,situation:0 |
1296 | msgid "1 - Spain but Basque Country and Navarra" |
1297 | -msgstr "" |
1298 | +msgstr "1 - Spain but Basque Country and Navarra" |
1299 | |
1300 | #. module: l10n_es_aeat_mod347 |
1301 | #: view:l10n.es.aeat.mod347.partner_record:0 |
1302 | msgid "Invoice record" |
1303 | -msgstr "" |
1304 | +msgstr "Invoice record" |
1305 | |
1306 | #. module: l10n_es_aeat_mod347 |
1307 | #: view:l10n.es.aeat.mod347.report:0 |
1308 | msgid "Partner records" |
1309 | -msgstr "" |
1310 | +msgstr "Partner records" |
1311 | |
1312 | #. module: l10n_es_aeat_mod347 |
1313 | -#: code:addons/l10n_es_aeat_mod347/wizard/export_mod347_to_boe.py:88 |
1314 | +#: code:addons/l10n_es_aeat_mod347/wizard/export_mod347_to_boe.py:106 |
1315 | #, python-format |
1316 | msgid "The type 1 record must be 502 characters long" |
1317 | -msgstr "" |
1318 | +msgstr "The type 1 record must be 502 characters long" |
1319 | |
1320 | #. module: l10n_es_aeat_mod347 |
1321 | #: field:l10n.es.aeat.mod347.report,support_type:0 |
1322 | msgid "Support Type" |
1323 | -msgstr "" |
1324 | +msgstr "Support Type" |
1325 | |
1326 | #. module: l10n_es_aeat_mod347 |
1327 | -#: code:addons/l10n_es_aeat_mod347/mod347.py:136 |
1328 | -#: code:addons/l10n_es_aeat_mod347/mod347.py:138 |
1329 | -#: code:addons/l10n_es_aeat_mod347/mod347.py:142 |
1330 | +#: code:addons/l10n_es_aeat_mod347/mod347.py:184 |
1331 | +#: code:addons/l10n_es_aeat_mod347/mod347.py:190 |
1332 | +#: code:addons/l10n_es_aeat_mod347/mod347.py:198 |
1333 | #, python-format |
1334 | msgid "Error!" |
1335 | -msgstr "" |
1336 | +msgstr "Error!" |
1337 | |
1338 | #. module: l10n_es_aeat_mod347 |
1339 | #: field:l10n.es.aeat.mod347.cash_record,amount:0 |
1340 | @@ -183,148 +188,153 @@ |
1341 | #: field:l10n.es.aeat.mod347.real_state_record,amount:0 |
1342 | #: field:l10n.es.aeat.mod347.report,total_amount:0 |
1343 | msgid "Amount" |
1344 | -msgstr "" |
1345 | +msgstr "Amount" |
1346 | |
1347 | #. module: l10n_es_aeat_mod347 |
1348 | #: field:l10n.es.aeat.mod347.cash_record,move_line_id:0 |
1349 | msgid "Account move line" |
1350 | -msgstr "" |
1351 | +msgstr "Account move line" |
1352 | |
1353 | #. module: l10n_es_aeat_mod347 |
1354 | #: view:l10n.es.aeat.mod347.partner_record:0 |
1355 | #: field:l10n.es.aeat.mod347.partner_record,invoice_record_ids:0 |
1356 | msgid "Invoice records" |
1357 | -msgstr "" |
1358 | +msgstr "Invoice records" |
1359 | |
1360 | #. module: l10n_es_aeat_mod347 |
1361 | #: view:l10n.es.aeat.mod347.report:0 |
1362 | msgid "Cancelled" |
1363 | -msgstr "" |
1364 | +msgstr "Cancelled" |
1365 | |
1366 | #. module: l10n_es_aeat_mod347 |
1367 | #: field:account.period,quarter:0 |
1368 | msgid "Quarter" |
1369 | -msgstr "" |
1370 | +msgstr "Quarter" |
1371 | |
1372 | #. module: l10n_es_aeat_mod347 |
1373 | #: report:report_l10n_es_aeat_mod347.report:0 |
1374 | msgid "VAT" |
1375 | -msgstr "" |
1376 | +msgstr "VAT" |
1377 | + |
1378 | +#. module: l10n_es_aeat_mod347 |
1379 | +#: help:account.journal,cash_journal:0 |
1380 | +msgid "Payments of this journal will be considered as cash(used on the 347 report)" |
1381 | +msgstr "Payments of this journal will be considered as cash(used on the 347 report)" |
1382 | |
1383 | #. module: l10n_es_aeat_mod347 |
1384 | #: view:l10n.es.aeat.mod347.report:0 |
1385 | msgid "Calculation" |
1386 | -msgstr "" |
1387 | +msgstr "Calculation" |
1388 | |
1389 | #. module: l10n_es_aeat_mod347 |
1390 | -#: code:addons/l10n_es_aeat_mod347/wizard/export_mod347_to_boe.py:232 |
1391 | +#: code:addons/l10n_es_aeat_mod347/wizard/export_mod347_to_boe.py:306 |
1392 | #, python-format |
1393 | -msgid "The type 2-I record (real estate) must be 502 characters long" |
1394 | -msgstr "" |
1395 | - |
1396 | -#. module: l10n_es_aeat_mod347 |
1397 | -#: sql_constraint:account.journal:0 |
1398 | -msgid "The code of the journal must be unique per company !" |
1399 | -msgstr "" |
1400 | +msgid "The type 2-I record (real state) must be 502 characters long" |
1401 | +msgstr "The type 2-I record (real state) must be 502 characters long" |
1402 | |
1403 | #. module: l10n_es_aeat_mod347 |
1404 | #: view:l10n.es.aeat.mod347.report:0 |
1405 | #: selection:l10n.es.aeat.mod347.report,state:0 |
1406 | msgid "Draft" |
1407 | -msgstr "" |
1408 | +msgstr "Draft" |
1409 | |
1410 | #. module: l10n_es_aeat_mod347 |
1411 | #: view:l10n.es.aeat.mod347.report:0 |
1412 | -msgid "Real Estate records" |
1413 | -msgstr "" |
1414 | +msgid "Real State records" |
1415 | +msgstr "Real State records" |
1416 | |
1417 | #. module: l10n_es_aeat_mod347 |
1418 | #: model:ir.model,name:l10n_es_aeat_mod347.model_l10n_es_aeat_mod347_invoice_record |
1419 | msgid "Invoice Record" |
1420 | -msgstr "" |
1421 | +msgstr "Invoice Record" |
1422 | |
1423 | #. module: l10n_es_aeat_mod347 |
1424 | #: view:l10n.es.aeat.mod347.report:0 |
1425 | msgid "Confirm" |
1426 | -msgstr "" |
1427 | +msgstr "Confirm" |
1428 | + |
1429 | +#. module: l10n_es_aeat_mod347 |
1430 | +#: view:l10n.es.aeat.mod347.report:0 |
1431 | +msgid "Cancelled models" |
1432 | +msgstr "Cancelled models" |
1433 | |
1434 | #. module: l10n_es_aeat_mod347 |
1435 | #: field:l10n.es.aeat.mod347.partner_record,origin_fiscalyear_id:0 |
1436 | msgid "Origin fiscal year" |
1437 | -msgstr "" |
1438 | +msgstr "Origin fiscal year" |
1439 | |
1440 | #. module: l10n_es_aeat_mod347 |
1441 | #: help:l10n.es.aeat.mod347.report,charges_obtp_limit:0 |
1442 | msgid "The declaration will include partners from which we received payments, on behalf of third parties, over this limit" |
1443 | -msgstr "" |
1444 | +msgstr "The declaration will include partners from which we received payments, on behalf of third parties, over this limit" |
1445 | |
1446 | #. module: l10n_es_aeat_mod347 |
1447 | #: field:l10n.es.aeat.mod347.report,operations_limit:0 |
1448 | msgid "Invoiced Limit (1)" |
1449 | -msgstr "" |
1450 | +msgstr "Invoiced Limit (1)" |
1451 | |
1452 | #. module: l10n_es_aeat_mod347 |
1453 | #: selection:l10n.es.aeat.mod347.real_state_record,situation:0 |
1454 | msgid "3 - Spain, without catastral reference" |
1455 | -msgstr "" |
1456 | +msgstr "3 - Spain, without catastral reference" |
1457 | |
1458 | #. module: l10n_es_aeat_mod347 |
1459 | -#: code:addons/l10n_es_aeat_mod347/mod347.py:138 |
1460 | +#: code:addons/l10n_es_aeat_mod347/mod347.py:191 |
1461 | #, python-format |
1462 | msgid "All partner vat number field must be filled.\n" |
1463 | "Partner: %s (%s)" |
1464 | -msgstr "" |
1465 | +msgstr "All partner vat number field must be filled.\n" |
1466 | "Partner: %s (%s)" |
1467 | |
1468 | #. module: l10n_es_aeat_mod347 |
1469 | #: field:l10n.es.aeat.mod347.partner_record,bussiness_real_state_rent:0 |
1470 | -msgid "Bussiness Real Estate Rent" |
1471 | -msgstr "" |
1472 | +msgid "Bussiness Real State Rent" |
1473 | +msgstr "Bussiness Real State Rent" |
1474 | |
1475 | #. module: l10n_es_aeat_mod347 |
1476 | -#: code:addons/l10n_es_aeat_mod347/mod347.py:136 |
1477 | +#: code:addons/l10n_es_aeat_mod347/mod347.py:185 |
1478 | #, python-format |
1479 | msgid "All partner state code field must be filled.\n" |
1480 | "Partner: %s (%s)" |
1481 | -msgstr "" |
1482 | +msgstr "All partner state code field must be filled.\n" |
1483 | "Partner: %s (%s)" |
1484 | |
1485 | #. module: l10n_es_aeat_mod347 |
1486 | #: selection:l10n.es.aeat.mod347.partner_record,operation_key:0 |
1487 | msgid "F - Ventas agencia viaje" |
1488 | -msgstr "" |
1489 | +msgstr "F - Ventas agencia viaje" |
1490 | |
1491 | #. module: l10n_es_aeat_mod347 |
1492 | #: help:l10n.es.aeat.mod347.partner_record,origin_fiscalyear_id:0 |
1493 | msgid "Origin cash operation fiscal year" |
1494 | -msgstr "" |
1495 | +msgstr "Origin cash operation fiscal year" |
1496 | |
1497 | #. module: l10n_es_aeat_mod347 |
1498 | #: help:l10n.es.aeat.mod347.partner_record,representative_vat:0 |
1499 | #: help:l10n.es.aeat.mod347.real_state_record,representative_vat:0 |
1500 | msgid "Legal Representative VAT number" |
1501 | -msgstr "" |
1502 | +msgstr "Legal Representative VAT number" |
1503 | |
1504 | #. module: l10n_es_aeat_mod347 |
1505 | #: field:l10n.es.aeat.mod347.partner_record,fourth_quarter:0 |
1506 | msgid "Fourth Quarter" |
1507 | -msgstr "" |
1508 | +msgstr "Fourth Quarter" |
1509 | |
1510 | #. module: l10n_es_aeat_mod347 |
1511 | #: field:l10n.es.aeat.mod347.real_state_record,door:0 |
1512 | msgid "Door" |
1513 | -msgstr "" |
1514 | +msgstr "Door" |
1515 | |
1516 | #. module: l10n_es_aeat_mod347 |
1517 | #: selection:account.period,quarter:0 |
1518 | msgid "Third" |
1519 | -msgstr "" |
1520 | +msgstr "Third" |
1521 | |
1522 | #. module: l10n_es_aeat_mod347 |
1523 | #: field:l10n.es.aeat.mod347.cash_record,partner_record_id:0 |
1524 | #: field:l10n.es.aeat.mod347.invoice_record,partner_record_id:0 |
1525 | msgid "Partner record" |
1526 | -msgstr "" |
1527 | +msgstr "Partner record" |
1528 | |
1529 | #. module: l10n_es_aeat_mod347 |
1530 | #: model:ir.model,name:l10n_es_aeat_mod347.model_l10n_es_aeat_mod347_report |
1531 | @@ -332,75 +342,80 @@ |
1532 | #: field:l10n.es.aeat.mod347.real_state_record,report_id:0 |
1533 | #: view:l10n.es.aeat.mod347.report:0 |
1534 | msgid "AEAT 347 Report" |
1535 | -msgstr "" |
1536 | +msgstr "AEAT 347 Report" |
1537 | |
1538 | #. module: l10n_es_aeat_mod347 |
1539 | #: selection:l10n.es.aeat.mod347.partner_record,operation_key:0 |
1540 | msgid "C - Cobros por cuenta de terceros superiores al límite (3)" |
1541 | -msgstr "" |
1542 | +msgstr "C - Cobros por cuenta de terceros superiores al límite (3)" |
1543 | |
1544 | #. module: l10n_es_aeat_mod347 |
1545 | #: view:l10n.es.aeat.mod347.report:0 |
1546 | msgid "Export to BOE" |
1547 | -msgstr "" |
1548 | +msgstr "Export to BOE" |
1549 | |
1550 | #. module: l10n_es_aeat_mod347 |
1551 | #: report:report_l10n_es_aeat_mod347.report:0 |
1552 | msgid "AEAT 347 MODEL" |
1553 | -msgstr "" |
1554 | +msgstr "AEAT 347 MODEL" |
1555 | |
1556 | #. module: l10n_es_aeat_mod347 |
1557 | #: model:ir.actions.report.xml,name:l10n_es_aeat_mod347.report_l10n_es_aeat_mod347 |
1558 | msgid "AEAT 347 Model report" |
1559 | -msgstr "" |
1560 | +msgstr "AEAT 347 Model report" |
1561 | |
1562 | #. module: l10n_es_aeat_mod347 |
1563 | #: field:l10n.es.aeat.mod347.partner_record,partner_vat:0 |
1564 | #: field:l10n.es.aeat.mod347.real_state_record,partner_vat:0 |
1565 | #: field:l10n.es.aeat.mod347.report,company_vat:0 |
1566 | msgid "VAT number" |
1567 | -msgstr "" |
1568 | +msgstr "VAT number" |
1569 | |
1570 | #. module: l10n_es_aeat_mod347 |
1571 | #: field:l10n.es.aeat.mod347.partner_record,insurance_operation:0 |
1572 | msgid "Insurance Operation" |
1573 | -msgstr "" |
1574 | +msgstr "Insurance Operation" |
1575 | |
1576 | #. module: l10n_es_aeat_mod347 |
1577 | #: field:l10n.es.aeat.mod347.report,state:0 |
1578 | msgid "State" |
1579 | -msgstr "" |
1580 | +msgstr "State" |
1581 | |
1582 | #. module: l10n_es_aeat_mod347 |
1583 | #: field:l10n.es.aeat.mod347.partner_record,partner_state_code:0 |
1584 | #: field:l10n.es.aeat.mod347.real_state_record,state_code:0 |
1585 | msgid "State Code" |
1586 | -msgstr "" |
1587 | +msgstr "State Code" |
1588 | |
1589 | #. module: l10n_es_aeat_mod347 |
1590 | #: field:l10n.es.aeat.mod347.real_state_record,stairway:0 |
1591 | msgid "Stairway" |
1592 | -msgstr "" |
1593 | +msgstr "Stairway" |
1594 | + |
1595 | +#. module: l10n_es_aeat_mod347 |
1596 | +#: field:l10n.es.aeat.mod347.report,only_supplier:0 |
1597 | +msgid "Only Suppliers" |
1598 | +msgstr "Only Suppliers" |
1599 | |
1600 | #. module: l10n_es_aeat_mod347 |
1601 | #: field:l10n.es.aeat.mod347.partner_record,third_quarter:0 |
1602 | msgid "Third Quarter" |
1603 | -msgstr "" |
1604 | +msgstr "Third Quarter" |
1605 | |
1606 | #. module: l10n_es_aeat_mod347 |
1607 | #: model:ir.ui.menu,name:l10n_es_aeat_mod347.menu_aeat_mod347_report |
1608 | msgid "AEAT 347 Model" |
1609 | -msgstr "" |
1610 | +msgstr "AEAT 347 Model" |
1611 | |
1612 | #. module: l10n_es_aeat_mod347 |
1613 | #: field:l10n.es.aeat.mod347.report,total_partner_records:0 |
1614 | msgid "Partners records" |
1615 | -msgstr "" |
1616 | +msgstr "Partners records" |
1617 | |
1618 | #. module: l10n_es_aeat_mod347 |
1619 | #: field:l10n.es.aeat.mod347.report,calculation_date:0 |
1620 | msgid "Calculation date" |
1621 | -msgstr "" |
1622 | +msgstr "Calculation date" |
1623 | |
1624 | #. module: l10n_es_aeat_mod347 |
1625 | #: model:ir.model,name:l10n_es_aeat_mod347.model_res_partner |
1626 | @@ -408,513 +423,527 @@ |
1627 | #: field:l10n.es.aeat.mod347.real_state_record,partner_id:0 |
1628 | #: report:report_l10n_es_aeat_mod347.report:0 |
1629 | msgid "Partner" |
1630 | -msgstr "" |
1631 | +msgstr "Partner" |
1632 | |
1633 | #. module: l10n_es_aeat_mod347 |
1634 | #: report:report_l10n_es_aeat_mod347.report:0 |
1635 | msgid "Amount (Q1|Q2|Q3|Q4)" |
1636 | -msgstr "" |
1637 | +msgstr "Amount (Q1|Q2|Q3|Q4)" |
1638 | |
1639 | #. module: l10n_es_aeat_mod347 |
1640 | #: field:l10n.es.aeat.mod347.real_state_record,block:0 |
1641 | msgid "Block" |
1642 | -msgstr "" |
1643 | +msgstr "Block" |
1644 | |
1645 | #. module: l10n_es_aeat_mod347 |
1646 | #: selection:account.period,quarter:0 |
1647 | msgid "First" |
1648 | -msgstr "" |
1649 | +msgstr "First" |
1650 | |
1651 | #. module: l10n_es_aeat_mod347 |
1652 | #: field:l10n.es.aeat.mod347.real_state_record,situation:0 |
1653 | -msgid "Real estate Situation" |
1654 | -msgstr "" |
1655 | +msgid "Real state Situation" |
1656 | +msgstr "Real state Situation" |
1657 | |
1658 | #. module: l10n_es_aeat_mod347 |
1659 | #: report:report_l10n_es_aeat_mod347.report:0 |
1660 | msgid "Ins. Oper" |
1661 | -msgstr "" |
1662 | +msgstr "Ins. Oper" |
1663 | |
1664 | #. module: l10n_es_aeat_mod347 |
1665 | #: report:report_l10n_es_aeat_mod347.report:0 |
1666 | msgid "Invoiced amount" |
1667 | -msgstr "" |
1668 | +msgstr "Invoiced amount" |
1669 | |
1670 | #. module: l10n_es_aeat_mod347 |
1671 | #: field:l10n.es.aeat.mod347.real_state_record,reference:0 |
1672 | msgid "Catastral Reference" |
1673 | -msgstr "" |
1674 | +msgstr "Catastral Reference" |
1675 | |
1676 | #. module: l10n_es_aeat_mod347 |
1677 | #: report:report_l10n_es_aeat_mod347.report:0 |
1678 | msgid "Support type:" |
1679 | -msgstr "" |
1680 | +msgstr "Support type:" |
1681 | |
1682 | #. module: l10n_es_aeat_mod347 |
1683 | #: field:l10n.es.aeat.mod347.report,number:0 |
1684 | msgid "Declaration Number" |
1685 | -msgstr "" |
1686 | +msgstr "Declaration Number" |
1687 | |
1688 | #. module: l10n_es_aeat_mod347 |
1689 | #: selection:l10n.es.aeat.mod347.report,state:0 |
1690 | msgid "Canceled" |
1691 | -msgstr "" |
1692 | +msgstr "Canceled" |
1693 | |
1694 | #. module: l10n_es_aeat_mod347 |
1695 | #: selection:l10n.es.aeat.mod347.real_state_record,situation:0 |
1696 | msgid "2 - Basque Country and Navarra" |
1697 | -msgstr "" |
1698 | +msgstr "2 - Basque Country and Navarra" |
1699 | |
1700 | #. module: l10n_es_aeat_mod347 |
1701 | #: field:l10n.es.aeat.mod347.real_state_record,postal_code:0 |
1702 | msgid "Postal code" |
1703 | -msgstr "" |
1704 | +msgstr "Postal code" |
1705 | |
1706 | #. module: l10n_es_aeat_mod347 |
1707 | #: model:ir.model,name:l10n_es_aeat_mod347.model_l10n_es_aeat_mod347_cash_record |
1708 | msgid "Cash Record" |
1709 | -msgstr "" |
1710 | +msgstr "Cash Record" |
1711 | |
1712 | #. module: l10n_es_aeat_mod347 |
1713 | #: view:l10n.es.aeat.mod347.partner_record:0 |
1714 | #: view:l10n.es.aeat.mod347.real_state_record:0 |
1715 | -msgid "Real estate info" |
1716 | -msgstr "" |
1717 | +msgid "Real state info" |
1718 | +msgstr "Real state info" |
1719 | |
1720 | #. module: l10n_es_aeat_mod347 |
1721 | #: field:l10n.es.aeat.mod347.partner_record,real_state_transmissions_amount:0 |
1722 | -msgid "Real Estate Transmisions amount" |
1723 | -msgstr "" |
1724 | +msgid "Real State Transmisions amount" |
1725 | +msgstr "Real State Transmisions amount" |
1726 | |
1727 | #. module: l10n_es_aeat_mod347 |
1728 | #: selection:l10n.es.aeat.mod347.partner_record,operation_key:0 |
1729 | msgid "A - Adquisiciones de bienes y servicios superiores al límite (1)" |
1730 | -msgstr "" |
1731 | +msgstr "A - Adquisiciones de bienes y servicios superiores al límite (1)" |
1732 | |
1733 | #. module: l10n_es_aeat_mod347 |
1734 | #: model:ir.model,name:l10n_es_aeat_mod347.model_l10n_es_aeat_mod347_calculate_records |
1735 | msgid "AEAT Model 347 Wizard - Calculate Records" |
1736 | -msgstr "" |
1737 | +msgstr "AEAT Model 347 Wizard - Calculate Records" |
1738 | |
1739 | #. module: l10n_es_aeat_mod347 |
1740 | #: field:l10n.es.aeat.mod347.partner_record,second_quarter:0 |
1741 | msgid "Second Quarter" |
1742 | -msgstr "" |
1743 | +msgstr "Second Quarter" |
1744 | |
1745 | #. module: l10n_es_aeat_mod347 |
1746 | #: report:report_l10n_es_aeat_mod347.report:0 |
1747 | msgid "RS Rent" |
1748 | -msgstr "" |
1749 | +msgstr "RS Rent" |
1750 | |
1751 | #. module: l10n_es_aeat_mod347 |
1752 | #: selection:l10n.es.aeat.mod347.report,support_type:0 |
1753 | msgid "DVD" |
1754 | -msgstr "" |
1755 | +msgstr "DVD" |
1756 | |
1757 | #. module: l10n_es_aeat_mod347 |
1758 | #: view:l10n.es.aeat.mod347.report:0 |
1759 | msgid "In process" |
1760 | -msgstr "" |
1761 | +msgstr "In process" |
1762 | |
1763 | #. module: l10n_es_aeat_mod347 |
1764 | #: view:l10n.es.aeat.mod347.report:0 |
1765 | msgid "Identification" |
1766 | -msgstr "" |
1767 | +msgstr "Identification" |
1768 | |
1769 | #. module: l10n_es_aeat_mod347 |
1770 | #: selection:l10n.es.aeat.mod347.real_state_record,number_calification:0 |
1771 | msgid "Dup" |
1772 | -msgstr "" |
1773 | +msgstr "Dup" |
1774 | |
1775 | #. module: l10n_es_aeat_mod347 |
1776 | #: field:l10n.es.aeat.mod347.real_state_record,number_type:0 |
1777 | msgid "Number type" |
1778 | -msgstr "" |
1779 | +msgstr "Number type" |
1780 | |
1781 | #. module: l10n_es_aeat_mod347 |
1782 | #: selection:l10n.es.aeat.mod347.report,type:0 |
1783 | msgid "Normal" |
1784 | -msgstr "" |
1785 | +msgstr "Normal" |
1786 | |
1787 | #. module: l10n_es_aeat_mod347 |
1788 | #: field:l10n.es.aeat.mod347.real_state_record,complement:0 |
1789 | msgid "Complement" |
1790 | -msgstr "" |
1791 | +msgstr "Complement" |
1792 | |
1793 | #. module: l10n_es_aeat_mod347 |
1794 | #: selection:l10n.es.aeat.mod347.report,state:0 |
1795 | msgid "Processing" |
1796 | -msgstr "" |
1797 | +msgstr "Processing" |
1798 | |
1799 | #. module: l10n_es_aeat_mod347 |
1800 | #: field:l10n.es.aeat.mod347.report,contact_name:0 |
1801 | msgid "Full Name" |
1802 | -msgstr "" |
1803 | +msgstr "Full Name" |
1804 | |
1805 | #. module: l10n_es_aeat_mod347 |
1806 | #: field:l10n.es.aeat.mod347.report,contact_phone:0 |
1807 | msgid "Phone" |
1808 | -msgstr "" |
1809 | +msgstr "Phone" |
1810 | |
1811 | #. module: l10n_es_aeat_mod347 |
1812 | #: field:l10n.es.aeat.mod347.real_state_record,portal:0 |
1813 | msgid "Portal" |
1814 | -msgstr "" |
1815 | +msgstr "Portal" |
1816 | |
1817 | #. module: l10n_es_aeat_mod347 |
1818 | #: help:l10n.es.aeat.mod347.partner_record,bussiness_real_state_rent:0 |
1819 | -msgid "Set to identify real estate rent operations aside from the rest. You'll need to fill in the real estate info only when you are the one that receives the money." |
1820 | -msgstr "" |
1821 | +msgid "Set to identify real state rent operations aside from the rest. You'll need to fill in the real state info only when you are the one that receives the money." |
1822 | +msgstr "Set to identify real state rent operations aside from the rest. You'll need to fill in the real state info only when you are the one that receives the money." |
1823 | |
1824 | #. module: l10n_es_aeat_mod347 |
1825 | #: view:l10n.es.aeat.mod347.report:0 |
1826 | msgid "Declaration" |
1827 | -msgstr "" |
1828 | +msgstr "Declaration" |
1829 | |
1830 | #. module: l10n_es_aeat_mod347 |
1831 | #: field:l10n.es.aeat.mod347.cash_record,date:0 |
1832 | #: field:l10n.es.aeat.mod347.invoice_record,date:0 |
1833 | msgid "Date" |
1834 | -msgstr "" |
1835 | +msgstr "Date" |
1836 | |
1837 | #. module: l10n_es_aeat_mod347 |
1838 | #: report:report_l10n_es_aeat_mod347.report:0 |
1839 | msgid "Number:" |
1840 | -msgstr "" |
1841 | +msgstr "Number:" |
1842 | |
1843 | #. module: l10n_es_aeat_mod347 |
1844 | -#: help:l10n.es.aeat.mod347.report,received_cash_limit:0 |
1845 | -msgid "The declaration will show the total of cash operations over this limit" |
1846 | -msgstr "" |
1847 | +#: model:ir.actions.act_window,help:l10n_es_aeat_mod347.action_l10n_es_aeat_mod347_report |
1848 | +msgid "<p class=\"oe_view_nocontent_create\">\n" |
1849 | +" Click to create a AEAT Model 347 Reports.\n" |
1850 | +" \n" |
1851 | +" </p><p>\n" |
1852 | +" Basado en la Orden EHA/3012/2008, de 20 de Octubre, por el que se aprueban \n" |
1853 | +" los diseños físicos y lógicos del 347.\n" |
1854 | +" </p>\n" |
1855 | +" " |
1856 | +msgstr "<p class=\"oe_view_nocontent_create\">\n" |
1857 | +" Click to create a AEAT Model 347 Reports.\n" |
1858 | +" \n" |
1859 | +" </p><p>\n" |
1860 | +" Basado en la Orden EHA/3012/2008, de 20 de Octubre, por el que se aprueban \n" |
1861 | +" los diseños físicos y lógicos del 347.\n" |
1862 | +" </p>\n" |
1863 | +" " |
1864 | |
1865 | #. module: l10n_es_aeat_mod347 |
1866 | #: field:l10n.es.aeat.mod347.partner_record,cash_record_ids:0 |
1867 | msgid "Payment records" |
1868 | -msgstr "" |
1869 | +msgstr "Payment records" |
1870 | |
1871 | #. module: l10n_es_aeat_mod347 |
1872 | #: field:l10n.es.aeat.mod347.real_state_record,address_type:0 |
1873 | msgid "Address type" |
1874 | -msgstr "" |
1875 | +msgstr "Address type" |
1876 | |
1877 | #. module: l10n_es_aeat_mod347 |
1878 | #: selection:l10n.es.aeat.mod347.real_state_record,number_type:0 |
1879 | msgid "Without number" |
1880 | -msgstr "" |
1881 | +msgstr "Without number" |
1882 | |
1883 | #. module: l10n_es_aeat_mod347 |
1884 | #: field:l10n.es.aeat.mod347.report,charges_obtp_limit:0 |
1885 | msgid "Charges on behalf of third parties Limit (3)" |
1886 | -msgstr "" |
1887 | +msgstr "Charges on behalf of third parties Limit (3)" |
1888 | |
1889 | #. module: l10n_es_aeat_mod347 |
1890 | #: field:l10n.es.aeat.mod347.partner_record,partner_country_code:0 |
1891 | msgid "Country Code" |
1892 | -msgstr "" |
1893 | +msgstr "Country Code" |
1894 | |
1895 | #. module: l10n_es_aeat_mod347 |
1896 | #: field:account.journal,cash_journal:0 |
1897 | msgid "Cash payments journal" |
1898 | -msgstr "" |
1899 | +msgstr "Cash payments journal" |
1900 | |
1901 | #. module: l10n_es_aeat_mod347 |
1902 | #: help:l10n.es.aeat.mod347.real_state_record,complement:0 |
1903 | msgid "Complement (urbanization, industrial park...)" |
1904 | -msgstr "" |
1905 | +msgstr "Complement (urbanization, industrial park...)" |
1906 | |
1907 | #. module: l10n_es_aeat_mod347 |
1908 | #: selection:l10n.es.aeat.mod347.report,state:0 |
1909 | msgid "Processed" |
1910 | -msgstr "" |
1911 | +msgstr "Processed" |
1912 | |
1913 | #. module: l10n_es_aeat_mod347 |
1914 | #: field:l10n.es.aeat.mod347.partner_record,representative_vat:0 |
1915 | #: field:l10n.es.aeat.mod347.real_state_record,representative_vat:0 |
1916 | #: field:l10n.es.aeat.mod347.report,representative_vat:0 |
1917 | msgid "L.R. VAT number" |
1918 | -msgstr "" |
1919 | +msgstr "L.R. VAT number" |
1920 | |
1921 | #. module: l10n_es_aeat_mod347 |
1922 | #: view:l10n.es.aeat.mod347.partner_record:0 |
1923 | msgid "Cash record" |
1924 | -msgstr "" |
1925 | +msgstr "Cash record" |
1926 | |
1927 | #. module: l10n_es_aeat_mod347 |
1928 | #: view:l10n.es.aeat.mod347.report:0 |
1929 | msgid "Susbtitutive/complementary declaration" |
1930 | -msgstr "" |
1931 | +msgstr "Susbtitutive/complementary declaration" |
1932 | |
1933 | #. module: l10n_es_aeat_mod347 |
1934 | #: selection:l10n.es.aeat.mod347.partner_record,operation_key:0 |
1935 | msgid "G - Compras agencia viaje" |
1936 | -msgstr "" |
1937 | +msgstr "G - Compras agencia viaje" |
1938 | |
1939 | #. module: l10n_es_aeat_mod347 |
1940 | #: selection:l10n.es.aeat.mod347.partner_record,operation_key:0 |
1941 | msgid "D - Adquisiciones efectuadas por Entidades Públicas (...) superiores al límite (1)" |
1942 | -msgstr "" |
1943 | +msgstr "D - Adquisiciones efectuadas por Entidades Públicas (...) superiores al límite (1)" |
1944 | |
1945 | #. module: l10n_es_aeat_mod347 |
1946 | #: field:l10n.es.aeat.mod347.partner_record,third_quarter_real_state_transmission_amount:0 |
1947 | -msgid "Third Quarter Real Estate Transmission Amount" |
1948 | -msgstr "" |
1949 | +msgid "Third Quarter Real State Transmission Amount" |
1950 | +msgstr "Third Quarter Real State Transmission Amount" |
1951 | |
1952 | #. module: l10n_es_aeat_mod347 |
1953 | -#: model:ir.actions.act_window,help:l10n_es_aeat_mod347.action_l10n_es_aeat_mod347_report |
1954 | -msgid "Create and query AEAT Model 347 Reports" |
1955 | -msgstr "" |
1956 | +#: help:l10n.es.aeat.mod347.report,received_cash_limit:0 |
1957 | +msgid "The declaration will showthe total of cash operations over this limit" |
1958 | +msgstr "The declaration will showthe total of cash operations over this limit" |
1959 | |
1960 | #. module: l10n_es_aeat_mod347 |
1961 | #: field:l10n.es.aeat.mod347.report,type:0 |
1962 | msgid "Statement Type" |
1963 | -msgstr "" |
1964 | - |
1965 | -#. module: l10n_es_aeat_mod347 |
1966 | -#: constraint:account.period:0 |
1967 | -msgid "Invalid period ! Some periods overlap or the date period is not in the scope of the fiscal year. " |
1968 | -msgstr "" |
1969 | +msgstr "Statement Type" |
1970 | |
1971 | #. module: l10n_es_aeat_mod347 |
1972 | #: field:l10n.es.aeat.mod347.real_state_record,number:0 |
1973 | #: selection:l10n.es.aeat.mod347.real_state_record,number_type:0 |
1974 | msgid "Number" |
1975 | -msgstr "" |
1976 | +msgstr "Number" |
1977 | |
1978 | #. module: l10n_es_aeat_mod347 |
1979 | #: view:l10n.es.aeat.mod347.report:0 |
1980 | msgid "General" |
1981 | -msgstr "" |
1982 | +msgstr "General" |
1983 | |
1984 | #. module: l10n_es_aeat_mod347 |
1985 | #: selection:l10n.es.aeat.mod347.real_state_record,number_calification:0 |
1986 | msgid "Ant" |
1987 | -msgstr "" |
1988 | +msgstr "Ant" |
1989 | + |
1990 | +#. module: l10n_es_aeat_mod347 |
1991 | +#: view:l10n.es.aeat.mod347.report:0 |
1992 | +msgid "In process models" |
1993 | +msgstr "In process models" |
1994 | |
1995 | #. module: l10n_es_aeat_mod347 |
1996 | #: field:l10n.es.aeat.mod347.partner_record,first_quarter:0 |
1997 | msgid "First Quarter" |
1998 | -msgstr "" |
1999 | +msgstr "First Quarter" |
2000 | |
2001 | #. module: l10n_es_aeat_mod347 |
2002 | #: view:l10n.es.aeat.mod347.report:0 |
2003 | #: selection:l10n.es.aeat.mod347.report,state:0 |
2004 | msgid "Done" |
2005 | -msgstr "" |
2006 | +msgstr "Done" |
2007 | |
2008 | #. module: l10n_es_aeat_mod347 |
2009 | #: field:l10n.es.aeat.mod347.invoice_record,invoice_id:0 |
2010 | msgid "Invoice" |
2011 | -msgstr "" |
2012 | +msgstr "Invoice" |
2013 | |
2014 | #. module: l10n_es_aeat_mod347 |
2015 | #: report:report_l10n_es_aeat_mod347.report:0 |
2016 | -msgid "Real Estate Transmission (Q1|Q2|Q3|Q4)" |
2017 | -msgstr "" |
2018 | +msgid "Real State Transmission (Q1|Q2|Q3|Q4)" |
2019 | +msgstr "Real State Transmission (Q1|Q2|Q3|Q4)" |
2020 | |
2021 | #. module: l10n_es_aeat_mod347 |
2022 | #: view:l10n.es.aeat.mod347.report:0 |
2023 | msgid "Cancel" |
2024 | -msgstr "" |
2025 | +msgstr "Cancel" |
2026 | |
2027 | #. module: l10n_es_aeat_mod347 |
2028 | #: view:l10n.es.aeat.mod347.report:0 |
2029 | msgid "Recalculate" |
2030 | -msgstr "" |
2031 | +msgstr "Recalculate" |
2032 | |
2033 | #. module: l10n_es_aeat_mod347 |
2034 | #: help:l10n.es.aeat.mod347.partner_record,insurance_operation:0 |
2035 | msgid "Only for insurance companies. Set to identify insurance operations aside from the rest." |
2036 | -msgstr "" |
2037 | +msgstr "Only for insurance companies. Set to identify insurance operations aside from the rest." |
2038 | |
2039 | #. module: l10n_es_aeat_mod347 |
2040 | #: field:l10n.es.aeat.mod347.real_state_record,city:0 |
2041 | msgid "City" |
2042 | -msgstr "" |
2043 | - |
2044 | -#. module: l10n_es_aeat_mod347 |
2045 | -#: help:account.journal,cash_journal:0 |
2046 | -msgid "Payments of this journal will be considered as cash (used on the 347 report)" |
2047 | -msgstr "" |
2048 | +msgstr "City" |
2049 | |
2050 | #. module: l10n_es_aeat_mod347 |
2051 | #: field:l10n.es.aeat.mod347.real_state_record,floor:0 |
2052 | msgid "Floor" |
2053 | -msgstr "" |
2054 | +msgstr "Floor" |
2055 | |
2056 | #. module: l10n_es_aeat_mod347 |
2057 | #: model:ir.model,name:l10n_es_aeat_mod347.model_l10n_es_aeat_mod347_export_to_boe |
2058 | msgid "Export AEAT Model 347 to BOE format" |
2059 | -msgstr "" |
2060 | +msgstr "Export AEAT Model 347 to BOE format" |
2061 | |
2062 | #. module: l10n_es_aeat_mod347 |
2063 | #: selection:l10n.es.aeat.mod347.partner_record,operation_key:0 |
2064 | msgid "B - Entregas de bienes y servicios superiores al límite (1)" |
2065 | -msgstr "" |
2066 | +msgstr "B - Entregas de bienes y servicios superiores al límite (1)" |
2067 | |
2068 | #. module: l10n_es_aeat_mod347 |
2069 | #: view:l10n.es.aeat.mod347.report:0 |
2070 | msgid "AEAT 347" |
2071 | -msgstr "" |
2072 | +msgstr "AEAT 347" |
2073 | |
2074 | #. module: l10n_es_aeat_mod347 |
2075 | #: view:l10n.es.aeat.mod347.partner_record:0 |
2076 | msgid "Cash records" |
2077 | -msgstr "" |
2078 | +msgstr "Cash records" |
2079 | |
2080 | #. module: l10n_es_aeat_mod347 |
2081 | #: selection:l10n.es.aeat.mod347.real_state_record,number_type:0 |
2082 | msgid "Kilometer" |
2083 | -msgstr "" |
2084 | +msgstr "Kilometer" |
2085 | |
2086 | #. module: l10n_es_aeat_mod347 |
2087 | #: report:report_l10n_es_aeat_mod347.report:0 |
2088 | msgid "Cash amount" |
2089 | -msgstr "" |
2090 | +msgstr "Cash amount" |
2091 | |
2092 | #. module: l10n_es_aeat_mod347 |
2093 | #: view:l10n.es.aeat.mod347.partner_record:0 |
2094 | msgid "Details" |
2095 | -msgstr "" |
2096 | +msgstr "Details" |
2097 | |
2098 | #. module: l10n_es_aeat_mod347 |
2099 | #: model:ir.actions.act_window,name:l10n_es_aeat_mod347.action_l10n_es_aeat_mod347_report |
2100 | msgid "AEAT Model 347" |
2101 | -msgstr "" |
2102 | +msgstr "AEAT Model 347" |
2103 | |
2104 | #. module: l10n_es_aeat_mod347 |
2105 | #: view:l10n.es.aeat.mod347.real_state_record:0 |
2106 | -msgid "Real estate address" |
2107 | -msgstr "" |
2108 | +msgid "Real state address" |
2109 | +msgstr "Real state address" |
2110 | |
2111 | #. module: l10n_es_aeat_mod347 |
2112 | #: field:l10n.es.aeat.mod347.partner_record,cash_amount:0 |
2113 | msgid "Received cash amount" |
2114 | -msgstr "" |
2115 | +msgstr "Received cash amount" |
2116 | |
2117 | #. module: l10n_es_aeat_mod347 |
2118 | #: selection:l10n.es.aeat.mod347.report,type:0 |
2119 | msgid "Complementary" |
2120 | -msgstr "" |
2121 | +msgstr "Complementary" |
2122 | |
2123 | #. module: l10n_es_aeat_mod347 |
2124 | #: model:ir.model,name:l10n_es_aeat_mod347.model_account_period |
2125 | msgid "Account period" |
2126 | -msgstr "" |
2127 | +msgstr "Account period" |
2128 | |
2129 | #. module: l10n_es_aeat_mod347 |
2130 | #: report:report_l10n_es_aeat_mod347.report:0 |
2131 | msgid "PARTNER RECORD LINES" |
2132 | -msgstr "" |
2133 | +msgstr "PARTNER RECORD LINES" |
2134 | |
2135 | #. module: l10n_es_aeat_mod347 |
2136 | #: field:l10n.es.aeat.mod347.partner_record,first_quarter_real_state_transmission_amount:0 |
2137 | -msgid "First Quarter Real Estate Transmission Amount" |
2138 | -msgstr "" |
2139 | +msgid "First Quarter Real State Transmission Amount" |
2140 | +msgstr "First Quarter Real State Transmission Amount" |
2141 | |
2142 | #. module: l10n_es_aeat_mod347 |
2143 | #: help:l10n.es.aeat.mod347.report,representative_vat:0 |
2144 | msgid "Legal Representative VAT number." |
2145 | -msgstr "" |
2146 | +msgstr "Legal Representative VAT number." |
2147 | |
2148 | #. module: l10n_es_aeat_mod347 |
2149 | #: field:l10n.es.aeat.mod347.report,previous_number:0 |
2150 | msgid "Previous Declaration Number" |
2151 | -msgstr "" |
2152 | +msgstr "Previous Declaration Number" |
2153 | |
2154 | #. module: l10n_es_aeat_mod347 |
2155 | #: field:l10n.es.aeat.mod347.partner_record,second_quarter_real_state_transmission_amount:0 |
2156 | -msgid "Second Quarter Real Estate Transmission Amount" |
2157 | -msgstr "" |
2158 | +msgid "Second Quarter Real State Transmission Amount" |
2159 | +msgstr "Second Quarter Real State Transmission Amount" |
2160 | |
2161 | #. module: l10n_es_aeat_mod347 |
2162 | #: field:l10n.es.aeat.mod347.real_state_record,address:0 |
2163 | msgid "Address" |
2164 | -msgstr "" |
2165 | +msgstr "Address" |
2166 | |
2167 | #. module: l10n_es_aeat_mod347 |
2168 | #: field:l10n.es.aeat.mod347.real_state_record,township:0 |
2169 | msgid "Township" |
2170 | -msgstr "" |
2171 | +msgstr "Township" |
2172 | |
2173 | #. module: l10n_es_aeat_mod347 |
2174 | #: field:l10n.es.aeat.mod347.partner_record,operation_key:0 |
2175 | msgid "Operation Key" |
2176 | -msgstr "" |
2177 | +msgstr "Operation Key" |
2178 | |
2179 | #. module: l10n_es_aeat_mod347 |
2180 | #: help:res.partner,include_in_mod347:0 |
2181 | msgid "Include in AEAT 347 Model report" |
2182 | -msgstr "" |
2183 | +msgstr "Include in AEAT 347 Model report" |
2184 | |
2185 | #. module: l10n_es_aeat_mod347 |
2186 | #: report:report_l10n_es_aeat_mod347.report:0 |
2187 | msgid "Fiscal year:" |
2188 | -msgstr "" |
2189 | +msgstr "Fiscal year:" |
2190 | |
2191 | #. module: l10n_es_aeat_mod347 |
2192 | #: field:l10n.es.aeat.mod347.partner_record,amount:0 |
2193 | msgid "Operations amount" |
2194 | -msgstr "" |
2195 | +msgstr "Operations amount" |
2196 | |
2197 | #. module: l10n_es_aeat_mod347 |
2198 | #: field:l10n.es.aeat.mod347.report,total_real_state_transmissions_amount:0 |
2199 | -msgid "Real Estate Transmissions Amount" |
2200 | -msgstr "" |
2201 | +msgid "Real State Transmissions Amount" |
2202 | +msgstr "Real State Transmissions Amount" |
2203 | |
2204 | #. module: l10n_es_aeat_mod347 |
2205 | #: view:l10n.es.aeat.mod347.partner_record:0 |
2206 | #: view:l10n.es.aeat.mod347.real_state_record:0 |
2207 | msgid "Partner info" |
2208 | -msgstr "" |
2209 | +msgstr "Partner info" |
2210 | |
2211 | #. module: l10n_es_aeat_mod347 |
2212 | #: report:report_l10n_es_aeat_mod347.report:0 |
2213 | msgid "RST amount" |
2214 | -msgstr "" |
2215 | +msgstr "RST amount" |
2216 | + |
2217 | +#. module: l10n_es_aeat_mod347 |
2218 | +#: field:l10n.es.aeat.mod347.report,attach_id:0 |
2219 | +msgid "BOE file" |
2220 | +msgstr "BOE file" |
2221 | + |
2222 | +#. module: l10n_es_aeat_mod347 |
2223 | +#: view:l10n.es.aeat.mod347.report:0 |
2224 | +msgid "Draft models" |
2225 | +msgstr "Draft models" |
2226 | |
2227 | #. module: l10n_es_aeat_mod347 |
2228 | #: view:l10n.es.aeat.mod347.report:0 |
2229 | #: field:l10n.es.aeat.mod347.report,fiscalyear_id:0 |
2230 | msgid "Fiscal Year" |
2231 | -msgstr "" |
2232 | +msgstr "Fiscal Year" |
2233 | |
2234 | #. module: l10n_es_aeat_mod347 |
2235 | #: view:l10n.es.aeat.mod347.report:0 |
2236 | msgid "Summary" |
2237 | -msgstr "" |
2238 | +msgstr "Summary" |
2239 | |
2240 | #. module: l10n_es_aeat_mod347 |
2241 | #: field:l10n.es.aeat.mod347.report,total_real_state_records:0 |
2242 | -msgid "Real estate records" |
2243 | -msgstr "" |
2244 | +msgid "Real state records" |
2245 | +msgstr "Real state records" |
2246 | |
2247 | #. module: l10n_es_aeat_mod347 |
2248 | #: selection:l10n.es.aeat.mod347.report,support_type:0 |
2249 | msgid "Telematics" |
2250 | -msgstr "" |
2251 | +msgstr "Telematics" |
2252 | |
2253 | #. module: l10n_es_aeat_mod347 |
2254 | #: field:l10n.es.aeat.mod347.report,received_cash_limit:0 |
2255 | msgid "Received cash Limit (2)" |
2256 | -msgstr "" |
2257 | +msgstr "Received cash Limit (2)" |
2258 | |
2259 | #. module: l10n_es_aeat_mod347 |
2260 | #: selection:l10n.es.aeat.mod347.partner_record,operation_key:0 |
2261 | msgid "E - Subvenciones, auxilios y ayudas satisfechas por Ad. Públicas superiores al límite (1)" |
2262 | -msgstr "" |
2263 | - |
2264 | -#. module: l10n_es_aeat_mod347 |
2265 | -#: sql_constraint:account.journal:0 |
2266 | -msgid "The name of the journal must be unique per company !" |
2267 | -msgstr "" |
2268 | +msgstr "E - Subvenciones, auxilios y ayudas satisfechas por Ad. Públicas superiores al límite (1)" |
2269 | |
2270 | #. module: l10n_es_aeat_mod347 |
2271 | #: selection:account.period,quarter:0 |
2272 | msgid "Second" |
2273 | -msgstr "" |
2274 | +msgstr "Second" |
2275 | |
2276 | #. module: l10n_es_aeat_mod347 |
2277 | #: model:ir.model,name:l10n_es_aeat_mod347.model_account_journal |
2278 | msgid "Journal" |
2279 | -msgstr "" |
2280 | +msgstr "Journal" |
2281 | |
2282 | |
2283 | === added directory 'l10n_es_aeat_mod347/images' |
2284 | === added file 'l10n_es_aeat_mod347/images/l10n_es_aeat_mod347.png' |
2285 | Binary files l10n_es_aeat_mod347/images/l10n_es_aeat_mod347.png 1970-01-01 00:00:00 +0000 and l10n_es_aeat_mod347/images/l10n_es_aeat_mod347.png 2013-12-27 10:08:05 +0000 differ |
2286 | === modified file 'l10n_es_aeat_mod347/mod347.py' (properties changed: -x to +x) |
2287 | --- l10n_es_aeat_mod347/mod347.py 2013-11-23 01:47:07 +0000 |
2288 | +++ l10n_es_aeat_mod347/mod347.py 2013-12-27 10:08:05 +0000 |
2289 | @@ -22,22 +22,28 @@ |
2290 | # |
2291 | ############################################################################## |
2292 | |
2293 | -__author__ = "Luis Manuel Angueira Blanco (Pexego)" |
2294 | |
2295 | +from openerp.osv import fields |
2296 | +from openerp.osv import orm |
2297 | +from openerp.tools.translate import _ |
2298 | import re |
2299 | -from osv import osv, fields |
2300 | -from tools.translate import _ |
2301 | - |
2302 | -class account_period(osv.osv): |
2303 | + |
2304 | + |
2305 | +class account_period(orm.Model): |
2306 | _inherit = "account.period" |
2307 | |
2308 | _columns = { |
2309 | - 'quarter':fields.selection( [('first','First'),('second','Second'),('third','Third'),('fourth','Fourth')], 'Quarter'), |
2310 | + 'quarter': fields.selection([ |
2311 | + ('first', 'First'), |
2312 | + ('second', 'Second'), |
2313 | + ('third', 'Third'), |
2314 | + ('fourth', 'Fourth') |
2315 | + ], 'Quarter'), |
2316 | } |
2317 | account_period() |
2318 | |
2319 | |
2320 | -class l10n_es_aeat_mod347_report(osv.osv): |
2321 | +class l10n_es_aeat_mod347_report(orm.Model): |
2322 | |
2323 | _inherit = "l10n.es.aeat.report" |
2324 | _name = "l10n.es.aeat.mod347.report" |
2325 | @@ -67,8 +73,9 @@ |
2326 | context = {} |
2327 | |
2328 | export_obj = self.pool.get("l10n.es.aeat.mod347.export_to_boe") |
2329 | - export_obj._export_boe_file(cr, uid, ids, self.browse(cr, uid, ids and ids[0])) |
2330 | - |
2331 | + export_obj._export_boe_file(cr, uid, ids, self.browse(cr, |
2332 | + uid, |
2333 | + ids and ids[0])) |
2334 | return True |
2335 | |
2336 | def _get_totals(self, cr, uid, ids, name, args, context=None): |
2337 | @@ -77,17 +84,27 @@ |
2338 | """ |
2339 | if context is None: |
2340 | context = {} |
2341 | - |
2342 | res = {} |
2343 | - |
2344 | for report in self.browse(cr, uid, ids, context=context): |
2345 | res[report.id] = { |
2346 | 'total_partner_records': len(report.partner_record_ids), |
2347 | - 'total_amount' : sum([record.amount for record in report.partner_record_ids]) or 0.0, |
2348 | - 'total_cash_amount' : sum([record.cash_amount for record in report.partner_record_ids]) or 0.0, |
2349 | - 'total_real_state_transmissions_amount' : sum([record.real_state_transmissions_amount for record in report.partner_record_ids]) or 0., |
2350 | - 'total_real_state_records' : len(report.real_state_record_ids), |
2351 | - 'total_real_state_amount' : sum([record.amount for record in report.real_state_record_ids]) or 0, |
2352 | + 'total_amount': sum([ |
2353 | + record.amount for |
2354 | + record in |
2355 | + report.partner_record_ids]) or 0.0, |
2356 | + 'total_cash_amount': sum([ |
2357 | + record.cash_amount for |
2358 | + record in |
2359 | + report.partner_record_ids]) or 0.0, |
2360 | + 'total_real_state_transmissions_amount': sum([ |
2361 | + record.real_state_transmissions_amount for |
2362 | + record in |
2363 | + report.partner_record_ids]) or 0., |
2364 | + 'total_real_state_amount': sum([ |
2365 | + record.amount for |
2366 | + record in |
2367 | + report.real_state_record_ids]) or 0, |
2368 | + 'total_real_state_records': len(report.real_state_record_ids), |
2369 | } |
2370 | |
2371 | return res |
2372 | @@ -95,57 +112,98 @@ |
2373 | _columns = { |
2374 | 'contact_name': fields.char("Full Name", size=40), |
2375 | 'contact_phone': fields.char("Phone", size=9), |
2376 | - 'group_by_cif': fields.boolean('Group by cif', states={'done':[('readonly',True)]}), |
2377 | - |
2378 | - ## |
2379 | - ## Limits |
2380 | - 'operations_limit': fields.float('Invoiced Limit (1)', digits=(13,2), help="The declaration will include partners with the total of operations over this limit"), |
2381 | - 'received_cash_limit': fields.float('Received cash Limit (2)', digits=(13,2), help="The declaration will show the total of cash operations over this limit"), |
2382 | - 'charges_obtp_limit': fields.float('Charges on behalf of third parties Limit (3)', digits=(13,2), help="The declaration will include partners from which we received payments, on behalf of third parties, over this limit"), |
2383 | - |
2384 | - ## |
2385 | - ## Totals |
2386 | - 'total_partner_records': fields.function(_get_totals, string="Partners records", method=True, type='integer', multi="totals_multi"), |
2387 | - 'total_amount': fields.function(_get_totals, string="Amount", method=True, type='float', multi="totals_multi"), |
2388 | - 'total_cash_amount': fields.function(_get_totals, string="Cash Amount", method=True, type='float', multi="totals_multi"), |
2389 | - 'total_real_state_transmissions_amount': fields.function(_get_totals, string="Real Estate Transmissions Amount", method=True, type='float', multi="totals_multi"), |
2390 | - 'total_real_state_records': fields.function(_get_totals, string="Real estate records", method=True, type='integer', multi="totals_multi"), |
2391 | - 'total_real_state_amount': fields.function(_get_totals, string="Real Estate Amount", method=True, type='float', multi="totals_multi"), |
2392 | - |
2393 | - } |
2394 | + 'group_by_cif': fields.boolean('Group by cif'), |
2395 | + 'only_supplier': fields.boolean('Only Suppliers'), |
2396 | + 'operations_limit': fields.float('Invoiced Limit (1)', |
2397 | + digits=(13, 2), |
2398 | + help="The declaration will include "\ |
2399 | + "partners with the total of "\ |
2400 | + "operations over this limit"), |
2401 | + 'received_cash_limit': fields.float('Received cash Limit (2)', |
2402 | + digits=(13, 2), |
2403 | + help="The declaration will show" \ |
2404 | + "the total of cash operations"\ |
2405 | + " over this limit"), |
2406 | + 'charges_obtp_limit': fields.float('Charges on behalf of third parties Limit (3)', |
2407 | + digits=(13, 2), |
2408 | + help="The declaration will include"\ |
2409 | + " partners from which we received"\ |
2410 | + " payments, on behalf of third "\ |
2411 | + "parties, over this limit"), |
2412 | + 'total_partner_records': fields.function(_get_totals, |
2413 | + string="Partners records", |
2414 | + method=True, |
2415 | + type='integer', |
2416 | + multi="totals_multi"), |
2417 | + 'total_amount': fields.function(_get_totals, |
2418 | + string="Amount", |
2419 | + method=True, |
2420 | + type='float', |
2421 | + multi="totals_multi"), |
2422 | + 'total_cash_amount': fields.function(_get_totals, |
2423 | + string="Cash Amount", |
2424 | + method=True, |
2425 | + type='float', |
2426 | + multi="totals_multi"), |
2427 | + 'total_real_state_transmissions_amount': fields.function(_get_totals, |
2428 | + string="Real State Transmissions Amount", |
2429 | + method=True, |
2430 | + type='float', |
2431 | + multi="totals_multi"), |
2432 | + 'total_real_state_records': fields.function(_get_totals, |
2433 | + string="Real state records", |
2434 | + method=True, |
2435 | + type='integer', |
2436 | + multi="totals_multi"), |
2437 | + 'total_real_state_amount': fields.function(_get_totals, |
2438 | + string="Real State Amount", |
2439 | + method=True, |
2440 | + type='float', |
2441 | + multi="totals_multi"), |
2442 | + } |
2443 | + |
2444 | _defaults = { |
2445 | - ## |
2446 | - ## Default limits |
2447 | - 'operations_limit': lambda *args: 3005.06, |
2448 | - 'charges_obtp_limit': lambda *args: 300.51, |
2449 | - 'received_cash_limit': lambda *args: 6000.00, |
2450 | - |
2451 | - ## |
2452 | - ## AEAT brings number (previous number), so take defautl value as 349 (need to be changed) |
2453 | - 'number' : lambda *a: '347' |
2454 | + ## Default limits |
2455 | + 'operations_limit': lambda *args: 3005.06, |
2456 | + 'charges_obtp_limit': lambda *args: 300.51, |
2457 | + 'received_cash_limit': lambda *args: 6000.00, |
2458 | + ## AEAT brings number (previous number), so take default value as 349 (need to be changed) |
2459 | + 'number': lambda *a: '347' |
2460 | } |
2461 | |
2462 | def _check_report_lines(self, cr, uid, ids, context=None): |
2463 | """checks report lines""" |
2464 | - if context is None: context = {} |
2465 | + if context is None: |
2466 | + context = {} |
2467 | |
2468 | for item in self.browse(cr, uid, ids, context): |
2469 | ## Browse partner record lines to check if all are correct (all fields filled) |
2470 | for partner_record in item.partner_record_ids: |
2471 | if not partner_record.partner_state_code: |
2472 | - raise osv.except_osv(_('Error!'), _("All partner state code field must be filled.\nPartner: %s (%s)") % ( partner_record.partner_id.name, partner_record.partner_id.id ) ) |
2473 | + raise orm.except_orm( |
2474 | + _('Error!'), |
2475 | + _("All partner state code field must be filled.\nPartner: %s (%s)") % |
2476 | + (partner_record.partner_id.name, |
2477 | + partner_record.partner_id.id)) |
2478 | if not partner_record.partner_vat: |
2479 | - raise osv.except_osv(_('Error!'), _("All partner vat number field must be filled.\nPartner: %s (%s)") % ( partner_record.partner_id.name, partner_record.partner_id.id ) ) |
2480 | + raise orm.except_orm( |
2481 | + _('Error!'), |
2482 | + _("All partner vat number field must be filled.\nPartner: %s (%s)") % |
2483 | + (partner_record.partner_id.name, |
2484 | + partner_record.partner_id.id)) |
2485 | |
2486 | for real_state_record in item.real_state_record_ids: |
2487 | if not real_state_record.state_code: |
2488 | - raise osv.except_osv(_('Error!'), _("All real estate records state code field must be filled.")) |
2489 | + raise orm.except_orm( |
2490 | + _('Error!'), |
2491 | + _("All real state records state code field must be filled.")) |
2492 | |
2493 | return True |
2494 | |
2495 | def check_report(self, cr, uid, ids, context=None): |
2496 | """Different check out in report""" |
2497 | - if context is None: context = {} |
2498 | + if context is None: |
2499 | + context = {} |
2500 | |
2501 | self._check_report_lines(cr, uid, ids, context) |
2502 | |
2503 | @@ -153,7 +211,8 @@ |
2504 | |
2505 | def action_confirm(self, cr, uid, ids, context=None): |
2506 | """set to done the report and check its records""" |
2507 | - if context is None: context = {} |
2508 | + if context is None: |
2509 | + context = {} |
2510 | |
2511 | self.check_report(cr, uid, ids, context) |
2512 | self.write(cr, uid, ids, {'state': 'done'}) |
2513 | @@ -163,7 +222,7 @@ |
2514 | l10n_es_aeat_mod347_report() |
2515 | |
2516 | |
2517 | -class l10n_es_aeat_mod347_partner_record(osv.osv): |
2518 | +class l10n_es_aeat_mod347_partner_record(orm.Model): |
2519 | """ |
2520 | Represents a partner record for the 347 model. |
2521 | """ |
2522 | @@ -171,22 +230,21 @@ |
2523 | _description = 'Partner Record' |
2524 | _rec_name = "partner_vat" |
2525 | |
2526 | - def _get_quarter_totals(self, cr, uid, ids, field_name, arg, context = None): |
2527 | - |
2528 | + def _get_quarter_totals(self, cr, uid, ids, field_name, arg, context=None): |
2529 | + |
2530 | if context is None: |
2531 | - context={} |
2532 | - |
2533 | + context = {} |
2534 | result = {} |
2535 | for record in self.browse(cr, uid, ids, context): |
2536 | - result[record.id] ={ |
2537 | - 'first_quarter':0, |
2538 | - 'first_quarter_real_state_transmission_amount':0, |
2539 | + result[record.id] = { |
2540 | + 'first_quarter': 0, |
2541 | + 'first_quarter_real_state_transmission_amount': 0, |
2542 | 'second_quarter': 0, |
2543 | - 'second_quarter_real_state_transmission_amount':0, |
2544 | + 'second_quarter_real_state_transmission_amount': 0, |
2545 | 'third_quarter': 0, |
2546 | - 'third_quarter_real_state_transmission_amount':0, |
2547 | + 'third_quarter_real_state_transmission_amount': 0, |
2548 | 'fourth_quarter': 0, |
2549 | - 'fourth_quarter_real_state_transmission_amount':0, |
2550 | + 'fourth_quarter_real_state_transmission_amount': 0, |
2551 | } |
2552 | for invoice in record.invoice_record_ids: |
2553 | if invoice.invoice_id.period_id.quarter == 'first': |
2554 | @@ -198,19 +256,20 @@ |
2555 | elif invoice.invoice_id.period_id.quarter == 'fourth': |
2556 | result[record.id]['fourth_quarter'] += invoice.amount |
2557 | |
2558 | - return result |
2559 | + return result |
2560 | |
2561 | - def _get_lines( self, cr, uid, ids, context ): |
2562 | + def _get_lines(self, cr, uid, ids, context): |
2563 | invoice_record_obj = self.pool.get('l10n.es.aeat.mod347.invoice_record') |
2564 | - |
2565 | - res = [] |
2566 | + res = [] |
2567 | for invoice_record in invoice_record_obj.browse(cr, uid, ids, context): |
2568 | - res.append( invoice_record.partner_record_id.id ) |
2569 | + res.append(invoice_record.partner_record_id.id) |
2570 | return list(set(res)) |
2571 | - |
2572 | - |
2573 | + |
2574 | _columns = { |
2575 | - 'report_id': fields.many2one('l10n.es.aeat.mod347.report', 'AEAT 347 Report', ondelete="cascade", select=1), |
2576 | + 'report_id': fields.many2one('l10n.es.aeat.mod347.report', |
2577 | + 'AEAT 347 Report', |
2578 | + ondelete="cascade", |
2579 | + select=1), |
2580 | 'operation_key': fields.selection([ |
2581 | ('A', u'A - Adquisiciones de bienes y servicios superiores al límite (1)'), |
2582 | ('B', u'B - Entregas de bienes y servicios superiores al límite (1)'), |
2583 | @@ -222,55 +281,85 @@ |
2584 | ], 'Operation Key'), |
2585 | 'partner_id': fields.many2one('res.partner', 'Partner', required=True), |
2586 | 'partner_vat': fields.char('VAT number', size=9), |
2587 | - 'representative_vat': fields.char('L.R. VAT number', size=9, help="Legal Representative VAT number"), |
2588 | + 'representative_vat': fields.char('L.R. VAT number', size=9, |
2589 | + help="Legal Representative VAT number"), |
2590 | 'partner_country_code': fields.char('Country Code', size=2), |
2591 | - 'partner_state_code': fields.char('State Code', size=2), |
2592 | - 'first_quarter': fields.function(_get_quarter_totals, string="First Quarter", |
2593 | - method=True, type='float', multi="quarter_multi",digits=(13,2), |
2594 | - store= { |
2595 | - 'l10n.es.aeat.mod347.invoice_record': (_get_lines, ['amount'] , 10 ) |
2596 | - }), |
2597 | - 'first_quarter_real_state_transmission_amount':fields.function(_get_quarter_totals, string="First Quarter Real Estate Transmission Amount", |
2598 | - method=True, type='float', multi="quarter_multi" ,digits=(13,2), |
2599 | - store= { |
2600 | - 'l10n.es.aeat.mod347.invoice_record': (_get_lines, ['amount'] , 10 ) |
2601 | - } |
2602 | - ), |
2603 | - 'second_quarter': fields.function(_get_quarter_totals, string="Second Quarter", method=True, |
2604 | - type='float', multi="quarter_multi", digits=(13,2), |
2605 | - store= { |
2606 | - 'l10n.es.aeat.mod347.invoice_record': (_get_lines, ['amount'] , 10 ) |
2607 | - }), |
2608 | - 'second_quarter_real_state_transmission_amount':fields.function(_get_quarter_totals, string="Second Quarter Real Estate Transmission Amount", |
2609 | - method=True, type='float', multi="quarter_multi",digits=(13,2), store= { |
2610 | - 'l10n.es.aeat.mod347.invoice_record': (_get_lines, ['amount'] , 10 ) |
2611 | - }), |
2612 | - 'third_quarter': fields.function(_get_quarter_totals, string="Third Quarter", method=True, type='float', |
2613 | - multi="quarter_multi",digits=(13,2), store= { |
2614 | - 'l10n.es.aeat.mod347.invoice_record': (_get_lines, ['amount'] , 10 ) |
2615 | - }), |
2616 | - 'third_quarter_real_state_transmission_amount':fields.function(_get_quarter_totals, string="Third Quarter Real Estate Transmission Amount", |
2617 | - method=True, type='float', multi="quarter_multi",digits=(13,2), store= { |
2618 | - 'l10n.es.aeat.mod347.invoice_record': (_get_lines, ['amount'] , 10 ) |
2619 | - } ), |
2620 | - 'fourth_quarter': fields.function(_get_quarter_totals, string="Fourth Quarter", |
2621 | - method=True, type='float', multi="quarter_multi",digits=(13,2), store= { |
2622 | - 'l10n.es.aeat.mod347.invoice_record': (_get_lines, ['amount'] , 10 ) |
2623 | - }), |
2624 | - 'fourth_quarter_real_state_transmission_amount':fields.function(_get_quarter_totals, string="Fourth Quarter Real Estate Transmossion Amount", |
2625 | - method=True, type='float', multi="quarter_multi",digits=(13,2), store= { |
2626 | - 'l10n.es.aeat.mod347.invoice_record': (_get_lines, ['amount'] , 10 ) |
2627 | - }), |
2628 | + 'partner_state_code': fields.char('State Code', size=2), |
2629 | + 'first_quarter': fields.function(_get_quarter_totals, |
2630 | + string="First Quarter", |
2631 | + method=True, type='float', |
2632 | + multi="quarter_multi", digits=(13, 2), |
2633 | + store={ |
2634 | + 'l10n.es.aeat.mod347.invoice_record': (_get_lines, ['amount'], 10) |
2635 | + }), |
2636 | + 'first_quarter_real_state_transmission_amount': fields.function(_get_quarter_totals, |
2637 | + string="First Quarter Real State Transmission Amount", |
2638 | + method=True, type='float', |
2639 | + multi="quarter_multi", digits=(13, 2), |
2640 | + store={ |
2641 | + 'l10n.es.aeat.mod347.invoice_record': (_get_lines, ['amount'], 10) |
2642 | + }), |
2643 | + 'second_quarter': fields.function(_get_quarter_totals, |
2644 | + string="Second Quarter", |
2645 | + method=True, type='float', |
2646 | + multi="quarter_multi", digits=(13, 2), |
2647 | + store={ |
2648 | + 'l10n.es.aeat.mod347.invoice_record': (_get_lines, ['amount'], 10) |
2649 | + }), |
2650 | + 'second_quarter_real_state_transmission_amount': fields.function(_get_quarter_totals, |
2651 | + string="Second Quarter Real State Transmission Amount", |
2652 | + method=True, type='float', multi="quarter_multi", digits=(13, 2), |
2653 | + store={ |
2654 | + 'l10n.es.aeat.mod347.invoice_record': (_get_lines, ['amount'], 10) |
2655 | + }), |
2656 | + 'third_quarter': fields.function(_get_quarter_totals, |
2657 | + string="Third Quarter", |
2658 | + method=True, type='float', |
2659 | + multi="quarter_multi", digits=(13, 2), |
2660 | + store={ |
2661 | + 'l10n.es.aeat.mod347.invoice_record': (_get_lines, ['amount'], 10) |
2662 | + }), |
2663 | + 'third_quarter_real_state_transmission_amount': fields.function(_get_quarter_totals, |
2664 | + string="Third Quarter Real State Transmission Amount", |
2665 | + method=True, type='float', |
2666 | + multi="quarter_multi", digits=(13, 2), |
2667 | + store={ |
2668 | + 'l10n.es.aeat.mod347.invoice_record': (_get_lines, ['amount'], 10) |
2669 | + }), |
2670 | + 'fourth_quarter': fields.function(_get_quarter_totals, |
2671 | + string="Fourth Quarter", |
2672 | + method=True, type='float', |
2673 | + multi="quarter_multi", digits=(13, 2), |
2674 | + store={ |
2675 | + 'l10n.es.aeat.mod347.invoice_record': (_get_lines, ['amount'], 10) |
2676 | + }), |
2677 | + 'fourth_quarter_real_state_transmission_amount': fields.function(_get_quarter_totals, |
2678 | + string="Fourth Quarter Real State Transmossion Amount", |
2679 | + method=True, type='float', |
2680 | + multi="quarter_multi", digits=(13, 2), |
2681 | + store={ |
2682 | + 'l10n.es.aeat.mod347.invoice_record': (_get_lines, ['amount'], 10) |
2683 | + }), |
2684 | 'amount': fields.float('Operations amount', digits=(13,2)), |
2685 | 'cash_amount': fields.float('Received cash amount', digits=(13,2)), |
2686 | - 'real_state_transmissions_amount': fields.float('Real Estate Transmisions amount', digits=(13,2)), |
2687 | - |
2688 | - 'insurance_operation': fields.boolean('Insurance Operation', help="Only for insurance companies. Set to identify insurance operations aside from the rest."), |
2689 | - 'bussiness_real_state_rent': fields.boolean('Bussiness Real Estate Rent', help="Set to identify real estate rent operations aside from the rest. You'll need to fill in the real estate info only when you are the one that receives the money."), |
2690 | - 'origin_fiscalyear_id': fields.many2one('account.fiscalyear', 'Origin fiscal year', help="Origin cash operation fiscal year"), |
2691 | - 'invoice_record_ids': fields.one2many('l10n.es.aeat.mod347.invoice_record', 'partner_record_id', 'Invoice records', |
2692 | - states = {'done': [('readonly', True)]}), |
2693 | - |
2694 | + 'real_state_transmissions_amount': fields.float('Real State Transmisions amount', |
2695 | + digits=(13, 2)), |
2696 | + |
2697 | + 'insurance_operation': fields.boolean('Insurance Operation', |
2698 | + help="Only for insurance companies. Set to identify"\ |
2699 | + " insurance operations aside from the rest."), |
2700 | + 'bussiness_real_state_rent': fields.boolean('Bussiness Real State Rent', |
2701 | + help="Set to identify real state rent operations"\ |
2702 | + " aside from the rest. You'll need to fill"\ |
2703 | + " in the real state info only when you are"\ |
2704 | + " the one that receives the money."), |
2705 | + 'origin_fiscalyear_id': fields.many2one('account.fiscalyear', |
2706 | + 'Origin fiscal year', |
2707 | + help="Origin cash operation fiscal year"), |
2708 | + 'invoice_record_ids': fields.one2many('l10n.es.aeat.mod347.invoice_record', |
2709 | + 'partner_record_id', |
2710 | + 'Invoice records'), |
2711 | + |
2712 | } |
2713 | _defaults = { |
2714 | 'report_id': lambda self, cr, uid, context: context.get('report_id', None), |
2715 | @@ -278,25 +367,32 @@ |
2716 | |
2717 | def on_change_partner_id(self, cr, uid, ids, partner_id): |
2718 | """ |
2719 | - Loads some partner data (country and vat) when the selected partner changes. |
2720 | + Loads some partner data (country and vat) |
2721 | + when the selected partner changes. |
2722 | """ |
2723 | partner_vat = '' |
2724 | partner_country_code = '' |
2725 | partner_state_code = '' |
2726 | if partner_id: |
2727 | partner = self.pool.get('res.partner').browse(cr, uid, partner_id) |
2728 | - |
2729 | - # |
2730 | # Get the default invoice address of the partner |
2731 | - # |
2732 | address = None |
2733 | - address_ids = self.pool.get('res.partner').address_get(cr, uid, [partner.id], ['invoice', 'default']) |
2734 | + address_ids = self.pool.get('res.partner').address_get(cr, |
2735 | + uid, |
2736 | + [partner.id], |
2737 | + ['invoice', 'default']) |
2738 | if address_ids.get('invoice'): |
2739 | - address = self.pool.get('res.partner.address').browse(cr, uid, address_ids.get('invoice')) |
2740 | + address = self.pool.get('res.partner.address').browse(cr, |
2741 | + uid, |
2742 | + address_ids.get('invoice')) |
2743 | elif address_ids.get('default'): |
2744 | - address = self.pool.get('res.partner.address').browse(cr, uid, address_ids.get('default')) |
2745 | + address = self.pool.get('res.partner.address').browse( |
2746 | + cr, |
2747 | + uid, |
2748 | + address_ids.get('default')) |
2749 | |
2750 | - partner_vat = partner.vat and re.match("(ES){0,1}(.*)", partner.vat).groups()[1] |
2751 | + partner_vat = partner.vat and re.match("(ES){0,1}(.*)", |
2752 | + partner.vat).groups()[1] |
2753 | partner_state_code = address.state_id and address.state_id.code or '' |
2754 | partner_country_code = address.country_id and address.country_id.code or '' |
2755 | |
2756 | @@ -310,40 +406,43 @@ |
2757 | l10n_es_aeat_mod347_partner_record() |
2758 | |
2759 | |
2760 | -class l10n_es_aeat_mod347_report_add_partner_records(osv.osv): |
2761 | +class l10n_es_aeat_mod347_report_add_partner_records(orm.Model): |
2762 | """ |
2763 | Extends the report to add the partner records |
2764 | """ |
2765 | _inherit = 'l10n.es.aeat.mod347.report' |
2766 | _columns = { |
2767 | - 'partner_record_ids': fields.one2many('l10n.es.aeat.mod347.partner_record', 'report_id', 'Partner Records', |
2768 | - states = {'done': [('readonly', True)]}), |
2769 | + 'partner_record_ids': fields.one2many('l10n.es.aeat.mod347.partner_record', |
2770 | + 'report_id', 'Partner Records'), |
2771 | } |
2772 | l10n_es_aeat_mod347_report_add_partner_records() |
2773 | |
2774 | |
2775 | -class l10n_es_aeat_mod347_real_state_record(osv.osv): |
2776 | +class l10n_es_aeat_mod347_real_state_record(orm.Model): |
2777 | """ |
2778 | - Represents a real estate record for the 347 model. |
2779 | + Represents a real state record for the 347 model. |
2780 | """ |
2781 | _name = 'l10n.es.aeat.mod347.real_state_record' |
2782 | - _description = 'Real Estate Record' |
2783 | + _description = 'Real State Record' |
2784 | _rec_name = "reference" |
2785 | |
2786 | _columns = { |
2787 | - 'report_id': fields.many2one('l10n.es.aeat.mod347.report', 'AEAT 347 Report', ondelete="cascade", select=1), |
2788 | + 'report_id': fields.many2one('l10n.es.aeat.mod347.report', |
2789 | + 'AEAT 347 Report', ondelete="cascade", |
2790 | + select=1), |
2791 | |
2792 | 'partner_id': fields.many2one('res.partner', 'Partner', required=True), |
2793 | 'partner_vat': fields.char('VAT number', size=32), |
2794 | - 'representative_vat': fields.char('L.R. VAT number', size=32, help="Legal Representative VAT number"), |
2795 | + 'representative_vat': fields.char('L.R. VAT number', size=32, |
2796 | + help="Legal Representative VAT number"), |
2797 | |
2798 | - 'amount': fields.float('Amount', digits=(13,2)), |
2799 | + 'amount': fields.float('Amount', digits=(13, 2)), |
2800 | 'situation': fields.selection([ |
2801 | ('1', '1 - Spain but Basque Country and Navarra'), |
2802 | ('2', '2 - Basque Country and Navarra'), |
2803 | ('3', '3 - Spain, without catastral reference'), |
2804 | ('4', '4 - Foreign'), |
2805 | - ], 'Real estate Situation'), |
2806 | + ], 'Real state Situation'), |
2807 | 'reference': fields.char('Catastral Reference', size=25), |
2808 | # 'address_id': fields.many2one('res.partner.address', 'Address'), |
2809 | 'address_type': fields.char('Address type', size=5), |
2810 | @@ -365,7 +464,8 @@ |
2811 | 'stairway': fields.char('Stairway', size=3), |
2812 | 'floor': fields.char('Floor', size=3), |
2813 | 'door': fields.char('Door', size=3), |
2814 | - 'complement': fields.char('Complement', size=40, help="Complement (urbanization, industrial park...)"), |
2815 | + 'complement': fields.char('Complement', size=40, |
2816 | + help="Complement (urbanization, industrial park...)"), |
2817 | 'city': fields.char('City', size=30), |
2818 | 'township': fields.char('Township', size=30), |
2819 | 'township_code': fields.char('Township Code', size=5), |
2820 | @@ -373,51 +473,55 @@ |
2821 | 'postal_code': fields.char('Postal code', size=5), |
2822 | } |
2823 | _defaults = { |
2824 | - 'report_id': lambda self, cr, uid, context: context.get('report_id', None), |
2825 | - 'partner_id': lambda self, cr, uid, context: context.get('partner_id', None), |
2826 | - 'partner_vat': lambda self, cr, uid, context: context.get('partner_vat', None), |
2827 | - 'representative_vat': lambda self, cr, uid, context: context.get('representative_vat', None), |
2828 | + 'report_id': lambda self, cr, uid, context: context.get('report_id', |
2829 | + None), |
2830 | + 'partner_id': lambda self, cr, uid, context: context.get('partner_id', |
2831 | + None), |
2832 | + 'partner_vat': lambda self, cr, uid, context: context.get('partner_vat', |
2833 | + None), |
2834 | + 'representative_vat': lambda self, cr, uid, context: context.get('representative_vat', |
2835 | + None), |
2836 | } |
2837 | |
2838 | def on_change_partner_id(self, cr, uid, ids, partner_id): |
2839 | """ |
2840 | - Loads some partner data (country and vat) when the selected partner changes. |
2841 | + Loads some partner data (country and vat) |
2842 | + when the selected partner changes. |
2843 | """ |
2844 | partner_vat = '' |
2845 | if partner_id: |
2846 | partner = self.pool.get('res.partner').browse(cr, uid, partner_id) |
2847 | - partner_vat = partner.vat and re.match("(ES){0,1}(.*)", partner.vat).groups()[1] |
2848 | + partner_vat = partner.vat and re.match("(ES){0,1}(.*)", |
2849 | + partner.vat).groups()[1] |
2850 | |
2851 | return { |
2852 | - 'value': { |
2853 | - 'partner_vat': partner_vat |
2854 | + 'value': {'partner_vat': partner_vat} |
2855 | } |
2856 | - } |
2857 | l10n_es_aeat_mod347_real_state_record() |
2858 | |
2859 | |
2860 | -class l10n_es_aeat_mod347_report_add_real_state_records(osv.osv): |
2861 | +class l10n_es_aeat_mod347_report_add_real_state_records(orm.Model): |
2862 | """ |
2863 | - Extends the report to add the real estate records. |
2864 | + Extends the report to add the real state records. |
2865 | """ |
2866 | _inherit = 'l10n.es.aeat.mod347.report' |
2867 | _columns = { |
2868 | - 'real_state_record_ids': fields.one2many('l10n.es.aeat.mod347.real_state_record', 'report_id', 'Real Estate Records', |
2869 | - states = {'done': [('readonly', True)]}), |
2870 | + 'real_state_record_ids': fields.one2many('l10n.es.aeat.mod347.real_state_record', |
2871 | + 'report_id', 'Real State Records'), |
2872 | } |
2873 | l10n_es_aeat_mod347_report_add_real_state_records() |
2874 | |
2875 | |
2876 | -class l10n_es_aeat_mod347_partner_record_add_real_state_records(osv.osv): |
2877 | +class l10n_es_aeat_mod347_partner_record_add_real_state_records(orm.Model): |
2878 | """ |
2879 | - Extends the partner_records to add the real estate records. |
2880 | + Extends the partner_records to add the real state records. |
2881 | """ |
2882 | _inherit = 'l10n.es.aeat.mod347.partner_record' |
2883 | |
2884 | - |
2885 | def _get_real_state_record_ids(self, cr, uid, ids, field_name, args, context=None): |
2886 | """ |
2887 | - Get the real estate records from this record parent report for this partner. |
2888 | + Get the real state records from this record |
2889 | + parent report for this partner. |
2890 | """ |
2891 | if context is None: |
2892 | context = {} |
2893 | @@ -429,12 +533,14 @@ |
2894 | res[partner_record.id] = real_state_record_obj.search(cr, uid, [ |
2895 | ('report_id', '=', partner_record.report_id.id), |
2896 | ('partner_id', '=', partner_record.partner_id.id), |
2897 | - ]) |
2898 | + ]) |
2899 | return res |
2900 | |
2901 | - def _set_real_state_record_ids(self, cr, uid, id, field_name, values, args=None, context=None): |
2902 | + def _set_real_state_record_ids(self, cr, uid, field_name, values, |
2903 | + args=None, context=None): |
2904 | """ |
2905 | - Set the real estate records from this record parent report for this partner. |
2906 | + Set the real state records from this record |
2907 | + parent report for this partner. |
2908 | """ |
2909 | if context is None: |
2910 | context = {} |
2911 | @@ -454,12 +560,12 @@ |
2912 | 'real_state_record_ids': fields.function(_get_real_state_record_ids, |
2913 | fnct_inv=_set_real_state_record_ids, method=True, |
2914 | obj="l10n.es.aeat.mod347.real_state_record", |
2915 | - type="one2many", string='Real Estate Records', store=False), |
2916 | + type="one2many", string='Real State Records', store=False), |
2917 | } |
2918 | l10n_es_aeat_mod347_partner_record_add_real_state_records() |
2919 | |
2920 | |
2921 | -class l10n_es_aeat_mod347_invoice_record(osv.osv): |
2922 | +class l10n_es_aeat_mod347_invoice_record(orm.Model): |
2923 | """ |
2924 | Represents an invoice record. |
2925 | """ |
2926 | @@ -467,18 +573,24 @@ |
2927 | _description = 'Invoice Record' |
2928 | |
2929 | _columns = { |
2930 | - 'partner_record_id': fields.many2one('l10n.es.aeat.mod347.partner_record', 'Partner record', required=True, ondelete="cascade", select=1), |
2931 | - 'invoice_id': fields.many2one('account.invoice', 'Invoice', required=True, ondelete="cascade"), |
2932 | + 'partner_record_id': fields.many2one('l10n.es.aeat.mod347.partner_record', |
2933 | + 'Partner record', |
2934 | + required=True, ondelete="cascade", |
2935 | + select=1), |
2936 | + 'invoice_id': fields.many2one('account.invoice', |
2937 | + 'Invoice', |
2938 | + required=True, ondelete="cascade"), |
2939 | 'date': fields.date('Date'), |
2940 | 'amount': fields.float('Amount'), |
2941 | } |
2942 | _defaults = { |
2943 | - 'partner_record_id': lambda self, cr, uid, context: context.get('partner_record_id', None), |
2944 | + 'partner_record_id': lambda self, cr, uid, context: context.get('partner_record_id', |
2945 | + None), |
2946 | } |
2947 | l10n_es_aeat_mod347_invoice_record() |
2948 | |
2949 | |
2950 | -class l10n_es_aeat_mod347_cash_record(osv.osv): |
2951 | +class l10n_es_aeat_mod347_cash_record(orm.Model): |
2952 | """ |
2953 | Represents a payment record. |
2954 | """ |
2955 | @@ -486,28 +598,34 @@ |
2956 | _description = 'Cash Record' |
2957 | |
2958 | _columns = { |
2959 | - 'partner_record_id': fields.many2one('l10n.es.aeat.mod347.partner_record', 'Partner record', required=True , ondelete="cascade", select=1), |
2960 | - 'move_line_id': fields.many2one('account.move.line', 'Account move line', required=True, ondelete="cascade"), |
2961 | + 'partner_record_id': fields.many2one('l10n.es.aeat.mod347.partner_record', |
2962 | + 'Partner record', |
2963 | + required=True, |
2964 | + ondelete="cascade", select=1), |
2965 | + 'move_line_id': fields.many2one('account.move.line', |
2966 | + 'Account move line', |
2967 | + required=True, ondelete="cascade"), |
2968 | 'date': fields.date('Date'), |
2969 | 'amount': fields.float('Amount'), |
2970 | } |
2971 | _defaults = { |
2972 | - 'partner_record_id': lambda self, cr, uid, context: context.get('partner_record_id', None), |
2973 | + 'partner_record_id': lambda self, cr, uid, context: context.get('partner_record_id', |
2974 | + None), |
2975 | } |
2976 | l10n_es_aeat_mod347_cash_record() |
2977 | |
2978 | |
2979 | -class l10n_es_aeat_mod347_partner_record_add_cash_records(osv.osv): |
2980 | +class l10n_es_aeat_mod347_partner_record_add_cash_records(orm.Model): |
2981 | """ |
2982 | Extends the partner record to add the detail of invoices |
2983 | """ |
2984 | _inherit = 'l10n.es.aeat.mod347.partner_record' |
2985 | |
2986 | _columns = { |
2987 | - 'cash_record_ids': fields.one2many('l10n.es.aeat.mod347.cash_record', 'partner_record_id', 'Payment records', |
2988 | - states = {'done': [('readonly', True)]}), |
2989 | + 'cash_record_ids': fields.one2many('l10n.es.aeat.mod347.cash_record', |
2990 | + 'partner_record_id', |
2991 | + 'Payment records'), |
2992 | } |
2993 | l10n_es_aeat_mod347_partner_record_add_cash_records() |
2994 | |
2995 | - |
2996 | - |
2997 | +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
2998 | |
2999 | === modified file 'l10n_es_aeat_mod347/mod347_view.xml' (properties changed: -x to +x) |
3000 | --- l10n_es_aeat_mod347/mod347_view.xml 2013-11-23 01:47:07 +0000 |
3001 | +++ l10n_es_aeat_mod347/mod347_view.xml 2013-12-27 10:08:05 +0000 |
3002 | @@ -2,9 +2,9 @@ |
3003 | <openerp> |
3004 | <data> |
3005 | |
3006 | - <!-- ################################ |
3007 | - ### AEAT MODEL 347 PARTNER RECORD ### |
3008 | - ################################# --> |
3009 | + <!-- ########################################## |
3010 | + AEAT MODEL 347 PARTNER RECORD |
3011 | + ########################################## --> |
3012 | <!-- Tree view --> |
3013 | <record model="ir.ui.view" id="view_l10n_es_aeat_mod347_partner_record_tree"> |
3014 | <field name="name">l10n.es.aeat.mod347.partner_record.tree</field> |
3015 | @@ -30,66 +30,90 @@ |
3016 | <field name="model">l10n.es.aeat.mod347.partner_record</field> |
3017 | <field name="type">form</field> |
3018 | <field name="arch" type="xml"> |
3019 | - <form string="Partner Record"> |
3020 | + <form string="Partner Record" version="7.0"> |
3021 | <field name="report_id" invisible="1"/> |
3022 | - <notebook colspan="4"> |
3023 | + <notebook> |
3024 | <page string="Partner info"> |
3025 | - <group colspan="4"> |
3026 | - <field name="partner_id" on_change="on_change_partner_id(partner_id)" required="1" select="1" colspan="4"/> |
3027 | - <field name="partner_vat" select="1"/> |
3028 | - <field name="representative_vat" select="2"/> |
3029 | - <field name="partner_state_code"/> |
3030 | - <field name="partner_country_code"/> |
3031 | - <field name="operation_key" select="2" colspan="4"/> |
3032 | - </group> |
3033 | - <group colspan="4" col="6"> |
3034 | - <field name="amount"/> |
3035 | - <field name="cash_amount"/> |
3036 | - <field name="origin_fiscalyear_id"/> |
3037 | - <field name="real_state_transmissions_amount" /> |
3038 | - </group> |
3039 | - <group colspan="4" col="4"> |
3040 | - <field name="first_quarter"/> |
3041 | - <field name="first_quarter_real_state_transmission_amount"/> |
3042 | - <field name="second_quarter"/> |
3043 | - <field name="second_quarter_real_state_transmission_amount"/> |
3044 | - <field name="third_quarter"/> |
3045 | - <field name="third_quarter_real_state_transmission_amount"/> |
3046 | - <field name="fourth_quarter"/> |
3047 | - <field name="fourth_quarter_real_state_transmission_amount"/> |
3048 | + <group> |
3049 | + <group> |
3050 | + <field name="partner_id" on_change="on_change_partner_id(partner_id)" required="1" select="1"/> |
3051 | + <field name="partner_vat" select="1"/> |
3052 | + <field name="representative_vat" select="2"/> |
3053 | + </group> |
3054 | + <group> |
3055 | + <field name="partner_state_code"/> |
3056 | + <field name="partner_country_code"/> |
3057 | + <field name="operation_key" select="2"/> |
3058 | + </group> |
3059 | + </group> |
3060 | + <group> |
3061 | + <group> |
3062 | + <field name="origin_fiscalyear_id"/> |
3063 | + <field name="amount"/> |
3064 | + </group> |
3065 | + <group> |
3066 | + <field name="cash_amount"/> |
3067 | + <field name="real_state_transmissions_amount"/> |
3068 | + </group> |
3069 | + </group> |
3070 | + <group > |
3071 | + <group> |
3072 | + <field name="first_quarter"/> |
3073 | + <field name="second_quarter"/> |
3074 | + <field name="third_quarter"/> |
3075 | + <field name="fourth_quarter"/> |
3076 | + </group> |
3077 | + <group> |
3078 | + <field name="first_quarter_real_state_transmission_amount"/> |
3079 | + <field name="second_quarter_real_state_transmission_amount"/> |
3080 | + <field name="third_quarter_real_state_transmission_amount"/> |
3081 | + <field name="fourth_quarter_real_state_transmission_amount"/> |
3082 | + </group> |
3083 | </group> |
3084 | |
3085 | - <group colspan="4"> |
3086 | - <field name="insurance_operation"/> |
3087 | - <field name="bussiness_real_state_rent"/> |
3088 | + <group> |
3089 | + <group> |
3090 | + <field name="insurance_operation"/> |
3091 | + </group> |
3092 | + <group> |
3093 | + <field name="bussiness_real_state_rent"/> |
3094 | + </group> |
3095 | </group> |
3096 | </page> |
3097 | - <page string="Real estate info" attrs="{'invisible': [('bussiness_real_state_rent','=',False)]}"> |
3098 | + <page string="Real state info" attrs="{'invisible': [('bussiness_real_state_rent','=',False)]}"> |
3099 | <field name="real_state_record_ids" nolabel="1" context="{'report_id': report_id, 'partner_id': partner_id, 'partner_vat': partner_vat, 'representative_vat': representative_vat}"/> |
3100 | </page> |
3101 | <page string="Details"> |
3102 | - <field name="invoice_record_ids" nolabel="1" context="{'partner_record_id': active_id}" readonly="True"> |
3103 | + <field name="invoice_record_ids" context="{'partner_record_id': active_id}" readonly="True"> |
3104 | <tree string="Invoice records"> |
3105 | <field name="invoice_id" select="1"/> |
3106 | <field name="date" select="1"/> |
3107 | <field name="amount" select="1"/> |
3108 | </tree> |
3109 | - <form string="Invoice record"> |
3110 | - <field name="invoice_id" select="1" readonly="True"/> |
3111 | - <field name="date" select="1" readonly="True"/> |
3112 | - <field name="amount" select="1" readonly="True"/> |
3113 | + <form string="Invoice record" version="7.0"> |
3114 | + <group> |
3115 | + <field name="invoice_id" select="1" readonly="True"/> |
3116 | + <field name="date" select="1" readonly="True"/> |
3117 | + </group> |
3118 | + <group> |
3119 | + <field name="amount" select="1" readonly="True"/> |
3120 | + </group> |
3121 | </form> |
3122 | </field> |
3123 | - <field name="cash_record_ids" nolabel="1" context="{'partner_record_id': active_id}" readonly="True"> |
3124 | + <field name="cash_record_ids" context="{'partner_record_id': active_id}" readonly="True"> |
3125 | <tree string="Cash records"> |
3126 | <field name="move_line_id" select="1"/> |
3127 | <field name="date" select="1"/> |
3128 | <field name="amount" select="1"/> |
3129 | </tree> |
3130 | - <form string="Cash record"> |
3131 | - <field name="move_line_id" select="1" readonly="True"/> |
3132 | - <field name="date" select="1" readonly="True"/> |
3133 | - <field name="amount" select="1" readonly="True"/> |
3134 | + <form string="Cash record" version="7.0"> |
3135 | + <group> |
3136 | + <field name="move_line_id" select="1" readonly="True"/> |
3137 | + <field name="date" select="1" readonly="True"/> |
3138 | + </group> |
3139 | + <group> |
3140 | + <field name="amount" select="1" readonly="True"/> |
3141 | + </group> |
3142 | </form> |
3143 | </field> |
3144 | </page> |
3145 | @@ -109,7 +133,7 @@ |
3146 | <field name="model">l10n.es.aeat.mod347.real_state_record</field> |
3147 | <field name="type">tree</field> |
3148 | <field name="arch" type="xml"> |
3149 | - <tree string="Real Estate Records" colors=""> |
3150 | + <tree string="Real State Records" colors=""> |
3151 | <field name="partner_vat" select="1"/> |
3152 | <field name="partner_id" select="1"/> |
3153 | <field name="reference" select="2"/> |
3154 | @@ -128,47 +152,62 @@ |
3155 | <field name="model">l10n.es.aeat.mod347.real_state_record</field> |
3156 | <field name="type">form</field> |
3157 | <field name="arch" type="xml"> |
3158 | - <form string="Real Estate Record"> |
3159 | + <form string="Real State Record" version="7.0"> |
3160 | <field name="report_id" invisible="1"/> |
3161 | - <group string="Partner info" colspan="4"> |
3162 | - <field name="partner_id" on_change="on_change_partner_id(partner_id)" required="1" select="1" colspan="4"/> |
3163 | - <field name="partner_vat" select="1"/> |
3164 | - <field name="representative_vat" select="2"/> |
3165 | - </group> |
3166 | - <group string="Real estate info" colspan="4"> |
3167 | - <field name="amount"/> |
3168 | - <newline/> |
3169 | - <field name="situation" colspan="4"/> |
3170 | - <field name="reference"/> |
3171 | - </group> |
3172 | - <group string="Real estate address" colspan="4"> |
3173 | - <group colspan="4" col="6"> |
3174 | + <group string="Partner info"> |
3175 | + <group> |
3176 | + <field name="partner_id" on_change="on_change_partner_id(partner_id)" required="1" select="1"/> |
3177 | + </group> |
3178 | + <group> |
3179 | + <field name="partner_vat" select="1"/> |
3180 | + <field name="representative_vat" select="2"/> |
3181 | + </group> |
3182 | + </group> |
3183 | + <group string="Real state info"> |
3184 | + <group> |
3185 | + <field name="situation"/> |
3186 | + <field name="reference"/> |
3187 | + </group> |
3188 | + <group> |
3189 | + <field name="amount"/> |
3190 | + </group> |
3191 | + </group> |
3192 | + <group string="Real state address"> |
3193 | + <group> |
3194 | <field name="address_type"/> |
3195 | <field name="address"/> |
3196 | </group> |
3197 | - <group colspan="4" col="6"> |
3198 | + <group> |
3199 | <field name="number_type"/> |
3200 | <field name="number"/> |
3201 | <field name="number_calification"/> |
3202 | </group> |
3203 | - <group colspan="4" col="10"> |
3204 | - <field name="block"/> |
3205 | - <field name="portal"/> |
3206 | - <field name="stairway"/> |
3207 | - <field name="floor"/> |
3208 | - <field name="door"/> |
3209 | + <group> |
3210 | + <group> |
3211 | + <field name="block"/> |
3212 | + <field name="floor"/> |
3213 | + <field name="stairway"/> |
3214 | + </group> |
3215 | + <group> |
3216 | + <field name="portal"/> |
3217 | + <field name="door"/> |
3218 | + </group> |
3219 | + |
3220 | </group> |
3221 | - <group colspan="4"> |
3222 | + <group> |
3223 | <field name="complement"/> |
3224 | - <field name="city"/> |
3225 | - </group> |
3226 | - <group colspan="4" col="8"> |
3227 | - <field name="township"/> |
3228 | - <field name="township_code"/> |
3229 | - <field name="state_code"/> |
3230 | <field name="postal_code"/> |
3231 | </group> |
3232 | - </group> |
3233 | + <group> |
3234 | + <field name="city"/> |
3235 | + <field name="state_code"/> |
3236 | + |
3237 | + </group> |
3238 | + <group> |
3239 | + <field name="township"/> |
3240 | + <field name="township_code"/> |
3241 | + </group> |
3242 | + </group> |
3243 | </form> |
3244 | </field> |
3245 | </record> |
3246 | @@ -179,126 +218,145 @@ |
3247 | ### AEAT MODEL 347 ### |
3248 | ################## --> |
3249 | <!-- Tree view --> |
3250 | + |
3251 | + |
3252 | <record id="view_l10n_es_aeat_mod347_report_tree" model="ir.ui.view"> |
3253 | <field name="name">AEAT Model 347 (tree)</field> |
3254 | <field name="model">l10n.es.aeat.mod347.report</field> |
3255 | <field name="type">tree</field> |
3256 | <field name="arch" type="xml"> |
3257 | <tree string="AEAT 347 Reports"> |
3258 | - <field name="number"/> |
3259 | + <field name="number"/> |
3260 | <field name="company_id"/> |
3261 | <field name="fiscalyear_id"/> |
3262 | <field name="type"/> |
3263 | <field name="previous_number"/> |
3264 | <field name="support_type"/> |
3265 | + <field name="state"/> |
3266 | + |
3267 | </tree> |
3268 | </field> |
3269 | </record> |
3270 | - |
3271 | <!-- Form view --> |
3272 | <record id="view_l10n_es_aeat_mod347_report_form" model="ir.ui.view"> |
3273 | <field name="name">AEAT Model 347 (form)</field> |
3274 | <field name="model">l10n.es.aeat.mod347.report</field> |
3275 | <field name="type">form</field> |
3276 | <field name="arch" type="xml"> |
3277 | - <form string="AEAT 347 Report"> |
3278 | - <group string="Declaration" colspan="4"> |
3279 | - <field name="company_id" on_change="on_change_company_id(company_id)" required="1" select="1"/> |
3280 | - <field name="fiscalyear_id" select="1"/> |
3281 | - <field name="number"/> |
3282 | - <field name="support_type"/> |
3283 | + <form string="AEAT 347 Report" version="7.0"> |
3284 | + <header> |
3285 | + <button name="button_calculate" type="object" string="Calculate" states="draft"/> |
3286 | + <button name="button_recalculate" type="object" string="Recalculate" states="calculating,calculated"/> |
3287 | + <button name="button_export" type="object" string="Export to BOE" states="done"/> |
3288 | + <button name="confirm" string="Confirm" type="workflow" states="calculated" /> |
3289 | + <button name="cancel" string="Cancel" type="workflow" states="calculated,done" /> |
3290 | + <button name="action_recover" string="Draft" type="object" states="canceled" /> |
3291 | + <field name="state" select="2" widget="statusbar" |
3292 | + statusbar_visible="draft,calculated,done" statusbar_colors='{"canceled":"red","draft,calculated":"blue"}' /> |
3293 | + </header> |
3294 | + <sheet> |
3295 | + <group string="Declaration"> |
3296 | + <group> |
3297 | + <group> |
3298 | + <field name="company_id" on_change="on_change_company_id(company_id)" required="1" select="1"/> |
3299 | + <field name="fiscalyear_id" select="1"/> |
3300 | + </group> |
3301 | + <group> |
3302 | + <field name="number"/> |
3303 | + <field name="support_type"/> |
3304 | + </group> |
3305 | + </group> |
3306 | </group> |
3307 | - <notebook colspan="4"> |
3308 | + <notebook> |
3309 | <page string="General"> |
3310 | - <group string="Identification" colspan="4"> |
3311 | - <field name="company_vat" required="1"/> |
3312 | - <field name="contact_phone"/> |
3313 | - <field name="contact_name" colspan="4"/> |
3314 | - <field name="representative_vat"/> |
3315 | - </group> |
3316 | - <group string="Susbtitutive/complementary declaration" colspan="4"> |
3317 | - <field name="type"/> |
3318 | - <field name="previous_number"/> |
3319 | - </group> |
3320 | - <group string="Summary" colspan="4"> |
3321 | - <field name="total_partner_records"/> |
3322 | - <field name="total_amount"/> |
3323 | - <field name="total_real_state_records"/> |
3324 | - <field name="total_real_state_amount"/> |
3325 | - </group> |
3326 | - <group string="Calculation" colspan="4"> |
3327 | - <field name="operations_limit"/> |
3328 | - <field name="received_cash_limit"/> |
3329 | - <field name="charges_obtp_limit"/> |
3330 | - <field name="group_by_cif"/> |
3331 | - </group> |
3332 | - <group colspan="4"> |
3333 | - <field name="state" select="2" readonly="1"/> |
3334 | + <group> |
3335 | + <group string="Identification" > |
3336 | + <field name="company_vat" required="1"/> |
3337 | + <field name="contact_phone"/> |
3338 | + <field name="contact_name" /> |
3339 | + <field name="representative_vat"/> |
3340 | + </group> |
3341 | + <group string="Calculation" > |
3342 | + <field name="operations_limit" attrs="{'readonly':[('state','!=','draft')]}"/> |
3343 | + <field name="received_cash_limit" attrs="{'readonly':[('state','!=','draft')]}"/> |
3344 | + <field name="charges_obtp_limit" attrs="{'readonly':[('state','!=','draft')]}"/> |
3345 | + <field name="group_by_cif" attrs="{'readonly':[('state','!=','draft')]}" /> |
3346 | + <field name="only_supplier" attrs="{'readonly':[('state','!=','draft')]}" /> |
3347 | + </group> |
3348 | + |
3349 | + </group> |
3350 | + <group> |
3351 | + <group string="Susbtitutive/complementary declaration"> |
3352 | + <field name="type"/> |
3353 | + <field name="previous_number"/> |
3354 | + </group> |
3355 | + |
3356 | + <group string="Summary"> |
3357 | + <field name="total_partner_records"/> |
3358 | + <field name="total_amount"/> |
3359 | + <field name="total_real_state_records"/> |
3360 | + <field name="total_real_state_amount"/> |
3361 | + </group> |
3362 | + |
3363 | + </group> |
3364 | + |
3365 | + <group> |
3366 | <field name="calculation_date" select="2" readonly="1"/> |
3367 | </group> |
3368 | - <group colspan="4" col="10"> |
3369 | - <button name="button_calculate" |
3370 | - type="object" |
3371 | - string="Calculate" |
3372 | - states="draft" |
3373 | - icon="gtk-execute"/> |
3374 | - <button name="button_recalculate" |
3375 | - type="object" |
3376 | - string="Recalculate" |
3377 | - states="calculating,calculated" |
3378 | - icon="gtk-execute"/> |
3379 | - <button name="button_export" |
3380 | - type="object" |
3381 | - string="Export to BOE" |
3382 | - states="done" |
3383 | - icon="gtk-execute"/> |
3384 | - <button name="confirm" string="Confirm" type="workflow" states="calculated" icon="gtk-ok"/> |
3385 | - <button name="cancel" string="Cancel" type="workflow" states="calculated,done" icon="gtk-cancel"/> |
3386 | - <button name="action_recover" string="Draft" type="object" states="canceled" icon="gtk-undo"/> |
3387 | - </group> |
3388 | </page> |
3389 | <page string="Partner records"> |
3390 | - <field name="partner_record_ids" nolabel="1" context="{'report_id': active_id}"/> |
3391 | + <field name="partner_record_ids" nolabel="1" context="{'report_id': active_id}" |
3392 | + attrs="{'readonly':[('state','!=','draft')]}"/> |
3393 | </page> |
3394 | - <page string="Real Estate records"> |
3395 | - <field name="real_state_record_ids" nolabel="1" context="{'report_id': active_id}"/> |
3396 | + <page string="Real State records"> |
3397 | + <field name="real_state_record_ids" nolabel="1" context="{'report_id': active_id}" |
3398 | + attrs="{'readonly':[('state','!=','draft')]}"/> |
3399 | </page> |
3400 | </notebook> |
3401 | + </sheet> |
3402 | </form> |
3403 | </field> |
3404 | </record> |
3405 | |
3406 | + |
3407 | <record id="view_l10n_es_aeat_mod347_report_search" model="ir.ui.view"> |
3408 | <field name="name">AEAT Model 347 (search)</field> |
3409 | <field name="model">l10n.es.aeat.mod347.report</field> |
3410 | <field name="type">search</field> |
3411 | <field name="arch" type="xml"> |
3412 | <search string="AEAT 347"> |
3413 | - <group col="8" colspan="4"> |
3414 | - <filter icon="terp-gtk-media-pause" string="Draft" domain="[('state','=','draft')]" help="Draft models"/> |
3415 | - <filter icon="gtk-execute" string="In process" domain="[('state','in',('calculating', 'calculated'))]" help="In process models"/> |
3416 | - <filter icon="terp-camera_test" string="Done" domain="[('state','=','done')]" help="Confirmed models"/> |
3417 | - <filter icon="gtk-cancel" string="Cancelled" domain="[('state', '=', 'canceled')]" help="Cancelled models"/> |
3418 | - <separator orientation="vertical"/> |
3419 | - <filter string="Fiscal Year" icon="terp-folder-orange" domain="[]" context="{'group_by':'fiscalyear_id'}"/> |
3420 | - <separator orientation="vertical"/> |
3421 | - <filter string="Company" icon="terp-personal" domain="[]" context="{'group_by':'company_id'}"/> |
3422 | + <field name="number"/> |
3423 | + <field name="type"/> |
3424 | + <field name="support_type"/> |
3425 | + <field name="fiscalyear_id"/> |
3426 | + <filter string="Draft" domain="[('state','=','draft')]" help="Draft models"/> |
3427 | + <filter string="In process" domain="[('state','in',('calculating', 'calculated'))]" help="In process models"/> |
3428 | + <filter string="Done" domain="[('state','=','done')]" help="Confirmed models"/> |
3429 | + <filter string="Cancelled" domain="[('state', '=', 'canceled')]" help="Cancelled models"/> |
3430 | + <group expand="0" string="Group By..."> |
3431 | + <filter string="Fiscal Year" domain="[]" context="{'group_by':'fiscalyear_id'}"/> |
3432 | + <filter string="Company" domain="[]" context="{'group_by':'company_id'}"/> |
3433 | </group> |
3434 | + |
3435 | <newline/> |
3436 | - <field name="number"/> |
3437 | - <field name="type"/> |
3438 | - <field name="support_type"/> |
3439 | </search> |
3440 | </field> |
3441 | </record> |
3442 | - |
3443 | <!-- Window action --> |
3444 | <record id="action_l10n_es_aeat_mod347_report" model="ir.actions.act_window"> |
3445 | <field name="name">AEAT Model 347</field> |
3446 | <field name="res_model">l10n.es.aeat.mod347.report</field> |
3447 | <field name="view_type">form</field> |
3448 | <field name="view_mode">tree,form</field> |
3449 | - <field name="help">Create and query AEAT Model 347 Reports</field> |
3450 | + <field name="help" type="html"> |
3451 | + <p class="oe_view_nocontent_create"> |
3452 | + Click to create a AEAT Model 347 Reports. |
3453 | + |
3454 | + </p><p> |
3455 | + Basado en la Orden EHA/3012/2008, de 20 de Octubre, por el que se aprueban |
3456 | + los diseños físicos y lógicos del 347. |
3457 | + </p> |
3458 | + </field> |
3459 | </record> |
3460 | |
3461 | |
3462 | |
3463 | === modified file 'l10n_es_aeat_mod347/mod347_workflow.xml' |
3464 | --- l10n_es_aeat_mod347/mod347_workflow.xml 2011-03-22 13:13:05 +0000 |
3465 | +++ l10n_es_aeat_mod347/mod347_workflow.xml 2013-12-27 10:08:05 +0000 |
3466 | @@ -10,7 +10,7 @@ |
3467 | |
3468 | |
3469 | <!-- |
3470 | - ### NODES ### |
3471 | + ### NODES ### |
3472 | --> |
3473 | <record id="act_draft" model="workflow.activity"> |
3474 | <field name="wkf_id" ref="wkf_l10n_es_aeat_mod347_report"/> |
3475 | @@ -42,7 +42,7 @@ |
3476 | |
3477 | |
3478 | <!-- |
3479 | - ### TRANSITIONS ### |
3480 | + ### TRANSITIONS ### |
3481 | --> |
3482 | <record id="trans_draft_calculate" model="workflow.transition"> |
3483 | <field name="act_from" ref="act_draft"/> |
3484 | |
3485 | === modified file 'l10n_es_aeat_mod347/report/mod347_report.rml' |
3486 | --- l10n_es_aeat_mod347/report/mod347_report.rml 2013-11-23 01:47:07 +0000 |
3487 | +++ l10n_es_aeat_mod347/report/mod347_report.rml 2013-12-27 10:08:05 +0000 |
3488 | @@ -173,7 +173,7 @@ |
3489 | <td><para style="DataLine">[[partner_record.fourth_quarter]]</para></td> |
3490 | </tr> |
3491 | <tr> |
3492 | - <td><para style="DataLineRight"> Real Estate Transmission (Q1|Q2|Q3|Q4) </para></td> |
3493 | + <td><para style="DataLineRight"> Real State Transmission (Q1|Q2|Q3|Q4) </para></td> |
3494 | <td><para style="DataLine">[[partner_record.first_quarter_real_state_transmission_amount]]</para></td> |
3495 | <td><para style="DataLine">[[partner_record.second_quarter_real_state_transmission_amount]]</para></td> |
3496 | <td><para style="DataLine">[[partner_record.third_quarter_real_state_transmission_amount]]</para></td> |
3497 | |
3498 | === modified file 'l10n_es_aeat_mod347/res_partner.py' (properties changed: -x to +x) |
3499 | --- l10n_es_aeat_mod347/res_partner.py 2013-11-22 23:44:11 +0000 |
3500 | +++ l10n_es_aeat_mod347/res_partner.py 2013-12-27 10:08:05 +0000 |
3501 | @@ -19,27 +19,21 @@ |
3502 | # |
3503 | ############################################################################## |
3504 | |
3505 | -__author__ = "Luis Manuel Angueira Blanco (Pexego)" |
3506 | - |
3507 | -""" |
3508 | -Extends the account journals to add fields used by the 347 report. |
3509 | -""" |
3510 | - |
3511 | -from osv import osv, fields |
3512 | - |
3513 | -class res_partner(osv.osv): |
3514 | - """ |
3515 | - Extends the partners to add the include_in_mod347 field |
3516 | - """ |
3517 | + |
3518 | +from openerp.osv import fields |
3519 | +from openerp.osv import orm |
3520 | + |
3521 | + |
3522 | +class res_partner(orm.Model): |
3523 | _inherit = "res.partner" |
3524 | - |
3525 | _columns = { |
3526 | - 'include_in_mod347' : fields.boolean(u"Include in 347 Report", |
3527 | + 'include_in_mod347': fields.boolean(u"Include in 347 Report", |
3528 | help="Include in AEAT 347 Model report"), |
3529 | - } |
3530 | - |
3531 | + } |
3532 | _defaults = { |
3533 | - 'include_in_mod347' : lambda *a: True, |
3534 | - } |
3535 | - |
3536 | -res_partner() |
3537 | \ No newline at end of file |
3538 | + 'include_in_mod347': lambda *a: True, |
3539 | + } |
3540 | + |
3541 | +res_partner() |
3542 | + |
3543 | +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
3544 | |
3545 | === modified file 'l10n_es_aeat_mod347/res_partner_view.xml' (properties changed: -x to +x) |
3546 | --- l10n_es_aeat_mod347/res_partner_view.xml 2013-11-22 23:44:11 +0000 |
3547 | +++ l10n_es_aeat_mod347/res_partner_view.xml 2013-12-27 10:08:05 +0000 |
3548 | @@ -1,20 +1,17 @@ |
3549 | <?xml version="1.0" encoding="utf-8"?> |
3550 | <openerp> |
3551 | <data> |
3552 | - |
3553 | - <!-- ########### |
3554 | - ### PARTNERS ### |
3555 | - ############ --> |
3556 | + <!-- PARTNERS --> |
3557 | <record id="view_partner_form_mod347" model="ir.ui.view"> |
3558 | <field name="name">Partners - Add 'include in 347'</field> |
3559 | <field name="model">res.partner</field> |
3560 | <field name="inherit_id" ref="base_vat.view_partner_form"/> |
3561 | <field name="arch" type="xml"> |
3562 | <field name="vat_subjected" position="after"> |
3563 | - <field name="include_in_mod347"/> |
3564 | + <label for="include_in_mod347"/> |
3565 | + <field name="include_in_mod347"/> |
3566 | </field> |
3567 | </field> |
3568 | </record> |
3569 | - |
3570 | </data> |
3571 | </openerp> |
3572 | |
3573 | === modified file 'l10n_es_aeat_mod347/security/ir.model.access.csv' |
3574 | --- l10n_es_aeat_mod347/security/ir.model.access.csv 2010-03-15 01:44:45 +0000 |
3575 | +++ l10n_es_aeat_mod347/security/ir.model.access.csv 2013-12-27 10:08:05 +0000 |
3576 | @@ -9,3 +9,7 @@ |
3577 | "access_l10n_es_aeat_mod347_invoice_manager","l10n_es_aeat_mod347_invoice manager","model_l10n_es_aeat_mod347_invoice_record","account.group_account_manager",1,1,1,1 |
3578 | "access_l10n_es_aeat_mod347_cash","l10n_es_aeat_mod347_cash","model_l10n_es_aeat_mod347_cash_record","account.group_account_user",1,0,0,0 |
3579 | "access_l10n_es_aeat_mod347_cash_manager","l10n_es_aeat_mod347_cash manager","model_l10n_es_aeat_mod347_cash_record","account.group_account_manager",1,1,1,1 |
3580 | +"access_l10n_es_aeat_mod347_calculate_records","l10n_es_aeat_mod347_calculate_records","model_l10n_es_aeat_mod347_calculate_records","account.group_account_user",1,0,0,0 |
3581 | +"access_l10n_es_aeat_mod347_calculate_records_manager","l10n_es_aeat_mod347_calculate_record manager","model_l10n_es_aeat_mod347_calculate_records","account.group_account_manager",1,1,1,1 |
3582 | +"access_l10n_es_aeat_mod347_export_to_boe","l10n_es_aeat_mod347_export_to_boe","model_l10n_es_aeat_mod347_export_to_boe","account.group_account_user",1,0,0,0 |
3583 | +"access_l10n_es_aeat_mod347_export_to_boe_manager","l10n_es_aeat_mod347_export_to_boe manager","model_l10n_es_aeat_mod347_export_to_boe","account.group_account_manager",1,1,1,1 |
3584 | |
3585 | === added directory 'l10n_es_aeat_mod347/static' |
3586 | === added directory 'l10n_es_aeat_mod347/static/src' |
3587 | === added directory 'l10n_es_aeat_mod347/static/src/img' |
3588 | === added file 'l10n_es_aeat_mod347/static/src/img/icon.png' |
3589 | Binary files l10n_es_aeat_mod347/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and l10n_es_aeat_mod347/static/src/img/icon.png 2013-12-27 10:08:05 +0000 differ |
3590 | === added file 'l10n_es_aeat_mod347/static/src/img/icon_source.svg' |
3591 | --- l10n_es_aeat_mod347/static/src/img/icon_source.svg 1970-01-01 00:00:00 +0000 |
3592 | +++ l10n_es_aeat_mod347/static/src/img/icon_source.svg 2013-12-27 10:08:05 +0000 |
3593 | @@ -0,0 +1,96 @@ |
3594 | +<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
3595 | +<!-- Created with Inkscape (http://www.inkscape.org/) --> |
3596 | + |
3597 | +<svg |
3598 | + xmlns:dc="http://purl.org/dc/elements/1.1/" |
3599 | + xmlns:cc="http://creativecommons.org/ns#" |
3600 | + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
3601 | + xmlns:svg="http://www.w3.org/2000/svg" |
3602 | + xmlns="http://www.w3.org/2000/svg" |
3603 | + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" |
3604 | + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" |
3605 | + id="svg2" |
3606 | + version="1.1" |
3607 | + inkscape:version="0.48.3.1 r9886" |
3608 | + width="128" |
3609 | + height="128" |
3610 | + sodipodi:docname="AEAT 347.svg"> |
3611 | + <metadata |
3612 | + id="metadata8"> |
3613 | + <rdf:RDF> |
3614 | + <cc:Work |
3615 | + rdf:about=""> |
3616 | + <dc:format>image/svg+xml</dc:format> |
3617 | + <dc:type |
3618 | + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> |
3619 | + <dc:title /> |
3620 | + </cc:Work> |
3621 | + </rdf:RDF> |
3622 | + </metadata> |
3623 | + <defs |
3624 | + id="defs6" /> |
3625 | + <sodipodi:namedview |
3626 | + pagecolor="#ffffff" |
3627 | + bordercolor="#666666" |
3628 | + borderopacity="1" |
3629 | + objecttolerance="10" |
3630 | + gridtolerance="10" |
3631 | + guidetolerance="10" |
3632 | + inkscape:pageopacity="0" |
3633 | + inkscape:pageshadow="2" |
3634 | + inkscape:window-width="1855" |
3635 | + inkscape:window-height="1176" |
3636 | + id="namedview4" |
3637 | + showgrid="false" |
3638 | + inkscape:zoom="4.6451612" |
3639 | + inkscape:cx="27.621455" |
3640 | + inkscape:cy="101.70379" |
3641 | + inkscape:window-x="65" |
3642 | + inkscape:window-y="24" |
3643 | + inkscape:window-maximized="1" |
3644 | + inkscape:current-layer="svg2" |
3645 | + fit-margin-top="0" |
3646 | + fit-margin-left="0" |
3647 | + fit-margin-right="0" |
3648 | + fit-margin-bottom="0" /> |
3649 | + <g |
3650 | + id="g3003" |
3651 | + transform="translate(-0.07356158,0)"> |
3652 | + <g |
3653 | + transform="translate(0,-3.31149)" |
3654 | + id="g2998"> |
3655 | + <rect |
3656 | + style="color:#000000;fill:#0060b2;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.51812077;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" |
3657 | + id="rect2998" |
3658 | + width="51.523285" |
3659 | + height="118.80513" |
3660 | + x="13.910543" |
3661 | + y="3.8516259" |
3662 | + ry="0" |
3663 | + transform="matrix(1,0,0.51069126,0.85976417,0,0)" /> |
3664 | + <path |
3665 | + style="fill:#ffd715;fill-opacity:1;stroke:none" |
3666 | + d="M 8.3819299,96.350865 C 15.28056,97.754835 21.012791,96.867186 27.616708,95.369146 62.09419,84.971119 95.837094,59.943837 111.39019,30.987651 c 3.18661,-6.108384 5.44624,-13.663422 7.03447,-20.85088 l 6.46605,10.776762 C 125.69568,40.01481 102.39016,63.273776 86.603152,76.12262 73.967981,86.300307 59.506348,95.700246 46.777865,100.17543 c -9.415431,3.18415 -23.576115,5.76306 -32.88781,5.87454 z" |
3667 | + id="path3000" |
3668 | + inkscape:connector-curvature="0" |
3669 | + sodipodi:nodetypes="ccccccccc" /> |
3670 | + <path |
3671 | + style="fill:#db2f34;fill-opacity:1;stroke:none" |
3672 | + d="m 24.427332,35.162809 6.945024,10.297799 C 12.399362,62.416498 10.934918,76.019681 6.2265773,90.24404 L 0,79.467276 C 3.2831165,59.062301 13.253472,46.414525 24.427332,35.162809 z" |
3673 | + id="path3021" |
3674 | + inkscape:connector-curvature="0" |
3675 | + sodipodi:nodetypes="ccccc" /> |
3676 | + </g> |
3677 | + </g> |
3678 | + <text |
3679 | + xml:space="preserve" |
3680 | + style="font-size:42.27203751px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial Bold" |
3681 | + x="33.706173" |
3682 | + y="127.48399" |
3683 | + id="text3023" |
3684 | + sodipodi:linespacing="125%"><tspan |
3685 | + sodipodi:role="line" |
3686 | + id="tspan3025" |
3687 | + x="33.706173" |
3688 | + y="127.48399">347</tspan></text> |
3689 | +</svg> |
3690 | |
3691 | === modified file 'l10n_es_aeat_mod347/wizard/__init__.py' (properties changed: -x to +x) |
3692 | --- l10n_es_aeat_mod347/wizard/__init__.py 2013-11-22 23:44:11 +0000 |
3693 | +++ l10n_es_aeat_mod347/wizard/__init__.py 2013-12-27 10:08:05 +0000 |
3694 | @@ -19,10 +19,8 @@ |
3695 | # |
3696 | ############################################################################## |
3697 | |
3698 | -__author__ = "Luis Manuel Angueira Blanco (Pexego)" |
3699 | - |
3700 | |
3701 | import calculate_mod347_records |
3702 | import export_mod347_to_boe |
3703 | |
3704 | -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
3705 | \ No newline at end of file |
3706 | +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
3707 | |
3708 | === modified file 'l10n_es_aeat_mod347/wizard/calculate_mod347_records.py' (properties changed: -x to +x) |
3709 | --- l10n_es_aeat_mod347/wizard/calculate_mod347_records.py 2013-11-22 23:44:11 +0000 |
3710 | +++ l10n_es_aeat_mod347/wizard/calculate_mod347_records.py 2013-12-27 10:08:05 +0000 |
3711 | @@ -23,15 +23,16 @@ |
3712 | # |
3713 | ############################################################################## |
3714 | |
3715 | -__author__ = "Luis Manuel Angueira Blanco (Pexego)" |
3716 | |
3717 | import threading |
3718 | import netsvc |
3719 | import time |
3720 | import re |
3721 | -from osv import osv |
3722 | - |
3723 | -class l10n_es_aeat_mod347_calculate_records(osv.osv_memory): |
3724 | +from openerp.osv import orm |
3725 | +from openerp.osv import fields |
3726 | + |
3727 | + |
3728 | +class l10n_es_aeat_mod347_calculate_records(orm.AbstractModel): |
3729 | _name = "l10n.es.aeat.mod347.calculate_records" |
3730 | _description = u"AEAT Model 347 Wizard - Calculate Records" |
3731 | |
3732 | @@ -42,11 +43,18 @@ |
3733 | self._calculate_records(cr, uid, ids, context, recalculate=False) |
3734 | |
3735 | wf_service = netsvc.LocalService("workflow") |
3736 | - wf_service.trg_validate(uid, 'l10n.es.aeat.mod347.report', ids and ids[0], 'calculate', cr) |
3737 | + wf_service.trg_validate(uid, |
3738 | + 'l10n.es.aeat.mod347.report', |
3739 | + ids and ids[0], |
3740 | + 'calculate', |
3741 | + cr) |
3742 | |
3743 | # Calculate total invoice without IRPF |
3744 | def _calculate_total_invoice(self, cr, uid, ids, context=None): |
3745 | - invoice = self.pool.get('account.invoice').browse(cr,uid,ids,context) |
3746 | + invoice = self.pool.get('account.invoice').browse(cr, |
3747 | + uid, |
3748 | + ids, |
3749 | + context) |
3750 | amount = invoice.cc_amount_untaxed |
3751 | for tax_line in invoice.tax_line: |
3752 | if tax_line.name.find('IRPF') == -1: |
3753 | @@ -60,64 +68,94 @@ |
3754 | try: |
3755 | |
3756 | partner_obj = self.pool.get('res.partner') |
3757 | - partner_address_obj = self.pool.get('res.partner.address') |
3758 | - |
3759 | + partner_address_obj = self.pool.get('res.partner') |
3760 | + |
3761 | invoice_obj = self.pool.get('account.invoice') |
3762 | |
3763 | report_obj = self.pool.get('l10n.es.aeat.mod347.report') |
3764 | - partner_record_obj = self.pool.get('l10n.es.aeat.mod347.partner_record') |
3765 | - invoice_record_obj = self.pool.get('l10n.es.aeat.mod347.invoice_record') |
3766 | + partner_record_obj = self.pool.get( |
3767 | + 'l10n.es.aeat.mod347.partner_record' |
3768 | + ) |
3769 | + invoice_record_obj = self.pool.get( |
3770 | + 'l10n.es.aeat.mod347.invoice_record' |
3771 | + ) |
3772 | |
3773 | report_obj = report_obj.browse(cr, uid, ids and ids[0]) |
3774 | |
3775 | - ## |
3776 | ## Change status to 'calculated' and set current calculate date |
3777 | report_obj.write({ |
3778 | - 'state' : 'calculating', |
3779 | - 'calculation_date' : time.strftime('%Y-%m-%d %H:%M:%S') |
3780 | + 'state': 'calculating', |
3781 | + 'calculation_date': time.strftime('%Y-%m-%d %H:%M:%S') |
3782 | }) |
3783 | |
3784 | - ## |
3785 | - ## Delete previous partner records |
3786 | - partner_record_obj.unlink(cr, uid, [r.id for r in report_obj.partner_record_ids]) |
3787 | - |
3788 | - ## |
3789 | - ## Get the cash journals (moves on this journals will be considered cash) |
3790 | - cash_journal_ids = self.pool.get('account.journal').search(cr, uid, [('cash_journal', '=', True)]) |
3791 | - |
3792 | - ## Get the fiscal year period ids of the non-special periods |
3793 | - ## (to ignore closing/opening entries) |
3794 | - period_ids = [period.id for period in report_obj.fiscalyear_id.period_ids if not period.special] |
3795 | - |
3796 | - ## |
3797 | - ## We will check every partner with include_in_mod347 |
3798 | + # Delete previous partner records |
3799 | + partner_record_obj.unlink(cr, uid, [r.id for |
3800 | + r in |
3801 | + report_obj.partner_record_ids]) |
3802 | + |
3803 | + # Get the cash journals(moves on this journals will be considered cash) |
3804 | + cash_journal_ids = self.pool.get( |
3805 | + 'account.journal' |
3806 | + ).search(cr, uid, [('cash_journal', |
3807 | + '=', |
3808 | + True)]) |
3809 | + |
3810 | + # Get the fiscal year period ids of the non-special periods |
3811 | + # (to ignore closing/opening entries) |
3812 | + period_ids = [period.id for |
3813 | + period in |
3814 | + report_obj.fiscalyear_id.period_ids if not |
3815 | + period.special] |
3816 | + |
3817 | + # We will check every partner with include_in_mod347 |
3818 | visited_partners = [] |
3819 | - partner_ids = partner_obj.search(cr, uid, [('include_in_mod347', '=', True)]) |
3820 | + if report_obj.only_supplier == True: |
3821 | + partner_ids = partner_obj.search( |
3822 | + cr, |
3823 | + uid, |
3824 | + [('include_in_mod347', '=', True), |
3825 | + ('supplier', '=', True) |
3826 | + ]) |
3827 | + else: |
3828 | + partner_ids = partner_obj.search( |
3829 | + cr, |
3830 | + uid, |
3831 | + [('include_in_mod347', '=', True)]) |
3832 | for partner in partner_obj.browse(cr, uid, partner_ids): |
3833 | if partner.id not in visited_partners: |
3834 | receivable_partner_record = False |
3835 | partner_grouped_cif = [] |
3836 | |
3837 | if partner.vat and report_obj.group_by_cif: |
3838 | - partner_grouped_cif = partner_obj.search(cr, uid, [('vat','=',partner.vat),('include_in_mod347', '=', True)]) |
3839 | + if report_obj.only_supplier == True: |
3840 | + partner_grouped_cif = partner_obj.search( |
3841 | + cr, |
3842 | + uid, |
3843 | + [('vat', '=', partner.vat), |
3844 | + ('include_in_mod347', '=', True), |
3845 | + ('supplier', '=', True) |
3846 | + ]) |
3847 | + else: |
3848 | + partner_grouped_cif = partner_obj.search( |
3849 | + cr, |
3850 | + uid, |
3851 | + [('vat', '=', partner.vat), |
3852 | + ('include_in_mod347', '=', True)]) |
3853 | else: |
3854 | partner_grouped_cif.append(partner.id) |
3855 | |
3856 | visited_partners.extend(partner_grouped_cif) |
3857 | |
3858 | - ## |
3859 | ## Search for invoices |
3860 | - # |
3861 | # We will repeat the process for sales and purchases: |
3862 | - for invoice_type, refund_type in zip(('out_invoice', 'in_invoice'), ('out_refund', 'in_refund')): |
3863 | + for invoice_type, refund_type in zip(('out_invoice', |
3864 | + 'in_invoice'), |
3865 | + ('out_refund', 'in_refund')): |
3866 | # |
3867 | - # CHECK THE SALE/PURCHASES INVOICE LIMIT ------------------- |
3868 | + # CHECK THE SALE/PURCHASES INVOICE LIMIT ------------- |
3869 | # (A and B operation keys) |
3870 | - # |
3871 | |
3872 | - # |
3873 | # Search for invoices to this partner (with account moves). |
3874 | - # |
3875 | invoice_ids = invoice_obj.search(cr, uid, [ |
3876 | ('partner_id', 'in', partner_grouped_cif), |
3877 | ('type', '=', invoice_type), |
3878 | @@ -133,16 +171,21 @@ |
3879 | invoices = invoice_obj.browse(cr, uid, invoice_ids) |
3880 | refunds = invoice_obj.browse(cr, uid, refund_ids) |
3881 | |
3882 | - ## |
3883 | ## Calculate the invoiced amount |
3884 | ## Remove IRPF tax for invoice amount |
3885 | invoice_amount = 0 |
3886 | for invoice in invoices: |
3887 | - invoice_amount += self._calculate_total_invoice(cr, uid, invoice.id, context) |
3888 | + invoice_amount += self._calculate_total_invoice(cr, |
3889 | + uid, |
3890 | + invoice.id, |
3891 | + context) |
3892 | |
3893 | refund_amount = 0 |
3894 | for invoice in refunds: |
3895 | - refund_amount += self._calculate_total_invoice(cr, uid, invoice.id, context) |
3896 | + refund_amount += self._calculate_total_invoice(cr, |
3897 | + uid, |
3898 | + invoice.id, |
3899 | + context) |
3900 | |
3901 | total_amount = invoice_amount - refund_amount |
3902 | |
3903 | @@ -151,24 +194,25 @@ |
3904 | ## we will add an partner record to the report. |
3905 | if total_amount > report_obj.operations_limit: |
3906 | if invoice_type == 'out_invoice': |
3907 | - operation_key = 'B' # Note: B = Sale operations |
3908 | + operation_key = 'B' # Note: B = Sale operations |
3909 | else: |
3910 | assert invoice_type == 'in_invoice' |
3911 | - operation_key = 'A' # Note: A = Purchase operations |
3912 | - |
3913 | - # |
3914 | + operation_key = 'A' # Note: A = Purchase operations |
3915 | # Get the default invoice address of the partner |
3916 | - # |
3917 | address = None |
3918 | - address_ids = partner_obj.address_get(cr, uid, [partner.id], ['invoice', 'default']) |
3919 | + address_ids = partner_obj.address_get(cr, |
3920 | + uid, |
3921 | + [partner.id], |
3922 | + ['invoice', |
3923 | + 'default']) |
3924 | if address_ids.get('invoice'): |
3925 | address = partner_address_obj.browse(cr, uid, address_ids.get('invoice')) |
3926 | elif address_ids.get('default'): |
3927 | - address = partner_address_obj.browse(cr, uid, address_ids.get('default')) |
3928 | + address = partner_address_obj.browse(cr, |
3929 | + uid, |
3930 | + address_ids.get('default')) |
3931 | |
3932 | - # |
3933 | # Get the partner data |
3934 | - # |
3935 | partner_vat = partner.vat and re.match(r"([A-Z]{0,2})(.*)", partner.vat).groups()[1] |
3936 | partner_state_code = address.state_id and address.state_id.code or '' |
3937 | partner_country_code = address.country_id and address.country_id.code or '' |
3938 | @@ -177,44 +221,50 @@ |
3939 | |
3940 | # Create the partner record |
3941 | partner_record = partner_record_obj.create(cr, uid, { |
3942 | - 'report_id': report_obj.id , |
3943 | - 'operation_key' : operation_key, |
3944 | + 'report_id': report_obj.id, |
3945 | + 'operation_key': operation_key, |
3946 | 'partner_id': partner.id, |
3947 | 'partner_vat': partner_vat, |
3948 | 'representative_vat': '', |
3949 | 'partner_state_code': partner_state_code, |
3950 | - 'partner_country_code' : partner_country_code, |
3951 | + 'partner_country_code': partner_country_code, |
3952 | 'amount': total_amount, |
3953 | }) |
3954 | |
3955 | if invoice_type == 'out_invoice': |
3956 | receivable_partner_record = partner_record |
3957 | |
3958 | - # |
3959 | # Add the invoices detail to the partner record |
3960 | - # |
3961 | for invoice in invoices: |
3962 | - amount = self._calculate_total_invoice(cr, uid, invoice.id, context) |
3963 | + amount = self._calculate_total_invoice(cr, |
3964 | + uid, |
3965 | + invoice.id, |
3966 | + context) |
3967 | invoice_record_obj.create(cr, uid, { |
3968 | - 'partner_record_id' : partner_record, |
3969 | + 'partner_record_id': partner_record, |
3970 | 'invoice_id': invoice.id, |
3971 | 'date': invoice.date_invoice, |
3972 | 'amount': amount, |
3973 | }) |
3974 | for invoice in refunds: |
3975 | - amount = self._calculate_total_invoice(cr, uid, invoice.id, context) |
3976 | + amount = self._calculate_total_invoice( |
3977 | + cr, |
3978 | + uid, |
3979 | + invoice.id, |
3980 | + context) |
3981 | invoice_record_obj.create(cr, uid, { |
3982 | - 'partner_record_id' : partner_record, |
3983 | + 'partner_record_id': partner_record, |
3984 | 'invoice_id': invoice.id, |
3985 | 'date': invoice.date_invoice, |
3986 | 'amount': -amount, |
3987 | }) |
3988 | |
3989 | - # |
3990 | # Search for payments received in cash from this partner. |
3991 | - # |
3992 | if cash_journal_ids: |
3993 | - cash_account_move_line_ids = self.pool.get('account.move.line').search(cr, uid, [ |
3994 | + cash_account_move_line_ids = self.pool.get('account.move.line').search( |
3995 | + cr, |
3996 | + uid, |
3997 | + [ |
3998 | ('partner_id', 'in', partner_grouped_cif), |
3999 | ('account_id', '=', partner.property_account_receivable.id), |
4000 | ('journal_id', 'in', cash_journal_ids), |
4001 | @@ -228,9 +278,7 @@ |
4002 | cash_account_move_lines = [] |
4003 | received_cash_amount = 0.0 |
4004 | |
4005 | - # |
4006 | # Add the cash detail to the partner record if over limit |
4007 | - # |
4008 | if received_cash_amount > report_obj.received_cash_limit: |
4009 | cash_moves = {} |
4010 | |
4011 | @@ -289,32 +337,35 @@ |
4012 | |
4013 | for line in cash_moves[record]: |
4014 | self.pool.get('l10n.es.aeat.mod347.cash_record').create(cr, uid, { |
4015 | - 'partner_record_id' : partner_rec, |
4016 | - 'move_line_id' : line.id, |
4017 | + 'partner_record_id': partner_rec, |
4018 | + 'move_line_id': line.id, |
4019 | 'date': line.date, |
4020 | 'amount': line.credit, |
4021 | }) |
4022 | |
4023 | if recalculate: |
4024 | report_obj.write({ |
4025 | - 'state' : 'calculated', |
4026 | - 'calculation_date' : time.strftime('%Y-%m-%d %H:%M:%S') |
4027 | + 'state': 'calculated', |
4028 | + 'calculation_date': time.strftime('%Y-%m-%d %H:%M:%S') |
4029 | }) |
4030 | - |
4031 | + |
4032 | except Exception, ex: |
4033 | raise |
4034 | |
4035 | return True |
4036 | |
4037 | - |
4038 | def calculation_threading(self, cr, uid, ids, context=None): |
4039 | if context is None: |
4040 | context = {} |
4041 | |
4042 | - threaded_calculation = threading.Thread(target=self._calculate_records, args=(cr, uid, ids, context)) |
4043 | + threaded_calculation = threading.Thread(target=self._calculate_records, args=(cr, |
4044 | + uid, |
4045 | + ids, |
4046 | + context)) |
4047 | threaded_calculation.start() |
4048 | |
4049 | return {} |
4050 | |
4051 | l10n_es_aeat_mod347_calculate_records() |
4052 | + |
4053 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
4054 | |
4055 | === modified file 'l10n_es_aeat_mod347/wizard/export_mod347_to_boe.py' (properties changed: -x to +x) |
4056 | --- l10n_es_aeat_mod347/wizard/export_mod347_to_boe.py 2013-11-22 23:44:11 +0000 |
4057 | +++ l10n_es_aeat_mod347/wizard/export_mod347_to_boe.py 2013-12-27 10:08:05 +0000 |
4058 | @@ -21,14 +21,13 @@ |
4059 | # |
4060 | ############################################################################## |
4061 | |
4062 | -__author__ = "Luis Manuel Angueira Blanco (Pexego)" |
4063 | - |
4064 | - |
4065 | -from osv import osv |
4066 | -from tools.translate import _ |
4067 | - |
4068 | - |
4069 | -class l10n_es_aeat_mod347_export_to_boe(osv.osv_memory): |
4070 | + |
4071 | +from openerp.osv import orm |
4072 | +from openerp.osv import fields |
4073 | +from openerp.tools.translate import _ |
4074 | + |
4075 | + |
4076 | +class l10n_es_aeat_mod347_export_to_boe(orm.AbstractModel): |
4077 | |
4078 | _inherit = "l10n.es.aeat.report.export_to_boe" |
4079 | _name = "l10n.es.aeat.mod347.export_to_boe" |
4080 | @@ -40,14 +39,15 @@ |
4081 | |
4082 | Format of the record: |
4083 | Tipo registro 1 – Registro de declarante: |
4084 | + |
4085 | Posiciones Descripción |
4086 | 1 Tipo de Registro |
4087 | - 2-4 Modelo Declaración |
4088 | - 5-8 Ejercicio |
4089 | - 9-17 NIF del declarante |
4090 | - 18-57 Apellidos y nombre o razón social del declarante |
4091 | + 2-4 Modelo Declaración |
4092 | + 5-8 Ejercicio |
4093 | + 9-17 NIF del declarante |
4094 | + 18-57 Apellidos y nombre o razón social del declarante |
4095 | 58 Tipo de soporte |
4096 | - 59-67 Teléfono contacto |
4097 | + 59-67 Teléfono contacto |
4098 | 68-107 Apellidos y nombre contacto |
4099 | 108-120 Número identificativo de la declaración |
4100 | 121-122 Declaración complementaria o substitutiva |
4101 | @@ -63,51 +63,70 @@ |
4102 | """ |
4103 | text = '' |
4104 | |
4105 | - text += '1' # Tipo de Registro |
4106 | - text += '347' # Modelo Declaración |
4107 | - text += self._formatString(report.fiscalyear_id.code, 4) # Ejercicio |
4108 | - text += self._formatString(report.company_vat, 9) # NIF del declarante |
4109 | - text += self._formatString(report.company_id.name, 40) # Apellidos y nombre o razón social del declarante |
4110 | - text += self._formatString(report.support_type, 1) # Tipo de soporte |
4111 | - text += self._formatString(report.contact_phone, 9) # Persona de contacto (Teléfono) |
4112 | - text += self._formatString(report.contact_name, 40) # Persona de contacto (Apellidos y nombre) |
4113 | - text += self._formatNumber(report.number, 13) # Número identificativo de la declaración |
4114 | - text += self._formatString(report.type, 2).replace('N', ' ') # Declaración complementaria o substitutiva |
4115 | - text += self._formatNumber(report.previous_number, 13) # Número identificativo de la declaración anterior |
4116 | - text += self._formatNumber(report.total_partner_records, 9) # Número total de personas y entidades |
4117 | - text += self._formatNumber(report.total_amount, 13, 2,True) # Importe total de las operaciones |
4118 | - text += self._formatNumber(report.total_real_state_records, 9) # Número total de inmuebles |
4119 | - text += self._formatNumber(report.total_real_state_amount, 13, 2) # Importe total de las operaciones de arrendamiento |
4120 | - text += 206*' ' # Blancos |
4121 | - text += self._formatString(report.representative_vat, 9) # NIF del representante legal |
4122 | - text += 88*' ' # Blancos |
4123 | - text += 13*' ' # Sello electrónico |
4124 | + # Tipo de Registro |
4125 | + text += '1' |
4126 | + # Modelo Declaración |
4127 | + text += '347' |
4128 | + # Ejercicio |
4129 | + text += self._formatString(report.fiscalyear_id.code, 4) |
4130 | + # NIF del declarante |
4131 | + text += self._formatString(report.company_vat, 9) |
4132 | + # Apellidos y nombre o razón social del declarante |
4133 | + text += self._formatString(report.company_id.name, 40) |
4134 | + # Tipo de soporte |
4135 | + text += self._formatString(report.support_type, 1) |
4136 | + # Persona de contacto (Teléfono) |
4137 | + text += self._formatString(report.contact_phone, 9) |
4138 | + # Persona de contacto (Apellidos y nombre) |
4139 | + text += self._formatString(report.contact_name, 40) |
4140 | + # Número identificativo de la declaración |
4141 | + text += self._formatNumber(report.number, 13) |
4142 | + # Declaración complementaria o substitutiva |
4143 | + text += self._formatString(report.type, 2).replace('N', ' ') |
4144 | + # Número identificativo de la declaración anterior |
4145 | + text += self._formatNumber(report.previous_number, 13) |
4146 | + # Número total de personas y entidades |
4147 | + text += self._formatNumber(report.total_partner_records, 9) |
4148 | + # Importe total de las operaciones |
4149 | + text += self._formatNumber(report.total_amount, 13, 2, True) |
4150 | + # Número total de inmuebles |
4151 | + text += self._formatNumber(report.total_real_state_records, 9) |
4152 | + # Importe total de las operaciones de arrendamiento |
4153 | + text += self._formatNumber(report.total_real_state_amount, 13, 2) |
4154 | + # Blancos |
4155 | + text += 206 * ' ' |
4156 | + # NIF del representante legal |
4157 | + text += self._formatString(report.representative_vat, 9) |
4158 | + # Blancos |
4159 | + text += 88 * ' ' |
4160 | + # Sello electrónico |
4161 | + text += 13 * ' ' |
4162 | text += '\r\n' |
4163 | |
4164 | - |
4165 | - assert len(text) == 502, _("The type 1 record must be 502 characters long") |
4166 | + assert len(text) == 502, _( |
4167 | + "The type 1 record must be 502 characters long") |
4168 | return text |
4169 | |
4170 | - |
4171 | def _get_formated_partner_record(self, report, partner_record): |
4172 | """ |
4173 | Returns a type 2, partner, formated record |
4174 | |
4175 | Format of the record: |
4176 | Tipo de Registro 2 – Registro de declarado |
4177 | + |
4178 | Posiciones Descripción |
4179 | 1 Tipo de Registro |
4180 | - 2-4 Modelo Declaración |
4181 | - 5-8 Ejercicio |
4182 | - 9-17 NIF del declarante |
4183 | - 18-26 NIF del declarado |
4184 | - 27-35 NIF del representante legal |
4185 | - 36-75 Apellidos y nombre, razón social o denominación del declarado |
4186 | + 2-4 Modelo Declaración |
4187 | + 5-8 Ejercicio |
4188 | + 9-17 NIF del declarante |
4189 | + 18-26 NIF del declarado |
4190 | + 27-35 NIF del representante legal |
4191 | + 36-75 Apellidos y nombre, razón social o denominación del declarado |
4192 | 76 Tipo de hoja |
4193 | - 77-80 Código provincia/país |
4194 | + 77-80 Código provincia/país |
4195 | 81 Blancos |
4196 | 82 Clave de operación |
4197 | - 83-98 Importe de las operaciones |
4198 | + 83-98 Importe de las operaciones |
4199 | 98 Operación de seguro |
4200 | 99 Arrendamiento local negocio |
4201 | 100-114 Importe percibido en metálico |
4202 | @@ -125,124 +144,183 @@ |
4203 | 488-500 Sello electrónico |
4204 | """ |
4205 | text = '' |
4206 | - |
4207 | - text += '2' # Tipo de Registro |
4208 | - text += '347' # Modelo Declaración |
4209 | - text += self._formatString(report.fiscalyear_id.code, 4) # Ejercicio |
4210 | - text += self._formatString(report.company_vat, 9) # NIF del declarante |
4211 | - text += self._formatString(partner_record.partner_vat, 9) # NIF del declarado |
4212 | - text += self._formatString(partner_record.representative_vat, 9) # NIF del representante legal |
4213 | - text += self._formatString(partner_record.partner_id.name, 40) # Apellidos y nombre, razón social o denominación del declarado |
4214 | - text += 'D' # Tipo de hoja: Constante ‘D’. |
4215 | - text += self._formatNumber(partner_record.partner_state_code, 2) # Código provincia |
4216 | - text += 3*' ' # Blancos |
4217 | - text += self._formatString(partner_record.operation_key, 1) # Clave de operación |
4218 | - text += self._formatNumber(partner_record.amount, 13, 2,True) # Importe de las operaciones |
4219 | - text += self._formatBoolean(partner_record.insurance_operation) # Operación de seguro |
4220 | - text += self._formatBoolean(partner_record.bussiness_real_state_rent) # Arrendamiento local negocio |
4221 | - text += self._formatNumber(partner_record.cash_amount, 13, 2) # Importe percibido en metálico |
4222 | - text += self._formatNumber(partner_record.real_state_transmissions_amount, 13, 2,True) # Importe percibido por transmisiones de inmuebles sujetas a IVA |
4223 | - text += partner_record.origin_fiscalyear_id and self._formatString(partner_record.origin_fiscalyear_id.code, 4) or 4*'0' #Año de devengo de las operaciones en efectivo |
4224 | - text += self._formatNumber(partner_record.first_quarter,13,2,True) |
4225 | - text += self._formatNumber(partner_record.first_quarter_real_state_transmission_amount,13,2,True) |
4226 | - text += self._formatNumber(partner_record.second_quarter,13,2,True) |
4227 | - text += self._formatNumber(partner_record.second_quarter_real_state_transmission_amount,13,2,True) |
4228 | - text += self._formatNumber(partner_record.third_quarter,13,2,True) |
4229 | - text += self._formatNumber(partner_record.third_quarter_real_state_transmission_amount,13,2,True) |
4230 | - text += self._formatNumber(partner_record.fourth_quarter,13,2,True) |
4231 | - text += self._formatNumber(partner_record.fourth_quarter_real_state_transmission_amount,13,2,True) |
4232 | - text += 237*' ' # Blancos |
4233 | - text += '\r\n' # Sello electrónico |
4234 | - |
4235 | - assert len(text) == 502, _("The type 2-D record (partner) must be 502 characters long") |
4236 | + # Tipo de Registro |
4237 | + text += '2' |
4238 | + # Modelo Declaración |
4239 | + text += '347' |
4240 | + # Ejercicio |
4241 | + text += self._formatString(report.fiscalyear_id.code, 4) |
4242 | + # NIF del declarante |
4243 | + text += self._formatString(report.company_vat, 9) |
4244 | + # NIF del declarado |
4245 | + text += self._formatString(partner_record.partner_vat, 9) |
4246 | + # NIF del representante legal |
4247 | + text += self._formatString(partner_record.representative_vat, 9) |
4248 | + # Apellidos y nombre, razón social o denominación del declarado |
4249 | + text += self._formatString(partner_record.partner_id.name, 40) |
4250 | + # Tipo de hoja: Constante ‘D’. |
4251 | + text += 'D' |
4252 | + # Código provincia |
4253 | + text += self._formatNumber(partner_record.partner_state_code, 2) |
4254 | + # Blancos |
4255 | + text += 3 * ' ' |
4256 | + # Clave de operación |
4257 | + text += self._formatString(partner_record.operation_key, 1) |
4258 | + # Importe de las operaciones |
4259 | + text += self._formatNumber(partner_record.amount, 13, 2, True) |
4260 | + # Operación de seguro |
4261 | + text += self._formatBoolean(partner_record.insurance_operation) |
4262 | + # Arrendamiento local negocio |
4263 | + text += self._formatBoolean(partner_record.bussiness_real_state_rent) |
4264 | + # Importe percibido en metálico |
4265 | + text += self._formatNumber(partner_record.cash_amount, 13, 2) |
4266 | + # Importe percibido por transmisiones de inmuebles sujetas a IVA |
4267 | + text += self._formatNumber(partner_record.real_state_transmissions_amount, 13, 2, True) |
4268 | + # Año de devengo de las operaciones en efectivo |
4269 | + text += partner_record.origin_fiscalyear_id and self._formatString(partner_record.origin_fiscalyear_id.code, 4) or 4*'0' |
4270 | + # Importe de las operaciones del primer trimestre |
4271 | + text += self._formatNumber(partner_record.first_quarter, 13, 2, True) |
4272 | + # Importe percibido por transmisiones de inmuebles sujates a Iva Primer Trimestre |
4273 | + text += self._formatNumber(partner_record.first_quarter_real_state_transmission_amount, 13, 2, True) |
4274 | + # Importe de las operaciones del segundo trimestre |
4275 | + text += self._formatNumber(partner_record.second_quarter, 13, 2, True) |
4276 | + # Importe percibido por transmisiones de inmuebles sujates a Iva Segundo Trimestre |
4277 | + text += self._formatNumber(partner_record.second_quarter_real_state_transmission_amount, 13, 2, True) |
4278 | + # Importe de las operaciones del tercer trimestre |
4279 | + text += self._formatNumber(partner_record.third_quarter, 13, 2, True) |
4280 | + # Importe percibido por transmisiones de inmuebles sujates a Iva Tercer Trimestre |
4281 | + text += self._formatNumber(partner_record.third_quarter_real_state_transmission_amount, 13, 2, True) |
4282 | + # Importe de las operaciones del cuarto trimestre |
4283 | + text += self._formatNumber(partner_record.fourth_quarter, 13, 2, True) |
4284 | + # Importe percibido por transmisiones de inmuebles sujates a Iva Cuarto Trimestre |
4285 | + text += self._formatNumber(partner_record.fourth_quarter_real_state_transmission_amount, 13, 2, True) |
4286 | + # Blancos |
4287 | + text += 237 * ' ' |
4288 | + # Sello electrónico |
4289 | + text += '\r\n' |
4290 | + |
4291 | + assert len(text) == 502, _( |
4292 | + "The type 2-D record (partner) must be 502 characters long") |
4293 | return text |
4294 | |
4295 | - |
4296 | def _get_formated_real_state_record(self, report, partner_record): |
4297 | """ |
4298 | - Returns a type 2, real estate, formated record |
4299 | - |
4300 | + Returns a type 2, real state, formated record |
4301 | Format of the record: |
4302 | Tipo de Registro 2 – Registro de inmueble |
4303 | + |
4304 | Posiciones Descripción |
4305 | - 1 Tipo de Registro |
4306 | - 2-4 Modelo Declaración |
4307 | - 5-8 Ejercicio |
4308 | - 9-17 NIF del declarante |
4309 | - 18-26 NIF del arrendatario |
4310 | - 27-35 NIF del representante legal |
4311 | - 36-75 Apellidos y nombre, razón social o denominación del declarado |
4312 | - 76 Tipo de hoja |
4313 | - 77-99 Blancos |
4314 | - 100-114 Importe de la operación |
4315 | - 115 Situación del inmueble |
4316 | - 116-140 Referencia catastral |
4317 | - 141-333 Dirección y datos del inmueble |
4318 | - 141–145 TIPO DE VÍA |
4319 | - 146–195 NOMBRE VÍA PUBLICA |
4320 | - 196–198 TIPO DE NUMERACIÓN |
4321 | - 199–203 NUMERO DE CASA |
4322 | - 204-206 CALIFICADOR DEL NUMERO |
4323 | - 207–209 BLOQUE |
4324 | - 210–212 PORTAL |
4325 | - 213–215 ESCALERA |
4326 | - 216–218 PLANTA O PISO |
4327 | - 219–221 PUERTA |
4328 | - 222–261 COMPLEMENTO. |
4329 | - 262–291 LOCALIDAD O POBLACIÓN. |
4330 | - 292–321 MUNICIPIO |
4331 | - 322–326 CODIGO DE MUNICIPIO |
4332 | - 327-328 CODIGO PROVINCIA |
4333 | - 329-333 CODIGO POSTAL |
4334 | - 334-500 Blancos |
4335 | + 1 Tipo de Registro |
4336 | + 2-4 Modelo Declaración |
4337 | + 5-8 Ejercicio |
4338 | + 9-17 NIF del declarante |
4339 | + 18-26 NIF del arrendatario |
4340 | + 27-35 NIF del representante legal |
4341 | + 36-75 Apellidos y nombre, razón social o denominación del declarado |
4342 | + 76 Tipo de hoja |
4343 | + 77-99 Blancos |
4344 | + 100-114 Importe de la operación |
4345 | + 115 Situación del inmueble |
4346 | + 116-140 Referencia catastral |
4347 | + 141-333 Dirección y datos del inmueble |
4348 | + 141–145 TIPO DE VÍA |
4349 | + 146–195 NOMBRE VÍA PUBLICA |
4350 | + 196–198 TIPO DE NUMERACIÓN |
4351 | + 199–203 NUMERO DE CASA |
4352 | + 204-206 CALIFICADOR DEL NUMERO |
4353 | + 207–209 BLOQUE |
4354 | + 210–212 PORTAL |
4355 | + 213–215 ESCALERA |
4356 | + 216–218 PLANTA O PISO |
4357 | + 219–221 PUERTA |
4358 | + 222–261 COMPLEMENTO. |
4359 | + 262–291 LOCALIDAD O POBLACIÓN. |
4360 | + 292–321 MUNICIPIO |
4361 | + 322–326 CODIGO DE MUNICIPIO |
4362 | + 327-328 CODIGO PROVINCIA |
4363 | + 329-333 CODIGO POSTAL |
4364 | + 334-500 Blancos |
4365 | """ |
4366 | text = '' |
4367 | - |
4368 | - text += '2' # Tipo de Registro |
4369 | - text += '347' # Modelo Declaración |
4370 | - text += self._formatString(report.fiscalyear_id.code, 4) # Ejercicio |
4371 | - text += self._formatString(report.company_vat, 9) # NIF del declarante |
4372 | - text += self._formatString(partner_record.partner_vat, 9) # NIF del declarado |
4373 | - text += self._formatString(partner_record.representative_vat, 9) # NIF del representante legal |
4374 | - text += self._formatString(partner_record.partner_id.name, 40) # Apellidos y nombre, razón social o denominación del declarado |
4375 | - text += 'I' # Tipo de hoja: Constante ‘I’. |
4376 | - text += 23*' ' # Blancos |
4377 | - text += self._formatNumber(partner_record.amount, 13, 2) # Importe de las operaciones |
4378 | - text += self._formatNumber(partner_record.situation, 1) # Situación del inmueble |
4379 | - text += self._formatString(partner_record.reference, 25) # Referencia catastral |
4380 | - text += self._formatString(partner_record.address_type, 5) # TIPO DE VÍA |
4381 | - text += self._formatString(partner_record.address, 50) # NOMBRE VÍA PUBLICA |
4382 | - text += self._formatString(partner_record.number_type, 3) # TIPO DE NUMERACIÓN |
4383 | - text += self._formatNumber(partner_record.number, 5) # NUMERO DE CASA |
4384 | - text += self._formatString(partner_record.number_calification, 3) # CALIFICADOR DEL NUMERO |
4385 | - text += self._formatString(partner_record.block, 3) # BLOQUE |
4386 | - text += self._formatString(partner_record.portal, 3) # PORTAL |
4387 | - text += self._formatString(partner_record.stairway, 3) # ESCALERA |
4388 | - text += self._formatString(partner_record.floor, 3) # PLANTA O PISO |
4389 | - text += self._formatString(partner_record.door, 3) # PUERTA |
4390 | - text += self._formatString(partner_record.complement, 40) # COMPLEMENTO |
4391 | - text += self._formatString(partner_record.city, 30) # LOCALIDAD O POBLACIÓN |
4392 | - text += self._formatString(partner_record.township, 30) # MUNICIPIO |
4393 | - text += self._formatString(partner_record.township_code, 5) # CODIGO DE MUNICIPIO |
4394 | - text += self._formatString(partner_record.state_code, 2) # CODIGO PROVINCIA |
4395 | - text += self._formatString(partner_record.postal_code, 5) # CODIGO POSTAL |
4396 | - text += 167*' ' # Blancos |
4397 | - text += '\r\n' # Sello electrónico |
4398 | - |
4399 | - assert len(text) == 502, _("The type 2-I record (real estate) must be 502 characters long") |
4400 | + # Tipo de Registro |
4401 | + text += '2' |
4402 | + # Modelo Declaración |
4403 | + text += '347' |
4404 | + # Ejercicio |
4405 | + text += self._formatString(report.fiscalyear_id.code, 4) |
4406 | + # NIF del declarante |
4407 | + text += self._formatString(report.company_vat, 9) |
4408 | + # NIF del declarado |
4409 | + text += self._formatString(partner_record.partner_vat, 9) |
4410 | + # NIF del representante legal |
4411 | + text += self._formatString(partner_record.representative_vat, 9) |
4412 | + # Apellidos y nombre, razón social o denominación del declarado |
4413 | + text += self._formatString(partner_record.partner_id.name, 40) |
4414 | + # Tipo de hoja: Constante ‘I’. |
4415 | + text += 'I' |
4416 | + # Blancos |
4417 | + text += 23 * ' ' |
4418 | + # Importe de las operaciones |
4419 | + text += self._formatNumber(partner_record.amount, 13, 2) |
4420 | + # Situación del inmueble |
4421 | + text += self._formatNumber(partner_record.situation, 1) |
4422 | + # Referencia catastral |
4423 | + text += self._formatString(partner_record.reference, 25) |
4424 | + # TIPO DE VÍA |
4425 | + text += self._formatString(partner_record.address_type, 5) |
4426 | + # NOMBRE VÍA PUBLICA |
4427 | + text += self._formatString(partner_record.address, 50) |
4428 | + # TIPO DE NUMERACION |
4429 | + text += self._formatString(partner_record.number_type, 3) |
4430 | + # NUMERO DE CASA |
4431 | + text += self._formatNumber(partner_record.number, 5) |
4432 | + # CALIFICADOR DEL NUMERO |
4433 | + text += self._formatString(partner_record.number_calification, 3) |
4434 | + # BLOQUE |
4435 | + text += self._formatString(partner_record.block, 3) |
4436 | + # PORTAL |
4437 | + text += self._formatString(partner_record.portal, 3) |
4438 | + # ESCALERA |
4439 | + text += self._formatString(partner_record.stairway, 3) |
4440 | + # PLANTA O PISO |
4441 | + text += self._formatString(partner_record.floor, 3) |
4442 | + # PUERTA |
4443 | + text += self._formatString(partner_record.door, 3) |
4444 | + # COMPLEMENTO |
4445 | + text += self._formatString(partner_record.complement, 40) |
4446 | + # LOCALIDAD O POBLACIÓN |
4447 | + text += self._formatString(partner_record.city, 30) |
4448 | + # MUNICIPIO |
4449 | + text += self._formatString(partner_record.township, 30) |
4450 | + # CODIGO DE MUNICIPIO |
4451 | + text += self._formatString(partner_record.township_code, 5) |
4452 | + # CODIGO PROVINCIA |
4453 | + text += self._formatString(partner_record.state_code, 2) |
4454 | + # CODIGO POSTAL |
4455 | + text += self._formatString(partner_record.postal_code, 5) |
4456 | + # Blancos |
4457 | + text += 167 * ' ' |
4458 | + # Sello electrónico |
4459 | + text += '\r\n' |
4460 | + |
4461 | + assert len(text) == 502, _( |
4462 | + "The type 2-I record (real state) must be 502 characters long") |
4463 | return text |
4464 | |
4465 | - |
4466 | def _get_formated_other_records(self, report): |
4467 | file_contents = '' |
4468 | |
4469 | for real_state_record in report.real_state_record_ids: |
4470 | - file_contents += self._get_formated_real_state_record(report, real_state_record) |
4471 | + file_contents += self._get_formated_real_state_record(report, |
4472 | + real_state_record) |
4473 | |
4474 | return file_contents |
4475 | - |
4476 | |
4477 | def _export_boe_file(self, cr, uid, ids, object_to_export, model=None, context=None): |
4478 | - return super(l10n_es_aeat_mod347_export_to_boe, self)._export_boe_file(cr, uid, ids, object_to_export, model='347') |
4479 | + return super(l10n_es_aeat_mod347_export_to_boe, self)._export_boe_file(cr, |
4480 | + uid, |
4481 | + ids, |
4482 | + object_to_export, |
4483 | + model='347') |
4484 | |
4485 | l10n_es_aeat_mod347_export_to_boe() |
Hola Pedro:
Al final he borrado todo, actualizado la rama de la localizacion y vuelto a meter el modulo. Me daba conflictos y hacia el merge y me los daba tambien en el modulo 347.
Tal y como indicabas en la revision anterior, he agregado el icono png transparente y el svg como icon_source.
Un saludo