Merge lp:~asertigs/openerp-spain/7.0-l10n_es_aeat_mod340-binversion into lp:~openerp-spain-team/openerp-spain/7.0
- 7.0-l10n_es_aeat_mod340-binversion
- Merge into 7.0
Status: | Rejected |
---|---|
Rejected by: | Pedro Manuel Baeza |
Proposed branch: | lp:~asertigs/openerp-spain/7.0-l10n_es_aeat_mod340-binversion |
Merge into: | lp:~openerp-spain-team/openerp-spain/7.0 |
Diff against target: |
4092 lines (+1996/-803) (has conflicts) 13 files modified
l10n_es_aeat_mod340/__openerp__.py (+13/-5) l10n_es_aeat_mod340/account.py (+216/-151) l10n_es_aeat_mod340/account_invoice.py (+74/-0) l10n_es_aeat_mod340/account_view.xml (+33/-4) l10n_es_aeat_mod340/i18n/es.po (+285/-318) l10n_es_aeat_mod340/i18n/l10n_es_aeat_mod340.pot (+249/-168) l10n_es_aeat_mod340/mod340.py (+174/-38) l10n_es_aeat_mod340/mod340_view.xml (+342/-0) l10n_es_aeat_mod340/res_partner.py (+1/-3) l10n_es_aeat_mod340/security/ir.model.access.csv (+2/-0) l10n_es_aeat_mod340/taxes_common.xml (+284/-0) l10n_es_aeat_mod340/wizard/calculate_mod340_records.py (+148/-75) l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py (+175/-41) Text conflict in l10n_es_aeat_mod340/__openerp__.py Text conflict in l10n_es_aeat_mod340/account_view.xml Text conflict in l10n_es_aeat_mod340/i18n/es.po Text conflict in l10n_es_aeat_mod340/mod340_view.xml Contents conflict in l10n_es_aeat_mod340/taxes_data.xml |
To merge this branch: | bzr merge lp:~asertigs/openerp-spain/7.0-l10n_es_aeat_mod340-binversion |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Pedro Manuel Baeza | Pending | ||
Review via email: mp+221637@code.launchpad.net |
Commit message
Description of the change
Soporte para bienes de inversión, IVA agrario, arreglo de bugs y adaptación a v7
Más info: https:/
Pedro Manuel Baeza (pedro.baeza) wrote : | # |
Unmerged revisions
- 462. By Pablo <pablo@pablo-pc>
-
[IMP] Para determinar las claves de una factura se tiene ahora en cuenta primero la línea de mayor importe
[FIX] Los registros de IVA se crean ahora con clave B si la factura tiene marcado el check de resumen de tickets
[IMP] Mejorado el mensaje de error cuando no se puede determinar el tipo de una línea de impuesto - 461. By Pablo <pablo@pablo-pc>
-
[FIX] Eliminado código basura que faltó por quitar en la anterior revisión al eliminar la clave amount_tax
[FIX] Problema con los signos de las bases surgido al soportar moneda distinta a la de la compañía
[MOD] Se permite un descuadre de 1 céntimo al comprobar las bases de los impuestos contra el subtotal de la factura - 460. By Pablo <pablo@pablo-pc>
-
[ADD] Añadida opción tiques / factura simplificada a las claves operacionales
[FIX] Arreglada comparación de las bases cuando las bases sumaban 0 (-0.0 != 0.0 en string)
[FIX] Ahora se tiene en cuenta que la moneda de la factura pueda ser distinta de la de la empresa - 459. By Pablo <pablo@pablo-pc>
-
[ADD] chart_update para cargar las claves de libro y operación
[ADD] Traducción - 458. By Pablo <pablo@pablo-pc>
-
[FIX] Problema en el cálculo de totales cuando no hay ningún registro en el modelo
[FIX] Descuadre en las cuotas debido al recuento doble de las cuotas en compras intracomunitarias
[FIX] Arreglado descuadre en el total de las bases por la separación en líneas de impuesto distintas de un mismo impuesto sobre bases de distinto signo que hace OpenERP - 457. By Pablo <pablo@pablo-pc>
-
[FIX] Eliminada opción obsoleta "select" de las vistas
[FIX] Duplicidad en la fecha de cálculo en la vista
[FIX] Eliminada redeclaración de la fecha de cálculo que la convertía en date (en lugar de datetime)
[FIX] Corregido el cálculo de los sumatorios de registros y totales (campos funcionales) y eliminados los sumatorios manuales que se hacían en el calculate, que eran código basura
[FIX] Eliminado código obsoleto en vistas - 456. By Pablo <pablo@pablo-pc>
-
[ADD] Añadidos campos de clave operacional y clave de libro a los registros de factura (emitida, recibida, bienes, intra) e impuestos que determinan la clasificación de los registros de IVA.
[MOD] El campo mod340 en los códigos de impuesto ha pasado a ser funcional almacenado, dependiendo de la clave de libro de los impuestos. Si algún impuesto que use un código para su base tiene asignada una clave de libro, el código se considera que debe ser incluido en el 340
[FIX] Ahora los impuestos que se desdoblan por tener impuestos hijo (ej: compras intracomunitarias) sólo generan un registro
[FIX] Cuando una factura es rectificativa y con varios impuestos predomina la clave operacional rectificativa y el número de registros en el desglose es 1 (antes salían múltiples)
[FIX] Soporte para facturas con recargo de equivalencia, ya no se exporta el recargo como otro registro
[ADD] Soporte para IVA agrario: cuando se detecta un impuesto con clave operacional X, su tipo se exporta como 0%
[ADD] Soporte para facturas de bienes de inversión
[ADD] Añadida opción para aplicar o no prorrateo a los bienes de inversión, que determina si se exportarán las facturas de bienes de inversión en su libro o como simples facturas recibidas
[FIX] Ahora las claves de libro se cogen del modelo calculado y no son valores fijos en la exportación a fichero[IMP/TODO] Añadida función para la exportación de fechas que falta mover a l10n_es_aeat
[TODO] Algunos campos de la exportación de los registros de bienes de inversión. Más información en la descripción de la función
[TODO] Account chart update para cargar claves de libro y operacionales
Preview Diff
1 | === modified file 'l10n_es_aeat_mod340/__openerp__.py' | |||
2 | --- l10n_es_aeat_mod340/__openerp__.py 2014-03-21 01:45:15 +0000 | |||
3 | +++ l10n_es_aeat_mod340/__openerp__.py 2014-06-01 16:57:08 +0000 | |||
4 | @@ -26,25 +26,29 @@ | |||
5 | 26 | 'name' : 'Generación de fichero modelo 340 y libro de IVA', | 26 | 'name' : 'Generación de fichero modelo 340 y libro de IVA', |
6 | 27 | 'version' : '2.0', | 27 | 'version' : '2.0', |
7 | 28 | 'author' : 'Acysos S.L., Francisco Pascual (Ting), Nan-tic', | 28 | 'author' : 'Acysos S.L., Francisco Pascual (Ting), Nan-tic', |
8 | 29 | 'contributors': ["Aserti Global Solutions"], | ||
9 | 29 | 'website' : 'www.acysos.com, www.ting.es, www.nan-tic.com', | 30 | 'website' : 'www.acysos.com, www.ting.es, www.nan-tic.com', |
10 | 30 | 'category' : 'Localisation/Accounting', | 31 | 'category' : 'Localisation/Accounting', |
11 | 31 | 'description' : ''' | 32 | 'description' : ''' |
12 | 32 | Módulo para la presentación del modelo 340. Exportación a formato AEAT. Libro de IVA | 33 | Módulo para la presentación del modelo 340. Exportación a formato AEAT. Libro de IVA |
13 | 33 | 34 | ||
16 | 34 | Los impuestos incluidos en este modelo se indican en el Código base cuenta. Por defecto actualiza todos los código base que deban incluirse. | 35 | Los impuestos incluidos en este modelo se indican asignándoles una clave de libro. |
17 | 35 | Si el plan contable esta instalado recuerde utilizar account_chart_update para actualizar los códigos. Contabilidad y Finanzas -> Configuración -> Contabilidad Financiera -> Actualizar plan contable a partir de una plantila de plan contable | 36 | Si el plan contable esta instalado recuerde utilizar account_chart_update para actualizar los impuestos. |
18 | 37 | Contabilidad -> Configuración -> Cuentas -> Actualizar plan de cuentas | ||
19 | 36 | 38 | ||
22 | 37 | Búsqueda de facturas emitidas y recibidas. | 39 | Búsqueda de facturas emitidas, recibidas y de inversión. |
23 | 38 | Exportación a formato de AEAT de facturas emitidas y recibidas. | 40 | Exportación a formato de AEAT de facturas emitidas, recibidas y de inversión. |
24 | 39 | Exportación de facturas con varios tipos impositivos. Clave de operación C. | 41 | Exportación de facturas con varios tipos impositivos. Clave de operación C. |
25 | 40 | Facturas intracomunitarias excepto las operaciones a las que hace referencia el artículo 66 del RIVA que tienen un tratamiento especial. | 42 | Facturas intracomunitarias excepto las operaciones a las que hace referencia el artículo 66 del RIVA que tienen un tratamiento especial. |
26 | 41 | Facturas rectificativas. | 43 | Facturas rectificativas. |
27 | 42 | Facturas resumen de tiques. | 44 | Facturas resumen de tiques. |
28 | 45 | Recargos de equivalencia. | ||
29 | 43 | Permite imprimir el libro de IVA, basado en la misma legislación. | 46 | Permite imprimir el libro de IVA, basado en la misma legislación. |
30 | 44 | 47 | ||
31 | 48 | |||
32 | 45 | --- COSAS PENDIENTES (TODO LIST) ---------------------------------------------- | 49 | --- COSAS PENDIENTES (TODO LIST) ---------------------------------------------- |
33 | 46 | 50 | ||
35 | 47 | Facturas bienes de inversión | 51 | Facturas bienes de inversión: la prorrata anual definitiva hay que introducirla a mano una vez calculado el modelo. Integrar con módulo assets |
36 | 48 | Facturas intracomunitarias. Operaciones a las que hace referencia el artículo 66 del RIVA. | 52 | Facturas intracomunitarias. Operaciones a las que hace referencia el artículo 66 del RIVA. |
37 | 49 | Asientos contables de resumen de tiques | 53 | Asientos contables de resumen de tiques |
38 | 50 | Exportación de asientos resumen de facturas | 54 | Exportación de asientos resumen de facturas |
39 | @@ -67,8 +71,12 @@ | |||
40 | 67 | 'mod340_sequence.xml', | 71 | 'mod340_sequence.xml', |
41 | 68 | 'account_invoice_view.xml', | 72 | 'account_invoice_view.xml', |
42 | 69 | 'account_view.xml', | 73 | 'account_view.xml', |
43 | 74 | <<<<<<< TREE | ||
44 | 70 | 'taxes_data.xml', | 75 | 'taxes_data.xml', |
45 | 71 | ], | 76 | ], |
46 | 77 | ======= | ||
47 | 78 | 'taxes_common.xml'], | ||
48 | 79 | >>>>>>> MERGE-SOURCE | ||
49 | 72 | 'installable' : True, | 80 | 'installable' : True, |
50 | 73 | 'active' : False, | 81 | 'active' : False, |
51 | 74 | } | 82 | } |
52 | 75 | 83 | ||
53 | === modified file 'l10n_es_aeat_mod340/account.py' | |||
54 | --- l10n_es_aeat_mod340/account.py 2014-02-09 16:33:45 +0000 | |||
55 | +++ l10n_es_aeat_mod340/account.py 2014-06-01 16:57:08 +0000 | |||
56 | @@ -21,171 +21,236 @@ | |||
57 | 21 | 21 | ||
58 | 22 | from openerp.osv import orm, fields | 22 | from openerp.osv import orm, fields |
59 | 23 | from openerp.tools.translate import _ | 23 | from openerp.tools.translate import _ |
67 | 24 | 24 | from collections import defaultdict | |
68 | 25 | class account_tax_code_template(orm.Model): | 25 | |
69 | 26 | 26 | class account_tax(orm.Model): | |
70 | 27 | _inherit = 'account.tax.code.template' | 27 | |
71 | 28 | 28 | _inherit = 'account.tax' | |
72 | 29 | _columns = { | 29 | |
73 | 30 | 'mod340':fields.boolean("Include in mod340"), | 30 | def _allowed_pct_by_ledger(self, cr, uid, context=None): |
74 | 31 | tax_obj = self.pool.get('account.tax') | ||
75 | 32 | res = defaultdict(set) | ||
76 | 33 | tax_ids = tax_obj.search(cr, uid, [('ledger_key','!=',False)], context=context) | ||
77 | 34 | for tax in tax_obj.browse(cr, uid, tax_ids, context): | ||
78 | 35 | res[tax.ledger_key].add(abs(tax.amount)) | ||
79 | 36 | return res | ||
80 | 37 | |||
81 | 38 | |||
82 | 39 | def get_operation_keys(self, cr, uid, context=None): | ||
83 | 40 | return [('-', u'Recargo de equivalencia'), | ||
84 | 41 | (' ', u'Operación habitual'), | ||
85 | 42 | ('F', u'F-Adquisiciones realizadas por las agencias de viajes directamente en interés del viajero (Régimen especial de agencias de viajes)'), | ||
86 | 43 | ('H', u'H-Régimen especial de oro de inversión'), | ||
87 | 44 | ('I', u'I-Inversión del Sujeto pasivo (ISP)'), | ||
88 | 45 | ('J', u'J-Tiques / Factura simplificada'), | ||
89 | 46 | ('L', u'L-Adquisiciones a comerciantes minoristas del IGIC'), | ||
90 | 47 | ('N', u'N-Facturación de las prestaciones de servicios de agencias de viaje que actúan como mediadoras en nombre y por cuenta ajena'), | ||
91 | 48 | ('P', u'P-Adquisiciones intracomunitarias de bienes.'), | ||
92 | 49 | ('Q', u'Q-Operaciones a las que se aplique el Régimen especial de bienes usados, objetos de arte, antigüedades y objetos de colección'), | ||
93 | 50 | ('R', u'R-Operación de arrendamiento de local de negocio'), | ||
94 | 51 | ('S', u'S-Subvenciones, auxilios o ayudas satisfechas o recibidas, tanto por parte de Administraciones públicas como de entidades privadas'), | ||
95 | 52 | ('V', u'V-Compras de Agencias viajes'), | ||
96 | 53 | ('W', u'W-Operaciones sujetas al Impuesto sobre la Producción, los Servicios y la Importación en las Ciudades de Ceuta y Melilla'), | ||
97 | 54 | ('X', u'X-Operaciones por las que los empresarios o profesionales que satisfagan compensaciones agrícolas, ganaderas y/o pesqueras hayan expedido el recibo correspondiente'),] | ||
98 | 55 | |||
99 | 56 | def _get_operation_keys(self, cr, uid, context=None): | ||
100 | 57 | return self.get_operation_keys(cr, uid, context=context) | ||
101 | 58 | |||
102 | 59 | def get_ledger_keys(self, cr, uid, context=None): | ||
103 | 60 | return [('E', u'E-Libro registro de facturas expedidas.'), | ||
104 | 61 | ('F', u'F-Libro registro de facturas expedidas IGIC.'), | ||
105 | 62 | ('R', u'R-Libro registro de facturas recibidas.'), | ||
106 | 63 | ('I', u'I-Libro registro de bienes de inversión.'), | ||
107 | 64 | ('J', u'J-Libro de registro de bienes de inversión IGIC.'), | ||
108 | 65 | ('S', u'S-Libro de registro de facturas recibidas IGIC.'), | ||
109 | 66 | ('U', u'U-Libro registro de determinadas operaciones intracomunitarias.')] | ||
110 | 67 | |||
111 | 68 | def _get_ledger_keys(self, cr, uid, context=None): | ||
112 | 69 | return self.get_ledger_keys(cr, uid, context=context) | ||
113 | 70 | |||
114 | 71 | def get_ledger_keys_out(self, cr, uid, context=None): | ||
115 | 72 | return [('E', u'E-Libro registro de facturas expedidas.'), | ||
116 | 73 | ('F', u'F-Libro registro de facturas expedidas IGIC.'), | ||
117 | 74 | ('U', u'U-Libro registro de determinadas operaciones intracomunitarias.')] | ||
118 | 75 | |||
119 | 76 | def _get_ledger_keys_out(self, cr, uid, context=None): | ||
120 | 77 | return self.get_ledger_keys_out(cr, uid, context=context) | ||
121 | 78 | |||
122 | 79 | def get_ledger_keys_in(self, cr, uid, context=None): | ||
123 | 80 | return [('R', u'R-Libro registro de facturas recibidas.'), | ||
124 | 81 | ('I', u'I-Libro registro de bienes de inversión.'), | ||
125 | 82 | ('J', u'J-Libro de registro de bienes de inversión IGIC.'), | ||
126 | 83 | ('S', u'S-Libro de registro de facturas recibidas IGIC.'), | ||
127 | 84 | ('U', u'U-Libro registro de determinadas operaciones intracomunitarias.')] | ||
128 | 85 | |||
129 | 86 | def _get_ledger_keys_in(self, cr, uid, context=None): | ||
130 | 87 | return self.get_ledger_keys_in(cr, uid, context=context) | ||
131 | 88 | |||
132 | 89 | def _calc_ledger(self, cr, uid, ids, field_names, arg, context=None): | ||
133 | 90 | res = dict.fromkeys(ids, {}) | ||
134 | 91 | for tax in self.browse(cr, uid, ids, context): | ||
135 | 92 | res[tax.id]['ledger_key_out'] = False | ||
136 | 93 | res[tax.id]['ledger_key_in'] = False | ||
137 | 94 | if tax.type_tax_use == "purchase": | ||
138 | 95 | res[tax.id]['ledger_key_in'] = tax.ledger_key | ||
139 | 96 | elif tax.type_tax_use == "sale": | ||
140 | 97 | res[tax.id]['ledger_key_out'] = tax.ledger_key | ||
141 | 98 | return res | ||
142 | 99 | |||
143 | 100 | def _set_ledger(self, cr, uid, ids, field_names, field_value, arg, context): | ||
144 | 101 | if not isinstance(ids, (tuple, list)): | ||
145 | 102 | ids = [ids] | ||
146 | 103 | taxes = self.browse(cr, uid, ids, context) | ||
147 | 104 | for field in field_names: | ||
148 | 105 | if field == "ledger_key_in": | ||
149 | 106 | self.write(cr, uid, [tax.id for tax in taxes if tax.type_tax_use in ('purchase', 'all')], {'ledger_key': field_value}, context) | ||
150 | 107 | else: | ||
151 | 108 | self.write(cr, uid, [tax.id for tax in taxes if tax.type_tax_use in ('sale', 'all')], {'ledger_key': field_value}, context) | ||
152 | 109 | |||
153 | 110 | def onchange_ledger(self, cr, uid, ids, field, key, context=None): | ||
154 | 111 | value = { | ||
155 | 112 | 'ledger_key': key | ||
156 | 113 | } | ||
157 | 114 | return {'value': value} | ||
158 | 115 | |||
159 | 116 | def onchange_type_tax_use(self, cr, uid, ids, context=None): | ||
160 | 117 | value = { | ||
161 | 118 | 'ledger_key': False, | ||
162 | 119 | 'ledger_key_in': False, | ||
163 | 120 | 'ledger_key_out': False | ||
164 | 121 | } | ||
165 | 122 | return { 'value': value } | ||
166 | 123 | |||
167 | 124 | _columns = { | ||
168 | 125 | 'operation_key': fields.selection(_get_operation_keys, 'Operation Key'), | ||
169 | 126 | 'ledger_key': fields.selection(_get_ledger_keys, 'Ledger Key', help="Determines to which ledger the invoice with this tax will be assigned. Setting a value makes the tax to be accounted in 340 declaration"), | ||
170 | 127 | 'ledger_key_in': fields.function(_calc_ledger, type="selection", fnct_inv=_set_ledger, selection=_get_ledger_keys_in, string='Ledger Key', multi="ledger", | ||
171 | 128 | help="Determines to which ledger the invoice with this tax will be assigned. Setting a value makes the tax to be accounted in 340 declaration"), | ||
172 | 129 | 'ledger_key_out': fields.function(_calc_ledger, type="selection", fnct_inv=_set_ledger, selection=_get_ledger_keys_out, string='Ledger Key', multi="ledger", | ||
173 | 130 | help="Determines to which ledger the invoice with this tax will be assigned. Setting a value makes the tax to be accounted in 340 declaration"), | ||
174 | 131 | } | ||
175 | 132 | |||
176 | 133 | class account_tax_template(orm.Model): | ||
177 | 134 | |||
178 | 135 | _inherit = 'account.tax.template' | ||
179 | 136 | |||
180 | 137 | def _get_ledger_keys(self, cr, uid, context=None): | ||
181 | 138 | return self.pool.get('account.tax').get_ledger_keys(cr, uid, context=context) | ||
182 | 139 | |||
183 | 140 | def _get_operation_keys(self, cr, uid, context=None): | ||
184 | 141 | return self.pool.get('account.tax').get_operation_keys(cr, uid, context=context) | ||
185 | 142 | |||
186 | 143 | _columns = { | ||
187 | 144 | 'operation_key': fields.selection(_get_operation_keys, 'Operation Key'), | ||
188 | 145 | 'ledger_key': fields.selection(_get_ledger_keys, 'Ledger Key'), | ||
189 | 31 | } | 146 | } |
190 | 32 | 147 | ||
191 | 33 | class account_tax_code(orm.Model): | 148 | class account_tax_code(orm.Model): |
192 | 34 | 149 | ||
193 | 35 | _inherit = 'account.tax.code' | 150 | _inherit = 'account.tax.code' |
194 | 36 | 151 | ||
195 | 152 | def _calc_mod340(self, cr, uid, ids, name, args, context=None): | ||
196 | 153 | tax_obj = self.pool.get('account.tax') | ||
197 | 154 | res = {} | ||
198 | 155 | for tax in self.browse(cr, uid, ids, context=context): | ||
199 | 156 | res[tax.id] = len(tax_obj.search(cr, uid, [('base_code_id','=',tax.id),('ledger_key','!=',False)], context=context)) > 0 | ||
200 | 157 | return res | ||
201 | 158 | |||
202 | 159 | def _get_code_affected_by_tax(self, cr, uid, ids, context=None): | ||
203 | 160 | code_ids = set() | ||
204 | 161 | for tax in self.pool.get('account.tax').browse(cr, uid, ids, context=context): | ||
205 | 162 | code_ids.add(tax.base_code_id.id) | ||
206 | 163 | return list(code_ids) | ||
207 | 164 | |||
208 | 37 | _columns = { | 165 | _columns = { |
210 | 38 | 'mod340':fields.boolean("Include in mod340"), | 166 | 'mod340': fields.function(_calc_mod340, type="boolean", string="Include in mod340", |
211 | 167 | store={ | ||
212 | 168 | 'account.tax': (_get_code_affected_by_tax, ['base_code_id', 'ledger_key'], 10), | ||
213 | 169 | }) | ||
214 | 39 | } | 170 | } |
215 | 40 | 171 | ||
216 | 41 | class wizard_update_charts_accounts(orm.TransientModel): | 172 | class wizard_update_charts_accounts(orm.TransientModel): |
217 | 42 | _inherit = 'wizard.update.charts.accounts' | 173 | _inherit = 'wizard.update.charts.accounts' |
218 | 43 | 174 | ||
246 | 44 | def _find_tax_codes(self, cr, uid, wizard, context=None): | 175 | def _find_taxes(self, cr, uid, wizard, chart_template_ids, context=None): |
247 | 45 | """ | 176 | """ |
248 | 46 | Search for, and load, tax code templates to create/update. | 177 | En caso de actualizar impuestos, añade a los impuestos modificados los que |
249 | 47 | """ | 178 | tengan claves de operación o libro distintas de sus plantillas |
250 | 48 | new_tax_codes = 0 | 179 | """ |
251 | 49 | updated_tax_codes = 0 | 180 | tax_obj = self.pool['account.tax'] |
252 | 50 | tax_code_template_mapping = {} | 181 | tax_templ_obj = self.pool['account.tax.template'] |
253 | 51 | 182 | wiz_taxes_obj = self.pool['wizard.update.charts.accounts.tax'] | |
254 | 52 | tax_code_templ_obj = self.pool.get('account.tax.code.template') | 183 | res = super(wizard_update_charts_accounts, self)._find_taxes(cr, uid, wizard, chart_template_ids, context) |
255 | 53 | tax_code_obj = self.pool.get('account.tax.code') | 184 | |
256 | 54 | wiz_tax_code_obj = self.pool.get('wizard.update.charts.accounts.tax.code') | 185 | if not wizard.update_tax: |
257 | 55 | 186 | return res | |
258 | 56 | # Remove previous tax codes | 187 | updated_taxes = res['updated'] |
259 | 57 | wiz_tax_code_obj.unlink(cr, uid, wiz_tax_code_obj.search(cr, uid, [])) | 188 | tax_templ_mapping = res['mapping'] |
260 | 58 | 189 | tax_templ_ids = tax_templ_obj.search(cr, uid, | |
261 | 59 | # | 190 | [('chart_template_id', |
262 | 60 | # Search for new / updated tax codes | 191 | 'in', |
263 | 61 | # | 192 | chart_template_ids)], |
264 | 62 | root_tax_code_id = wizard.chart_template_id.tax_code_root_id.id | 193 | context=context) |
265 | 63 | children_tax_code_template = tax_code_templ_obj.search(cr, uid, | 194 | |
266 | 64 | [('parent_id', 'child_of', [root_tax_code_id])], order='id') | 195 | for tax_templ in tax_templ_obj.browse(cr, uid, tax_templ_ids, |
267 | 65 | for tax_code_template in tax_code_templ_obj.browse(cr, uid, | 196 | context=context): |
241 | 66 | children_tax_code_template): | ||
242 | 67 | # Ensure the tax code template is on the map (search for the mapped tax code id). | ||
243 | 68 | self._map_tax_code_template(cr, uid, wizard, | ||
244 | 69 | tax_code_template_mapping, | ||
245 | 70 | tax_code_template, context) | ||
268 | 71 | 197 | ||
274 | 72 | tax_code_id = tax_code_template_mapping.get(tax_code_template.id) | 198 | tax_id = self._map_tax_template(cr, uid, wizard, |
275 | 73 | if not tax_code_id: | 199 | tax_templ_mapping, |
276 | 74 | new_tax_codes += 1 | 200 | tax_templ, context=context) |
277 | 75 | wiz_tax_code_obj.create(cr, uid, { | 201 | |
278 | 76 | 'tax_code_id': tax_code_template.id, | 202 | if not tax_id: |
279 | 203 | continue | ||
280 | 204 | |||
281 | 205 | modified = False | ||
282 | 206 | notes = "" | ||
283 | 207 | tax = tax_obj.browse(cr, uid, tax_id, context=context) | ||
284 | 208 | if tax.operation_key != tax_templ.operation_key: | ||
285 | 209 | notes += _("The operation key is different.\n") | ||
286 | 210 | modified = True | ||
287 | 211 | if tax.ledger_key != tax_templ.ledger_key: | ||
288 | 212 | notes += _("The ledger key is different.\n") | ||
289 | 213 | modified = True | ||
290 | 214 | if modified: | ||
291 | 215 | wiz_tax_id = wiz_taxes_obj.search(cr, uid, [('update_chart_wizard_id','=',wizard.id),('update_tax_id','=',tax.id)], context=context) | ||
292 | 216 | if wiz_tax_id: | ||
293 | 217 | wiz_tax_line = wiz_taxes_obj.browse(cr, uid, wiz_tax_id[0], context) | ||
294 | 218 | wiz_taxes_obj.write(cr, uid, wiz_tax_line.id, {'notes': wiz_tax_line.notes + notes}, context) | ||
295 | 219 | else: | ||
296 | 220 | updated_taxes += 1 | ||
297 | 221 | wiz_taxes_obj.create(cr, uid, { | ||
298 | 222 | 'tax_id': tax_templ.id, | ||
299 | 77 | 'update_chart_wizard_id': wizard.id, | 223 | 'update_chart_wizard_id': wizard.id, |
301 | 78 | 'type': 'new', | 224 | 'type': 'updated', |
302 | 225 | 'update_tax_id': tax_id, | ||
303 | 226 | 'notes': notes, | ||
304 | 79 | }, context) | 227 | }, context) |
376 | 80 | elif wizard.update_tax_code: | 228 | |
377 | 81 | # | 229 | res['updated'] = updated_taxes |
378 | 82 | # Check the tax code for changes. | 230 | return res |
379 | 83 | # | 231 | |
380 | 84 | modified = False | 232 | def _update_taxes(self, cr, uid, wizard, log, tax_code_template_mapping, context=None): |
381 | 85 | notes = "" | 233 | """ |
382 | 86 | tax_code = tax_code_obj.browse(cr, uid, tax_code_id, context=context) | 234 | Vuelve a reprocesar las líneas de impuestos para actualizar las claves de operación y libro |
383 | 87 | 235 | """ | |
384 | 88 | if tax_code.code != tax_code_template.code: | 236 | res = super(wizard_update_charts_accounts, self)._update_taxes(cr, uid, wizard, log, tax_code_template_mapping, context) |
385 | 89 | notes += _("The code field is different.\n") | 237 | taxes = self.pool['account.tax'] |
386 | 90 | modified = True | 238 | |
387 | 91 | if tax_code.info != tax_code_template.info: | 239 | if not wizard.update_tax: |
388 | 92 | notes += _("The info field is different.\n") | 240 | return res |
389 | 93 | modified = True | 241 | |
390 | 94 | if tax_code.sign != tax_code_template.sign: | 242 | for wiz_tax in wizard.tax_ids: |
391 | 95 | notes += _("The sign field is different.\n") | 243 | tax_template = wiz_tax.tax_id |
392 | 96 | modified = True | 244 | |
393 | 97 | if tax_code.mod340 != tax_code_template.mod340: | 245 | vals_tax = { |
394 | 98 | notes += _("The Mod 340 field is different.\n") | 246 | 'operation_key': tax_template.operation_key, |
395 | 99 | modified = True | 247 | 'ledger_key': tax_template.ledger_key |
325 | 100 | |||
326 | 101 | # TODO: We could check other account fields for changes... | ||
327 | 102 | |||
328 | 103 | if modified: | ||
329 | 104 | # | ||
330 | 105 | # Tax code to update. | ||
331 | 106 | # | ||
332 | 107 | updated_tax_codes += 1 | ||
333 | 108 | wiz_tax_code_obj.create(cr, uid, { | ||
334 | 109 | 'tax_code_id': tax_code_template.id, | ||
335 | 110 | 'update_chart_wizard_id': wizard.id, | ||
336 | 111 | 'type': 'updated', | ||
337 | 112 | 'update_tax_code_id': tax_code_id, | ||
338 | 113 | 'notes': notes, | ||
339 | 114 | }, context) | ||
340 | 115 | |||
341 | 116 | return { 'new': new_tax_codes, 'updated': updated_tax_codes, | ||
342 | 117 | 'mapping': tax_code_template_mapping } | ||
343 | 118 | |||
344 | 119 | def _update_tax_codes(self, cr, uid, wizard, log, context=None): | ||
345 | 120 | """ | ||
346 | 121 | Search for, and load, tax code templates to create/update. | ||
347 | 122 | """ | ||
348 | 123 | tax_code_obj = self.pool.get('account.tax.code') | ||
349 | 124 | |||
350 | 125 | root_tax_code_id = wizard.chart_template_id.tax_code_root_id.id | ||
351 | 126 | |||
352 | 127 | new_tax_codes = 0 | ||
353 | 128 | updated_tax_codes = 0 | ||
354 | 129 | tax_code_template_mapping = {} | ||
355 | 130 | |||
356 | 131 | for wiz_tax_code in wizard.tax_code_ids: | ||
357 | 132 | tax_code_template = wiz_tax_code.tax_code_id | ||
358 | 133 | tax_code_name = (root_tax_code_id == tax_code_template.id) and wizard.company_id.name or tax_code_template.name | ||
359 | 134 | |||
360 | 135 | # Ensure the parent tax code template is on the map. | ||
361 | 136 | self._map_tax_code_template(cr, uid, wizard, | ||
362 | 137 | tax_code_template_mapping, | ||
363 | 138 | tax_code_template.parent_id, context) | ||
364 | 139 | |||
365 | 140 | # | ||
366 | 141 | # Values | ||
367 | 142 | # | ||
368 | 143 | vals = { | ||
369 | 144 | 'name': tax_code_name, | ||
370 | 145 | 'code': tax_code_template.code, | ||
371 | 146 | 'info': tax_code_template.info, | ||
372 | 147 | 'parent_id': tax_code_template.parent_id and tax_code_template_mapping.get(tax_code_template.parent_id.id), | ||
373 | 148 | 'company_id': wizard.company_id.id, | ||
374 | 149 | 'sign': tax_code_template.sign, | ||
375 | 150 | 'mod340': tax_code_template.mod340 | ||
396 | 151 | } | 248 | } |
397 | 152 | 249 | ||
437 | 153 | tax_code_id = None | 250 | if wiz_tax.type == 'updated' and wiz_tax.update_tax_id: |
438 | 154 | modified = False | 251 | taxes.write(cr, uid, [wiz_tax.update_tax_id.id], vals_tax) |
439 | 155 | 252 | # log.add(_("mod340: Updated tax %s.\n") % tax_template.name) | |
440 | 156 | if wiz_tax_code.type == 'new': | 253 | |
441 | 157 | # | 254 | #No necesitamos llevar control de taxes_pending_for_accounts ni detectar errores, ya lo hizo super |
442 | 158 | # Create the tax code | 255 | return res |
443 | 159 | # | 256 | |
405 | 160 | tax_code_id = tax_code_obj.create(cr, uid, vals) | ||
406 | 161 | log.add(_("Created tax code %s.\n") % tax_code_name) | ||
407 | 162 | new_tax_codes += 1 | ||
408 | 163 | modified = True | ||
409 | 164 | elif wizard.update_tax_code and wiz_tax_code.update_tax_code_id: | ||
410 | 165 | # | ||
411 | 166 | # Update the tax code | ||
412 | 167 | # | ||
413 | 168 | tax_code_id = wiz_tax_code.update_tax_code_id.id | ||
414 | 169 | tax_code_obj.write(cr, uid, [tax_code_id], vals) | ||
415 | 170 | log.add(_("Updated tax code %s.\n") % tax_code_name) | ||
416 | 171 | updated_tax_codes += 1 | ||
417 | 172 | modified = True | ||
418 | 173 | else: | ||
419 | 174 | tax_code_id = wiz_tax_code.update_tax_code_id and wiz_tax_code.update_tax_code_id.id | ||
420 | 175 | modified = False | ||
421 | 176 | |||
422 | 177 | # Store the tax codes on the map | ||
423 | 178 | tax_code_template_mapping[tax_code_template.id] = tax_code_id | ||
424 | 179 | |||
425 | 180 | if modified: | ||
426 | 181 | # | ||
427 | 182 | # Detect errors | ||
428 | 183 | # | ||
429 | 184 | if tax_code_template.parent_id and not tax_code_template_mapping.get(tax_code_template.parent_id.id): | ||
430 | 185 | log.add(_("Tax code %s: The parent tax code %s can not be set.\n") % (tax_code_name, tax_code_template.parent_id.name), True) | ||
431 | 186 | |||
432 | 187 | return { | ||
433 | 188 | 'new': new_tax_codes, | ||
434 | 189 | 'updated': updated_tax_codes, | ||
435 | 190 | 'mapping': tax_code_template_mapping | ||
436 | 191 | } | ||
444 | 192 | 257 | ||
445 | === modified file 'l10n_es_aeat_mod340/account_invoice.py' | |||
446 | --- l10n_es_aeat_mod340/account_invoice.py 2014-02-09 16:33:45 +0000 | |||
447 | +++ l10n_es_aeat_mod340/account_invoice.py 2014-06-01 16:57:08 +0000 | |||
448 | @@ -21,10 +21,84 @@ | |||
449 | 21 | 21 | ||
450 | 22 | from openerp.osv import orm, fields | 22 | from openerp.osv import orm, fields |
451 | 23 | from openerp.tools.translate import _ | 23 | from openerp.tools.translate import _ |
452 | 24 | from openerp.tools.float_utils import float_round | ||
453 | 24 | 25 | ||
454 | 25 | class account_invoice(orm.Model): | 26 | class account_invoice(orm.Model): |
455 | 26 | _inherit = 'account.invoice' | 27 | _inherit = 'account.invoice' |
456 | 27 | 28 | ||
457 | 29 | def get_340_classification(self, cr, uid, invoice_id, context=None): | ||
458 | 30 | invoice = self.browse(cr, uid, invoice_id, context) | ||
459 | 31 | if invoice.is_ticket_summary: | ||
460 | 32 | return 'E', 'B' | ||
461 | 33 | #Intentamos determinar la clasificación primero en función de la línea de más importe | ||
462 | 34 | max_line = max(invoice.invoice_line, key=lambda x: abs(x.price_subtotal)) | ||
463 | 35 | taxes = filter(lambda x: x.ledger_key and x.operation_key != '-', max_line.invoice_line_tax_id) | ||
464 | 36 | if taxes: | ||
465 | 37 | return taxes[0].ledger_key, (taxes[0].operation_key or ' ') | ||
466 | 38 | #y si no cualquier otra | ||
467 | 39 | for line in invoice.invoice_line: | ||
468 | 40 | taxes = filter(lambda x: x.ledger_key and x.operation_key != '-', line.invoice_line_tax_id) | ||
469 | 41 | if taxes: | ||
470 | 42 | return taxes[0].ledger_key, (taxes[0].operation_key or ' ') | ||
471 | 43 | raise orm.except_orm( | ||
472 | 44 | 'Error', | ||
473 | 45 | 'No se pudo determinar la clasificacion de la factura %s porque sus impuestos no se declaran en el modelo 340' % invoice.number) | ||
474 | 46 | |||
475 | 47 | |||
476 | 48 | def get_inv_good_names(self, cr, uid, invoice_id, tax_percentage, context=None): | ||
477 | 49 | names = [] | ||
478 | 50 | invoice = self.browse(cr, uid, invoice_id, context) | ||
479 | 51 | tax_percentage = abs(tax_percentage) | ||
480 | 52 | for line in invoice.invoice_line: | ||
481 | 53 | for tax in line.invoice_line_tax_id: | ||
482 | 54 | if tax.ledger_key in ('I','J') and tax.amount == tax_percentage: | ||
483 | 55 | names.append(line.name) | ||
484 | 56 | break | ||
485 | 57 | return ', '.join(names) | ||
486 | 58 | |||
487 | 59 | def get_cc_amounts(self, cr, uid, invoice_id, context=None): | ||
488 | 60 | #Créditos Zikzakmedia SL @ account_invoice_currency | ||
489 | 61 | invoice = self.browse(cr, uid, invoice_id, context) | ||
490 | 62 | if invoice.company_id.currency_id == invoice.currency_id: | ||
491 | 63 | return { | ||
492 | 64 | 'cc_amount_untaxed': invoice.amount_untaxed, | ||
493 | 65 | 'cc_amount_tax': invoice.amount_tax, | ||
494 | 66 | 'cc_amount_total': invoice.amount_total, | ||
495 | 67 | } | ||
496 | 68 | |||
497 | 69 | res = { | ||
498 | 70 | 'cc_amount_untaxed': 0.0, | ||
499 | 71 | 'cc_amount_tax': 0.0, | ||
500 | 72 | 'cc_amount_total': 0.0, | ||
501 | 73 | } | ||
502 | 74 | |||
503 | 75 | ## It could be computed only in open or paid invoices with a generated account move | ||
504 | 76 | if invoice.move_id: | ||
505 | 77 | precision = self.pool.get('decimal.precision').precision_get(cr, uid, 'Account') | ||
506 | 78 | ## Accounts to compute amount_untaxed | ||
507 | 79 | line_account = [] | ||
508 | 80 | for line in invoice.invoice_line: | ||
509 | 81 | if line.account_id.id not in line_account: | ||
510 | 82 | line_account.append(line.account_id.id) | ||
511 | 83 | |||
512 | 84 | ## Accounts to compute amount_tax | ||
513 | 85 | tax_account = [] | ||
514 | 86 | for line in invoice.tax_line: | ||
515 | 87 | if line.account_id.id not in tax_account and line.amount != 0: | ||
516 | 88 | tax_account.append(line.account_id.id) | ||
517 | 89 | |||
518 | 90 | ## The company currency amounts are the debit-credit amounts in the account moves | ||
519 | 91 | for line in invoice.move_id.line_id: | ||
520 | 92 | if line.account_id.id in line_account: | ||
521 | 93 | res['cc_amount_untaxed'] += float_round(line.debit - line.credit, precision) | ||
522 | 94 | if line.account_id.id in tax_account: | ||
523 | 95 | res['cc_amount_tax'] += float_round(line.debit - line.credit, precision) | ||
524 | 96 | if invoice.type in ('out_invoice', 'in_refund'): | ||
525 | 97 | res['cc_amount_untaxed'] = -res['cc_amount_untaxed'] | ||
526 | 98 | res['cc_amount_tax'] = -res['cc_amount_tax'] | ||
527 | 99 | res['cc_amount_total'] = res['cc_amount_tax'] + res['cc_amount_untaxed'] | ||
528 | 100 | return res | ||
529 | 101 | |||
530 | 28 | _columns = { | 102 | _columns = { |
531 | 29 | 'is_ticket_summary': fields.boolean('Ticket Summary', | 103 | 'is_ticket_summary': fields.boolean('Ticket Summary', |
532 | 30 | help='Check if this invoice is a ticket summary'), | 104 | help='Check if this invoice is a ticket summary'), |
533 | 31 | 105 | ||
534 | === modified file 'l10n_es_aeat_mod340/account_view.xml' | |||
535 | --- l10n_es_aeat_mod340/account_view.xml 2014-03-20 00:33:19 +0000 | |||
536 | +++ l10n_es_aeat_mod340/account_view.xml 2014-06-01 16:57:08 +0000 | |||
537 | @@ -1,17 +1,28 @@ | |||
538 | 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
539 | 2 | <openerp> | 2 | <openerp> |
540 | 3 | <data> | 3 | <data> |
541 | 4 | <<<<<<< TREE | ||
542 | 4 | <record id="view_tax_code_template_form_mod340" model="ir.ui.view"> | 5 | <record id="view_tax_code_template_form_mod340" model="ir.ui.view"> |
543 | 5 | <field name="name">account.tax.code.template.form.mod340</field> | 6 | <field name="name">account.tax.code.template.form.mod340</field> |
544 | 6 | <field name="model">account.tax.code.template</field> | 7 | <field name="model">account.tax.code.template</field> |
545 | 7 | <field name="inherit_id" ref="account.view_tax_code_template_form"/> | 8 | <field name="inherit_id" ref="account.view_tax_code_template_form"/> |
546 | 9 | ======= | ||
547 | 10 | |||
548 | 11 | <record id="view_account_tax_template_form_mod340" model="ir.ui.view"> | ||
549 | 12 | <field name="name">account.tax.template.form</field> | ||
550 | 13 | <field name="model">account.tax.template</field> | ||
551 | 14 | <field name="inherit_id" ref="account.view_account_tax_template_form"/> | ||
552 | 15 | >>>>>>> MERGE-SOURCE | ||
553 | 8 | <field name="arch" type="xml"> | 16 | <field name="arch" type="xml"> |
557 | 9 | <field name="sign" position="after"> | 17 | <xpath expr="//field[@name='ref_tax_sign']" position="after"> |
558 | 10 | <field name="mod340"/> | 18 | <group string="Modelo 340"> |
559 | 11 | </field> | 19 | <field name="ledger_key"/> |
560 | 20 | <field name="operation_key"/> | ||
561 | 21 | </group> | ||
562 | 22 | </xpath> | ||
563 | 12 | </field> | 23 | </field> |
564 | 13 | </record> | 24 | </record> |
566 | 14 | 25 | ||
567 | 15 | <record id="view_tax_code_form_mod340" model="ir.ui.view"> | 26 | <record id="view_tax_code_form_mod340" model="ir.ui.view"> |
568 | 16 | <field name="name">account.tax.code.form.mod340</field> | 27 | <field name="name">account.tax.code.form.mod340</field> |
569 | 17 | <field name="model">account.tax.code</field> | 28 | <field name="model">account.tax.code</field> |
570 | @@ -22,5 +33,23 @@ | |||
571 | 22 | </field> | 33 | </field> |
572 | 23 | </field> | 34 | </field> |
573 | 24 | </record> | 35 | </record> |
574 | 36 | |||
575 | 37 | <record id="view_tax_form_mod340" model="ir.ui.view"> | ||
576 | 38 | <field name="name">account.tax.form.mod340</field> | ||
577 | 39 | <field name="model">account.tax</field> | ||
578 | 40 | <field name="inherit_id" ref="account.view_tax_form"/> | ||
579 | 41 | <field name="arch" type="xml"> | ||
580 | 42 | <field name="child_depend" position="after"> | ||
581 | 43 | <separator string="Modelo 340" colspan="2"/> | ||
582 | 44 | <field name="ledger_key" on_change="onchange_ledger('ledger_key', ledger_key, context)" attrs="{'invisible': [('type_tax_use','!=','all')]}"/> | ||
583 | 45 | <field name="ledger_key_in" on_change="onchange_ledger('ledger_key_in', ledger_key_in, context)" attrs="{'invisible': [('type_tax_use','!=','purchase')]}"/> | ||
584 | 46 | <field name="ledger_key_out" on_change="onchange_ledger('ledger_key_out', ledger_key_out, context)" attrs="{'invisible': [('type_tax_use','!=','sale')]}"/> | ||
585 | 47 | <field name="operation_key"/> | ||
586 | 48 | </field> | ||
587 | 49 | <field name="type_tax_use" position="attributes"> | ||
588 | 50 | <attribute name="on_change">onchange_type_tax_use(context)</attribute> | ||
589 | 51 | </field> | ||
590 | 52 | </field> | ||
591 | 53 | </record> | ||
592 | 25 | </data> | 54 | </data> |
593 | 26 | </openerp> | 55 | </openerp> |
594 | 27 | \ No newline at end of file | 56 | \ No newline at end of file |
595 | 28 | 57 | ||
596 | === modified file 'l10n_es_aeat_mod340/i18n/es.po' | |||
597 | --- l10n_es_aeat_mod340/i18n/es.po 2014-05-12 06:40:26 +0000 | |||
598 | +++ l10n_es_aeat_mod340/i18n/es.po 2014-06-01 16:57:08 +0000 | |||
599 | @@ -4,21 +4,26 @@ | |||
600 | 4 | # | 4 | # |
601 | 5 | msgid "" | 5 | msgid "" |
602 | 6 | msgstr "" | 6 | msgstr "" |
604 | 7 | "Project-Id-Version: OpenERP Server 7.0\n" | 7 | "Project-Id-Version: OpenERP Server 7.0-20140331-231318\n" |
605 | 8 | "Report-Msgid-Bugs-To: \n" | 8 | "Report-Msgid-Bugs-To: \n" |
609 | 9 | "POT-Creation-Date: 2014-02-02 18:10+0000\n" | 9 | "POT-Creation-Date: 2014-04-01 10:51+0000\n" |
610 | 10 | "PO-Revision-Date: 2014-03-18 22:33+0000\n" | 10 | "PO-Revision-Date: 2014-04-01 10:51+0000\n" |
611 | 11 | "Last-Translator: Ignacio Ibeas (www.acysos.com) <ignacio@acysos.com>\n" | 11 | "Last-Translator: <>\n" |
612 | 12 | "Language-Team: \n" | 12 | "Language-Team: \n" |
613 | 13 | "MIME-Version: 1.0\n" | 13 | "MIME-Version: 1.0\n" |
614 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | 14 | "Content-Type: text/plain; charset=UTF-8\n" |
615 | 15 | <<<<<<< TREE | ||
616 | 15 | "Content-Transfer-Encoding: 8bit\n" | 16 | "Content-Transfer-Encoding: 8bit\n" |
617 | 16 | "X-Launchpad-Export-Date: 2014-05-12 06:39+0000\n" | 17 | "X-Launchpad-Export-Date: 2014-05-12 06:39+0000\n" |
618 | 17 | "X-Generator: Launchpad (build 16996)\n" | 18 | "X-Generator: Launchpad (build 16996)\n" |
619 | 19 | ======= | ||
620 | 20 | "Content-Transfer-Encoding: \n" | ||
621 | 21 | "Plural-Forms: \n" | ||
622 | 22 | >>>>>>> MERGE-SOURCE | ||
623 | 18 | 23 | ||
624 | 19 | #. module: l10n_es_aeat_mod340 | 24 | #. module: l10n_es_aeat_mod340 |
625 | 20 | #: report:report mod340:0 | 25 | #: report:report mod340:0 |
627 | 21 | #: report:vat_book:0 | 26 | #: report:vat book:0 |
628 | 22 | msgid "FACTURAS DE SALIDA" | 27 | msgid "FACTURAS DE SALIDA" |
629 | 23 | msgstr "FACTURAS DE SALIDA" | 28 | msgstr "FACTURAS DE SALIDA" |
630 | 24 | 29 | ||
631 | @@ -29,16 +34,14 @@ | |||
632 | 29 | 34 | ||
633 | 30 | #. module: l10n_es_aeat_mod340 | 35 | #. module: l10n_es_aeat_mod340 |
634 | 31 | #: report:report mod340:0 | 36 | #: report:report mod340:0 |
635 | 32 | #: report:report_mod340:0 | ||
636 | 33 | #: report:vat book:0 | 37 | #: report:vat book:0 |
637 | 34 | #: report:vat_book:0 | ||
638 | 35 | msgid "Compañía:" | 38 | msgid "Compañía:" |
639 | 36 | msgstr "Compañía:" | 39 | msgstr "Compañía:" |
640 | 37 | 40 | ||
641 | 38 | #. module: l10n_es_aeat_mod340 | 41 | #. module: l10n_es_aeat_mod340 |
642 | 39 | #: model:ir.actions.act_window,name:l10n_es_aeat_mod340.action_l10n_es_aeat_mod340_report | 42 | #: model:ir.actions.act_window,name:l10n_es_aeat_mod340.action_l10n_es_aeat_mod340_report |
643 | 40 | msgid "AEAT model 340" | 43 | msgid "AEAT model 340" |
645 | 41 | msgstr "Declaración AEAT 340" | 44 | msgstr "Modelo AEAT 340" |
646 | 42 | 45 | ||
647 | 43 | #. module: l10n_es_aeat_mod340 | 46 | #. module: l10n_es_aeat_mod340 |
648 | 44 | #: view:l10n.es.aeat.mod340.issued:0 | 47 | #: view:l10n.es.aeat.mod340.issued:0 |
649 | @@ -51,10 +54,14 @@ | |||
650 | 51 | msgstr "Exportar Modelo AEAT 340 al formato del BOE" | 54 | msgstr "Exportar Modelo AEAT 340 al formato del BOE" |
651 | 52 | 55 | ||
652 | 53 | #. module: l10n_es_aeat_mod340 | 56 | #. module: l10n_es_aeat_mod340 |
657 | 54 | #: code:addons/l10n_es_aeat_mod340/account.py:89 | 57 | #: help:l10n.es.aeat.mod340.report,investment_goods_prorating:0 |
658 | 55 | #, python-format | 58 | msgid "If checked, the investment goods invoices will be exported in their ledger. If not, they will be exported as received invoices" |
659 | 56 | msgid "The code field is different.\n" | 59 | msgstr "Si se marca, las facturas de bienes de inversión se exportarán en su libro. Si no, se exportarán como facturas recibidas" |
660 | 57 | msgstr "El campo código es diferente.\n" | 60 | |
661 | 61 | #. module: l10n_es_aeat_mod340 | ||
662 | 62 | #: field:l10n.es.aeat.mod340.report,investment_goods_prorating:0 | ||
663 | 63 | msgid "Investment goods prorating" | ||
664 | 64 | msgstr "Prorrata de bienes de inversión" | ||
665 | 58 | 65 | ||
666 | 59 | #. module: l10n_es_aeat_mod340 | 66 | #. module: l10n_es_aeat_mod340 |
667 | 60 | #: view:l10n.es.aeat.mod340.report:0 | 67 | #: view:l10n.es.aeat.mod340.report:0 |
668 | @@ -67,26 +74,22 @@ | |||
669 | 67 | msgstr "Total" | 74 | msgstr "Total" |
670 | 68 | 75 | ||
671 | 69 | #. module: l10n_es_aeat_mod340 | 76 | #. module: l10n_es_aeat_mod340 |
673 | 70 | #: code:addons/l10n_es_aeat_mod340/account.py:161 | 77 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:126 |
674 | 71 | #, python-format | 78 | #, python-format |
677 | 72 | msgid "Created tax code %s.\n" | 79 | msgid "The periods selected don't belong to the fiscal year %s" |
678 | 73 | msgstr "Código de impuesto %s creado.\n" | 80 | msgstr "Los periodos seleccionados no pertenecen al año fiscal %s" |
679 | 74 | 81 | ||
680 | 75 | #. module: l10n_es_aeat_mod340 | 82 | #. module: l10n_es_aeat_mod340 |
684 | 76 | #: view:l10n.es.aeat.mod340.report:0 | 83 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:87 |
685 | 77 | msgid "Susbtitutive/complementary declaration" | 84 | #, python-format |
686 | 78 | msgstr "Declaración sustitutiva/complementaría" | 85 | msgid "No match found for tax percentage %s" |
687 | 86 | msgstr "No match found for tax percentage %s" | ||
688 | 79 | 87 | ||
689 | 80 | #. module: l10n_es_aeat_mod340 | 88 | #. module: l10n_es_aeat_mod340 |
690 | 81 | #: view:l10n.es.aeat.mod340.report:0 | 89 | #: view:l10n.es.aeat.mod340.report:0 |
691 | 82 | #: field:l10n.es.aeat.mod340.report,company_id:0 | 90 | #: field:l10n.es.aeat.mod340.report,company_id:0 |
692 | 83 | msgid "Company" | 91 | msgid "Company" |
699 | 84 | msgstr "Compañía" | 92 | msgstr "Compañia" |
694 | 85 | |||
695 | 86 | #. module: l10n_es_aeat_mod340 | ||
696 | 87 | #: field:l10n.es.aeat.mod340.report,total_sharetax:0 | ||
697 | 88 | msgid "Total Share Tax" | ||
698 | 89 | msgstr "Total impuestos" | ||
700 | 90 | 93 | ||
701 | 91 | #. module: l10n_es_aeat_mod340 | 94 | #. module: l10n_es_aeat_mod340 |
702 | 92 | #: field:l10n.es.aeat.mod340.report,number_records:0 | 95 | #: field:l10n.es.aeat.mod340.report,number_records:0 |
703 | @@ -94,13 +97,10 @@ | |||
704 | 94 | msgstr "Registros" | 97 | msgstr "Registros" |
705 | 95 | 98 | ||
706 | 96 | #. module: l10n_es_aeat_mod340 | 99 | #. module: l10n_es_aeat_mod340 |
708 | 97 | #: code:addons/l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py:390 | 100 | #: code:addons/l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py:411 |
709 | 98 | #, python-format | 101 | #, python-format |
715 | 99 | msgid "" | 102 | msgid "The type 2 received record must be 500 characters long for each Vat registry" |
716 | 100 | "The type 2 received record must be 500 characters long for each Vat registry" | 103 | msgstr "El registro de tipo 2 debe tener una longitud de 500 caracteres por cada registro de IVA" |
712 | 101 | msgstr "" | ||
713 | 102 | "El registro de tipo 2 debe tener una longitud de 500 caracteres por cada " | ||
714 | 103 | "registro de IVA" | ||
717 | 104 | 104 | ||
718 | 105 | #. module: l10n_es_aeat_mod340 | 105 | #. module: l10n_es_aeat_mod340 |
719 | 106 | #: selection:l10n.es.aeat.mod340.report,type:0 | 106 | #: selection:l10n.es.aeat.mod340.report,type:0 |
720 | @@ -117,6 +117,8 @@ | |||
721 | 117 | #: field:l10n.es.aeat.mod340.investment,base_tax:0 | 117 | #: field:l10n.es.aeat.mod340.investment,base_tax:0 |
722 | 118 | #: field:l10n.es.aeat.mod340.issued,base_tax:0 | 118 | #: field:l10n.es.aeat.mod340.issued,base_tax:0 |
723 | 119 | #: field:l10n.es.aeat.mod340.received,base_tax:0 | 119 | #: field:l10n.es.aeat.mod340.received,base_tax:0 |
724 | 120 | #: field:l10n.es.aeat.mod340.tax_line_intra,base_amount:0 | ||
725 | 121 | #: field:l10n.es.aeat.mod340.tax_line_investment,base_amount:0 | ||
726 | 120 | #: field:l10n.es.aeat.mod340.tax_line_issued,base_amount:0 | 122 | #: field:l10n.es.aeat.mod340.tax_line_issued,base_amount:0 |
727 | 121 | #: field:l10n.es.aeat.mod340.tax_line_received,base_amount:0 | 123 | #: field:l10n.es.aeat.mod340.tax_line_received,base_amount:0 |
728 | 122 | msgid "Base tax bill" | 124 | msgid "Base tax bill" |
729 | @@ -129,9 +131,7 @@ | |||
730 | 129 | 131 | ||
731 | 130 | #. module: l10n_es_aeat_mod340 | 132 | #. module: l10n_es_aeat_mod340 |
732 | 131 | #: report:report mod340:0 | 133 | #: report:report mod340:0 |
733 | 132 | #: report:report_mod340:0 | ||
734 | 133 | #: report:vat book:0 | 134 | #: report:vat book:0 |
735 | 134 | #: report:vat_book:0 | ||
736 | 135 | msgid "Apellidos y nombre de contacto:" | 135 | msgid "Apellidos y nombre de contacto:" |
737 | 136 | msgstr "Apellidos y nombre de contacto:" | 136 | msgstr "Apellidos y nombre de contacto:" |
738 | 137 | 137 | ||
739 | @@ -142,7 +142,6 @@ | |||
740 | 142 | 142 | ||
741 | 143 | #. module: l10n_es_aeat_mod340 | 143 | #. module: l10n_es_aeat_mod340 |
742 | 144 | #: field:account.tax.code,mod340:0 | 144 | #: field:account.tax.code,mod340:0 |
743 | 145 | #: field:account.tax.code.template,mod340:0 | ||
744 | 146 | msgid "Include in mod340" | 145 | msgid "Include in mod340" |
745 | 147 | msgstr "Incluir en el modelo 340" | 146 | msgstr "Incluir en el modelo 340" |
746 | 148 | 147 | ||
747 | @@ -177,13 +176,11 @@ | |||
748 | 177 | msgstr "6 - Otro documento probatorio" | 176 | msgstr "6 - Otro documento probatorio" |
749 | 178 | 177 | ||
750 | 179 | #. module: l10n_es_aeat_mod340 | 178 | #. module: l10n_es_aeat_mod340 |
752 | 180 | #: code:addons/l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py:283 | 179 | #: code:addons/l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py:291 |
753 | 180 | #: code:addons/l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py:529 | ||
754 | 181 | #, python-format | 181 | #, python-format |
760 | 182 | msgid "" | 182 | msgid "The type 2 issued record must be 500 characters long for each Vat registry" |
761 | 183 | "The type 2 issued record must be 500 characters long for each Vat registry" | 183 | msgstr "El registro de tipo 2 debe tener una longitud de 500 caracteres por cada registro de IVA" |
757 | 184 | msgstr "" | ||
758 | 185 | "El registro de tipo 2 debe tener una longitud de 500 caracteres por cada " | ||
759 | 186 | "registro de IVA" | ||
762 | 187 | 184 | ||
763 | 188 | #. module: l10n_es_aeat_mod340 | 185 | #. module: l10n_es_aeat_mod340 |
764 | 189 | #: field:l10n.es.aeat.mod340.report,period_from:0 | 186 | #: field:l10n.es.aeat.mod340.report,period_from:0 |
765 | @@ -191,24 +188,21 @@ | |||
766 | 191 | msgstr "Periodo inicial" | 188 | msgstr "Periodo inicial" |
767 | 192 | 189 | ||
768 | 193 | #. module: l10n_es_aeat_mod340 | 190 | #. module: l10n_es_aeat_mod340 |
773 | 194 | #: code:addons/l10n_es_aeat_mod340/account.py:170 | 191 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_report |
774 | 195 | #, python-format | 192 | #: field:l10n.es.aeat.mod340.intracomunitarias,mod340_id:0 |
775 | 196 | msgid "Updated tax code %s.\n" | 193 | #: field:l10n.es.aeat.mod340.investment,mod340_id:0 |
776 | 197 | msgstr "Código de impuesto %s actualizado.\n" | 194 | #: field:l10n.es.aeat.mod340.issued,mod340_id:0 |
777 | 195 | #: field:l10n.es.aeat.mod340.received,mod340_id:0 | ||
778 | 196 | #: view:l10n.es.aeat.mod340.report:0 | ||
779 | 197 | msgid "Model 340" | ||
780 | 198 | msgstr "Modelo 340" | ||
781 | 198 | 199 | ||
782 | 199 | #. module: l10n_es_aeat_mod340 | 200 | #. module: l10n_es_aeat_mod340 |
783 | 200 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_intracomunitarias | 201 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_intracomunitarias |
784 | 201 | #: field:l10n.es.aeat.mod340.report,intracomunitarias:0 | ||
785 | 202 | msgid "Operations Intracomunitarias" | 202 | msgid "Operations Intracomunitarias" |
786 | 203 | msgstr "Operaciones intracomunitarias" | 203 | msgstr "Operaciones intracomunitarias" |
787 | 204 | 204 | ||
788 | 205 | #. module: l10n_es_aeat_mod340 | 205 | #. module: l10n_es_aeat_mod340 |
789 | 206 | #: field:l10n.es.aeat.mod340.tax_line_issued,tax_amount:0 | ||
790 | 207 | #: field:l10n.es.aeat.mod340.tax_line_received,tax_amount:0 | ||
791 | 208 | msgid "Tax amount" | ||
792 | 209 | msgstr "Impuestos" | ||
793 | 210 | |||
794 | 211 | #. module: l10n_es_aeat_mod340 | ||
795 | 212 | #: view:l10n.es.aeat.mod340.report:0 | 206 | #: view:l10n.es.aeat.mod340.report:0 |
796 | 213 | #: field:l10n.es.aeat.mod340.report,ean13:0 | 207 | #: field:l10n.es.aeat.mod340.report,ean13:0 |
797 | 214 | msgid "Electronic Code VAT reverse charge" | 208 | msgid "Electronic Code VAT reverse charge" |
798 | @@ -220,35 +214,20 @@ | |||
799 | 220 | msgstr "Periodo final" | 214 | msgstr "Periodo final" |
800 | 221 | 215 | ||
801 | 222 | #. module: l10n_es_aeat_mod340 | 216 | #. module: l10n_es_aeat_mod340 |
802 | 223 | #: code:addons/l10n_es_aeat_mod340/account.py:98 | ||
803 | 224 | #, python-format | ||
804 | 225 | msgid "The Mod 340 field is different.\n" | ||
805 | 226 | msgstr "El campo Mod 340 es diferente.\n" | ||
806 | 227 | |||
807 | 228 | #. module: l10n_es_aeat_mod340 | ||
808 | 229 | #: view:l10n.es.aeat.mod340.report:0 | 217 | #: view:l10n.es.aeat.mod340.report:0 |
809 | 230 | msgid "Identification" | 218 | msgid "Identification" |
810 | 231 | msgstr "Identificación" | 219 | msgstr "Identificación" |
811 | 232 | 220 | ||
812 | 233 | #. module: l10n_es_aeat_mod340 | 221 | #. module: l10n_es_aeat_mod340 |
818 | 234 | #: view:l10n.es.aeat.mod340.report:0 | 222 | #: view:l10n.es.aeat.mod340.intracomunitarias:0 |
819 | 235 | msgid "295" | 223 | #: view:l10n.es.aeat.mod340.investment:0 |
815 | 236 | msgstr "295" | ||
816 | 237 | |||
817 | 238 | #. module: l10n_es_aeat_mod340 | ||
820 | 239 | #: view:l10n.es.aeat.mod340.issued:0 | 224 | #: view:l10n.es.aeat.mod340.issued:0 |
821 | 240 | #: view:l10n.es.aeat.mod340.received:0 | 225 | #: view:l10n.es.aeat.mod340.received:0 |
822 | 241 | msgid "Total Tax" | 226 | msgid "Total Tax" |
829 | 242 | msgstr "Total Impuestos" | 227 | msgstr "Cuota" |
824 | 243 | |||
825 | 244 | #. module: l10n_es_aeat_mod340 | ||
826 | 245 | #: model:ir.actions.report.xml,name:l10n_es_aeat_mod340.report_mod340_action | ||
827 | 246 | msgid "mod340 report" | ||
828 | 247 | msgstr "mod340 report" | ||
830 | 248 | 228 | ||
831 | 249 | #. module: l10n_es_aeat_mod340 | 229 | #. module: l10n_es_aeat_mod340 |
832 | 250 | #: report:vat book:0 | 230 | #: report:vat book:0 |
833 | 251 | #: report:vat_book:0 | ||
834 | 252 | msgid "LIBRO DE IVA" | 231 | msgid "LIBRO DE IVA" |
835 | 253 | msgstr "LIBRO DE IVA" | 232 | msgstr "LIBRO DE IVA" |
836 | 254 | 233 | ||
837 | @@ -258,10 +237,42 @@ | |||
838 | 258 | msgstr "Facturas" | 237 | msgstr "Facturas" |
839 | 259 | 238 | ||
840 | 260 | #. module: l10n_es_aeat_mod340 | 239 | #. module: l10n_es_aeat_mod340 |
845 | 261 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:66 | 240 | #: field:l10n.es.aeat.mod340.tax_line_intra,tax_amount:0 |
846 | 262 | #, python-format | 241 | #: field:l10n.es.aeat.mod340.tax_line_investment,tax_amount:0 |
847 | 263 | msgid "This company dont have NIF" | 242 | #: field:l10n.es.aeat.mod340.tax_line_issued,tax_amount:0 |
848 | 264 | msgstr "Esta compañía no tiene CIF/NIF" | 243 | #: field:l10n.es.aeat.mod340.tax_line_received,tax_amount:0 |
849 | 244 | msgid "Tax amount" | ||
850 | 245 | msgstr "Cuota" | ||
851 | 246 | |||
852 | 247 | #. module: l10n_es_aeat_mod340 | ||
853 | 248 | #: field:account.tax,ledger_key:0 | ||
854 | 249 | #: field:account.tax,ledger_key_in:0 | ||
855 | 250 | #: field:account.tax,ledger_key_out:0 | ||
856 | 251 | #: field:account.tax.template,ledger_key:0 | ||
857 | 252 | #: field:l10n.es.aeat.mod340.intracomunitarias,ledger_key:0 | ||
858 | 253 | #: field:l10n.es.aeat.mod340.investment,ledger_key:0 | ||
859 | 254 | #: field:l10n.es.aeat.mod340.issued,ledger_key:0 | ||
860 | 255 | #: field:l10n.es.aeat.mod340.received,ledger_key:0 | ||
861 | 256 | msgid "Ledger Key" | ||
862 | 257 | msgstr "Clave de libro" | ||
863 | 258 | |||
864 | 259 | #. module: l10n_es_aeat_mod340 | ||
865 | 260 | #: field:l10n.es.aeat.mod340.tax_line_intra,surcharge_percentage:0 | ||
866 | 261 | #: field:l10n.es.aeat.mod340.tax_line_investment,surcharge_percentage:0 | ||
867 | 262 | #: field:l10n.es.aeat.mod340.tax_line_issued,surcharge_percentage:0 | ||
868 | 263 | #: field:l10n.es.aeat.mod340.tax_line_received,surcharge_percentage:0 | ||
869 | 264 | msgid "Surcharge percentage" | ||
870 | 265 | msgstr "Tipo de recargo" | ||
871 | 266 | |||
872 | 267 | #. module: l10n_es_aeat_mod340 | ||
873 | 268 | #: model:ir.model,name:l10n_es_aeat_mod340.model_account_tax | ||
874 | 269 | msgid "Tax" | ||
875 | 270 | msgstr "Impuesto" | ||
876 | 271 | |||
877 | 272 | #. module: l10n_es_aeat_mod340 | ||
878 | 273 | #: view:l10n.es.aeat.mod340.report:0 | ||
879 | 274 | msgid "Fiscal Year" | ||
880 | 275 | msgstr "Año fiscal" | ||
881 | 265 | 276 | ||
882 | 266 | #. module: l10n_es_aeat_mod340 | 277 | #. module: l10n_es_aeat_mod340 |
883 | 267 | #: selection:res.partner,vat_type:0 | 278 | #: selection:res.partner,vat_type:0 |
884 | @@ -279,6 +290,11 @@ | |||
885 | 279 | msgstr "Estado" | 290 | msgstr "Estado" |
886 | 280 | 291 | ||
887 | 281 | #. module: l10n_es_aeat_mod340 | 292 | #. module: l10n_es_aeat_mod340 |
888 | 293 | #: model:ir.model,name:l10n_es_aeat_mod340.model_account_tax_template | ||
889 | 294 | msgid "Templates for Taxes" | ||
890 | 295 | msgstr "Plantilla para los impuestos" | ||
891 | 296 | |||
892 | 297 | #. module: l10n_es_aeat_mod340 | ||
893 | 282 | #: model:ir.ui.menu,name:l10n_es_aeat_mod340.menu_aeat_mod340_report | 298 | #: model:ir.ui.menu,name:l10n_es_aeat_mod340.menu_aeat_mod340_report |
894 | 283 | msgid "AEAT 340 Model" | 299 | msgid "AEAT 340 Model" |
895 | 284 | msgstr "Declaración AEAT 340" | 300 | msgstr "Declaración AEAT 340" |
896 | @@ -289,11 +305,10 @@ | |||
897 | 289 | #: field:l10n.es.aeat.mod340.issued,amount_tax:0 | 305 | #: field:l10n.es.aeat.mod340.issued,amount_tax:0 |
898 | 290 | #: field:l10n.es.aeat.mod340.received,amount_tax:0 | 306 | #: field:l10n.es.aeat.mod340.received,amount_tax:0 |
899 | 291 | msgid "Total tax" | 307 | msgid "Total tax" |
901 | 292 | msgstr "Total impuestos" | 308 | msgstr "Cuota" |
902 | 293 | 309 | ||
903 | 294 | #. module: l10n_es_aeat_mod340 | 310 | #. module: l10n_es_aeat_mod340 |
904 | 295 | #: report:vat book:0 | 311 | #: report:vat book:0 |
905 | 296 | #: report:vat_book:0 | ||
906 | 297 | msgid "Nº de factura" | 312 | msgid "Nº de factura" |
907 | 298 | msgstr "Nº de factura" | 313 | msgstr "Nº de factura" |
908 | 299 | 314 | ||
909 | @@ -303,9 +318,19 @@ | |||
910 | 303 | #: field:l10n.es.aeat.mod340.issued,date_invoice:0 | 318 | #: field:l10n.es.aeat.mod340.issued,date_invoice:0 |
911 | 304 | #: field:l10n.es.aeat.mod340.received,date_invoice:0 | 319 | #: field:l10n.es.aeat.mod340.received,date_invoice:0 |
912 | 305 | msgid "Date Invoice" | 320 | msgid "Date Invoice" |
916 | 306 | msgstr "Fecha Factura" | 321 | msgstr "Fecha factura" |
917 | 307 | 322 | ||
918 | 308 | #. module: l10n_es_aeat_mod340 | 323 | #. module: l10n_es_aeat_mod340 |
919 | 324 | #: field:l10n.es.aeat.mod340.tax_line_intra,surcharge_amount:0 | ||
920 | 325 | #: field:l10n.es.aeat.mod340.tax_line_investment,surcharge_amount:0 | ||
921 | 326 | #: field:l10n.es.aeat.mod340.tax_line_issued,surcharge_amount:0 | ||
922 | 327 | #: field:l10n.es.aeat.mod340.tax_line_received,surcharge_amount:0 | ||
923 | 328 | msgid "Surcharge amount" | ||
924 | 329 | msgstr "Cuota de recargo" | ||
925 | 330 | |||
926 | 331 | #. module: l10n_es_aeat_mod340 | ||
927 | 332 | #: view:account.tax:0 | ||
928 | 333 | #: view:account.tax.template:0 | ||
929 | 309 | #: model:ir.actions.report.xml,name:l10n_es_aeat_mod340.report_mod340 | 334 | #: model:ir.actions.report.xml,name:l10n_es_aeat_mod340.report_mod340 |
930 | 310 | msgid "Modelo 340" | 335 | msgid "Modelo 340" |
931 | 311 | msgstr "Modelo 340" | 336 | msgstr "Modelo 340" |
932 | @@ -321,7 +346,7 @@ | |||
933 | 321 | msgstr "Tipo de soporte" | 346 | msgstr "Tipo de soporte" |
934 | 322 | 347 | ||
935 | 323 | #. module: l10n_es_aeat_mod340 | 348 | #. module: l10n_es_aeat_mod340 |
937 | 324 | #: code:addons/l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py:105 | 349 | #: code:addons/l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py:113 |
938 | 325 | #, python-format | 350 | #, python-format |
939 | 326 | msgid "The period hasn't a valid Mod340 period" | 351 | msgid "The period hasn't a valid Mod340 period" |
940 | 327 | msgstr "El periodo no es válido para el Módelo 340" | 352 | msgstr "El periodo no es válido para el Módelo 340" |
941 | @@ -337,32 +362,24 @@ | |||
942 | 337 | msgstr "1 - Corresponde a un NIF" | 362 | msgstr "1 - Corresponde a un NIF" |
943 | 338 | 363 | ||
944 | 339 | #. module: l10n_es_aeat_mod340 | 364 | #. module: l10n_es_aeat_mod340 |
951 | 340 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_export_to_boe | 365 | #: code:addons/l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py:134 |
946 | 341 | msgid "Export AEAT Model 340 to BOE format" | ||
947 | 342 | msgstr "Exportar Modelo AEAT 340 al formato del BOE" | ||
948 | 343 | |||
949 | 344 | #. module: l10n_es_aeat_mod340 | ||
950 | 345 | #: code:addons/l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py:126 | ||
952 | 346 | #, python-format | 366 | #, python-format |
953 | 347 | msgid "The type 1 record must be 500 characters long" | 367 | msgid "The type 1 record must be 500 characters long" |
954 | 348 | msgstr "El registro de tipo 1 tiene que tener 500 caracteres de longitud" | 368 | msgstr "El registro de tipo 1 tiene que tener 500 caracteres de longitud" |
955 | 349 | 369 | ||
956 | 350 | #. module: l10n_es_aeat_mod340 | 370 | #. module: l10n_es_aeat_mod340 |
957 | 351 | #: report:report mod340:0 | 371 | #: report:report mod340:0 |
958 | 352 | #: report:report_mod340:0 | ||
959 | 353 | #: report:vat book:0 | 372 | #: report:vat book:0 |
960 | 354 | #: report:vat_book:0 | ||
961 | 355 | msgid "CIF/NIF:" | 373 | msgid "CIF/NIF:" |
962 | 356 | msgstr "CIF/NIF:" | 374 | msgstr "CIF/NIF:" |
963 | 357 | 375 | ||
964 | 358 | #. module: l10n_es_aeat_mod340 | 376 | #. module: l10n_es_aeat_mod340 |
968 | 359 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_tax_line_issued | 377 | #: field:l10n.es.aeat.mod340.report,calculation_date:0 |
969 | 360 | msgid "Mod340 vat lines issued" | 378 | msgid "Calculation date" |
970 | 361 | msgstr "Líneas de impuestos emitidos" | 379 | msgstr "Fecha de cálculo" |
971 | 362 | 380 | ||
972 | 363 | #. module: l10n_es_aeat_mod340 | 381 | #. module: l10n_es_aeat_mod340 |
973 | 364 | #: report:report mod340:0 | 382 | #: report:report mod340:0 |
974 | 365 | #: report:report_mod340:0 | ||
975 | 366 | msgid "CIF/NIF del representante legal:" | 383 | msgid "CIF/NIF del representante legal:" |
976 | 367 | msgstr "CIF/NIF del representante legal:" | 384 | msgstr "CIF/NIF del representante legal:" |
977 | 368 | 385 | ||
978 | @@ -376,21 +393,13 @@ | |||
979 | 376 | msgstr "Empresa" | 393 | msgstr "Empresa" |
980 | 377 | 394 | ||
981 | 378 | #. module: l10n_es_aeat_mod340 | 395 | #. module: l10n_es_aeat_mod340 |
982 | 379 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:80 | ||
983 | 380 | #, python-format | ||
984 | 381 | msgid "The periods selected don't belong to the fiscal year %s" | ||
985 | 382 | msgstr "Los periodos seleccionados no pertenecen al año fiscal %s" | ||
986 | 383 | |||
987 | 384 | #. module: l10n_es_aeat_mod340 | ||
988 | 385 | #: model:ir.actions.act_window,help:l10n_es_aeat_mod340.action_l10n_es_aeat_mod340_report | 396 | #: model:ir.actions.act_window,help:l10n_es_aeat_mod340.action_l10n_es_aeat_mod340_report |
989 | 386 | msgid "Create and query AEAT Model 340 reports" | 397 | msgid "Create and query AEAT Model 340 reports" |
990 | 387 | msgstr "Crear informe del Modelo AEAT 340" | 398 | msgstr "Crear informe del Modelo AEAT 340" |
991 | 388 | 399 | ||
992 | 389 | #. module: l10n_es_aeat_mod340 | 400 | #. module: l10n_es_aeat_mod340 |
993 | 390 | #: report:report mod340:0 | 401 | #: report:report mod340:0 |
994 | 391 | #: report:report_mod340:0 | ||
995 | 392 | #: report:vat book:0 | 402 | #: report:vat book:0 |
996 | 393 | #: report:vat_book:0 | ||
997 | 394 | msgid "Cuota impuesto" | 403 | msgid "Cuota impuesto" |
998 | 395 | msgstr "Cuota impuesto" | 404 | msgstr "Cuota impuesto" |
999 | 396 | 405 | ||
1000 | @@ -400,30 +409,42 @@ | |||
1001 | 400 | msgstr "Líneas de impuestos recibidos" | 409 | msgstr "Líneas de impuestos recibidos" |
1002 | 401 | 410 | ||
1003 | 402 | #. module: l10n_es_aeat_mod340 | 411 | #. module: l10n_es_aeat_mod340 |
1004 | 412 | #: view:l10n.es.aeat.mod340.report:0 | ||
1005 | 413 | msgid "Other intracommunity operations" | ||
1006 | 414 | msgstr "Otras opreaciones intracomunitarias" | ||
1007 | 415 | |||
1008 | 416 | #. module: l10n_es_aeat_mod340 | ||
1009 | 403 | #: report:report mod340:0 | 417 | #: report:report mod340:0 |
1010 | 404 | #: report:report_mod340:0 | ||
1011 | 405 | msgid "MODELO AEAT 340" | 418 | msgid "MODELO AEAT 340" |
1012 | 406 | msgstr "MODELO AEAT 340" | 419 | msgstr "MODELO AEAT 340" |
1013 | 407 | 420 | ||
1014 | 408 | #. module: l10n_es_aeat_mod340 | 421 | #. module: l10n_es_aeat_mod340 |
1019 | 409 | #: code:addons/l10n_es_aeat_mod340/account.py:95 | 422 | #: view:l10n.es.aeat.mod340.investment:0 |
1020 | 410 | #, python-format | 423 | #: view:l10n.es.aeat.mod340.report:0 |
1021 | 411 | msgid "The sign field is different.\n" | 424 | msgid "Investment goods" |
1022 | 412 | msgstr "El campo signo es diferente.\n" | 425 | msgstr "Bienes de inversión" |
1023 | 426 | |||
1024 | 427 | #. module: l10n_es_aeat_mod340 | ||
1025 | 428 | #: field:l10n.es.aeat.mod340.export_to_boe,state:0 | ||
1026 | 429 | msgid "unknown" | ||
1027 | 430 | msgstr "unknown" | ||
1028 | 431 | |||
1029 | 432 | #. module: l10n_es_aeat_mod340 | ||
1030 | 433 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_tax_line_investment | ||
1031 | 434 | msgid "Mod340 vat lines investment" | ||
1032 | 435 | msgstr "Líneas de inversión del mod340" | ||
1033 | 413 | 436 | ||
1034 | 414 | #. module: l10n_es_aeat_mod340 | 437 | #. module: l10n_es_aeat_mod340 |
1035 | 415 | #: report:report mod340:0 | 438 | #: report:report mod340:0 |
1036 | 416 | #: report:report_mod340:0 | ||
1037 | 417 | msgid "Tipo de declaración" | 439 | msgid "Tipo de declaración" |
1038 | 418 | msgstr "Tipo de declaración" | 440 | msgstr "Tipo de declaración" |
1039 | 419 | 441 | ||
1040 | 420 | #. module: l10n_es_aeat_mod340 | 442 | #. module: l10n_es_aeat_mod340 |
1044 | 421 | #: field:l10n.es.aeat.mod340.report,calculation_date:0 | 443 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_tax_line_issued |
1045 | 422 | msgid "Calculation date" | 444 | msgid "Mod340 vat lines issued" |
1046 | 423 | msgstr "Fecha de cálculo" | 445 | msgstr "Líneas de impuestos emitidos" |
1047 | 424 | 446 | ||
1048 | 425 | #. module: l10n_es_aeat_mod340 | 447 | #. module: l10n_es_aeat_mod340 |
1049 | 426 | #: model:ir.actions.report.xml,name:l10n_es_aeat_mod340.report_vat_book_action | ||
1050 | 427 | #: model:ir.actions.report.xml,name:l10n_es_aeat_mod340.vat_book | 448 | #: model:ir.actions.report.xml,name:l10n_es_aeat_mod340.vat_book |
1051 | 428 | msgid "Vat Book" | 449 | msgid "Vat Book" |
1052 | 429 | msgstr "Libro de IVA" | 450 | msgstr "Libro de IVA" |
1053 | @@ -434,10 +455,9 @@ | |||
1054 | 434 | msgstr "Número de tiques" | 455 | msgstr "Número de tiques" |
1055 | 435 | 456 | ||
1056 | 436 | #. module: l10n_es_aeat_mod340 | 457 | #. module: l10n_es_aeat_mod340 |
1061 | 437 | #: code:addons/l10n_es_aeat_mod340/account.py:185 | 458 | #: field:l10n.es.aeat.mod340.report,total_sharetax:0 |
1062 | 438 | #, python-format | 459 | msgid "Total Share Tax" |
1063 | 439 | msgid "Tax code %s: The parent tax code %s can not be set.\n" | 460 | msgstr "Total impuestos" |
1060 | 440 | msgstr "Código de impuesto %s: el padre de %s no puede ser guardado.\n" | ||
1064 | 441 | 461 | ||
1065 | 442 | #. module: l10n_es_aeat_mod340 | 462 | #. module: l10n_es_aeat_mod340 |
1066 | 443 | #: selection:l10n.es.aeat.mod340.report,support_type:0 | 463 | #: selection:l10n.es.aeat.mod340.report,support_type:0 |
1067 | @@ -446,9 +466,7 @@ | |||
1068 | 446 | 466 | ||
1069 | 447 | #. module: l10n_es_aeat_mod340 | 467 | #. module: l10n_es_aeat_mod340 |
1070 | 448 | #: report:report mod340:0 | 468 | #: report:report mod340:0 |
1071 | 449 | #: report:report_mod340:0 | ||
1072 | 450 | #: report:vat book:0 | 469 | #: report:vat book:0 |
1073 | 451 | #: report:vat_book:0 | ||
1074 | 452 | msgid "Fecha" | 470 | msgid "Fecha" |
1075 | 453 | msgstr "Fecha" | 471 | msgstr "Fecha" |
1076 | 454 | 472 | ||
1077 | @@ -458,15 +476,21 @@ | |||
1078 | 458 | msgstr "En processo" | 476 | msgstr "En processo" |
1079 | 459 | 477 | ||
1080 | 460 | #. module: l10n_es_aeat_mod340 | 478 | #. module: l10n_es_aeat_mod340 |
1090 | 461 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340 | 479 | #: field:l10n.es.aeat.mod340.investment,prorata:0 |
1091 | 462 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_report | 480 | msgid "Definitive yearly prorata" |
1092 | 463 | #: field:l10n.es.aeat.mod340.intracomunitarias,mod340_id:0 | 481 | msgstr "Prorrata anual definitiva" |
1093 | 464 | #: field:l10n.es.aeat.mod340.investment,mod340_id:0 | 482 | |
1094 | 465 | #: field:l10n.es.aeat.mod340.issued,mod340_id:0 | 483 | #. module: l10n_es_aeat_mod340 |
1095 | 466 | #: field:l10n.es.aeat.mod340.received,mod340_id:0 | 484 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:115 |
1096 | 467 | #: view:l10n.es.aeat.mod340.report:0 | 485 | #, python-format |
1097 | 468 | msgid "Model 340" | 486 | msgid "This company dont have NIF" |
1098 | 469 | msgstr "Modelo 340" | 487 | msgstr "Esta compañía no tiene CIF/NIF" |
1099 | 488 | |||
1100 | 489 | #. module: l10n_es_aeat_mod340 | ||
1101 | 490 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_received | ||
1102 | 491 | #: field:l10n.es.aeat.mod340.report,received:0 | ||
1103 | 492 | msgid "Invoices Received" | ||
1104 | 493 | msgstr "Facturas recibidas" | ||
1105 | 470 | 494 | ||
1106 | 471 | #. module: l10n_es_aeat_mod340 | 495 | #. module: l10n_es_aeat_mod340 |
1107 | 472 | #: view:l10n.es.aeat.mod340.report:0 | 496 | #: view:l10n.es.aeat.mod340.report:0 |
1108 | @@ -485,14 +509,15 @@ | |||
1109 | 485 | msgstr "open" | 509 | msgstr "open" |
1110 | 486 | 510 | ||
1111 | 487 | #. module: l10n_es_aeat_mod340 | 511 | #. module: l10n_es_aeat_mod340 |
1116 | 488 | #: view:l10n.es.aeat.mod340.issued:0 | 512 | #: code:addons/l10n_es_aeat_mod340/account.py:211 |
1117 | 489 | #: view:l10n.es.aeat.mod340.received:0 | 513 | #, python-format |
1118 | 490 | msgid "Total Base" | 514 | msgid "The ledger key is different.\n" |
1119 | 491 | msgstr "Total Base" | 515 | "" |
1120 | 516 | msgstr "La clave de libro es diferente.\n" | ||
1121 | 517 | "" | ||
1122 | 492 | 518 | ||
1123 | 493 | #. module: l10n_es_aeat_mod340 | 519 | #. module: l10n_es_aeat_mod340 |
1124 | 494 | #: report:report mod340:0 | 520 | #: report:report mod340:0 |
1125 | 495 | #: report:report_mod340:0 | ||
1126 | 496 | msgid "Número de la declaración anterior:" | 521 | msgid "Número de la declaración anterior:" |
1127 | 497 | msgstr "Número de la declaración anterior:" | 522 | msgstr "Número de la declaración anterior:" |
1128 | 498 | 523 | ||
1129 | @@ -512,19 +537,36 @@ | |||
1130 | 512 | msgstr "Active si esta factura es un resumen de tiques" | 537 | msgstr "Active si esta factura es un resumen de tiques" |
1131 | 513 | 538 | ||
1132 | 514 | #. module: l10n_es_aeat_mod340 | 539 | #. module: l10n_es_aeat_mod340 |
1146 | 515 | #: field:l10n.es.aeat.mod340.export_to_boe,state:0 | 540 | #: view:l10n.es.aeat.mod340.tax_line_investment:0 |
1147 | 516 | msgid "unknown" | 541 | msgid "Tax line investment goods" |
1148 | 517 | msgstr "unknown" | 542 | msgstr "Línea de impuesto de bienes de inversión" |
1149 | 518 | 543 | ||
1150 | 519 | #. module: l10n_es_aeat_mod340 | 544 | #. module: l10n_es_aeat_mod340 |
1151 | 520 | #: field:l10n.es.aeat.mod340.report,contact_phone:0 | 545 | #: report:report mod340:0 |
1152 | 521 | msgid "Phone" | 546 | #: report:vat book:0 |
1153 | 522 | msgstr "Teléfono" | 547 | msgid "Teléfono de contacto:" |
1154 | 523 | 548 | msgstr "Teléfono de contacto:" | |
1155 | 524 | #. module: l10n_es_aeat_mod340 | 549 | |
1156 | 525 | #: field:account.invoice,last_ticket:0 | 550 | #. module: l10n_es_aeat_mod340 |
1157 | 526 | msgid "Last ticket" | 551 | #: field:l10n.es.aeat.mod340.tax_line_investment,goods_identification:0 |
1158 | 527 | msgstr "Último tique" | 552 | msgid "Investment goods identification" |
1159 | 553 | msgstr "Identificación del bien" | ||
1160 | 554 | |||
1161 | 555 | #. module: l10n_es_aeat_mod340 | ||
1162 | 556 | #: field:l10n.es.aeat.mod340.investment,use_date:0 | ||
1163 | 557 | msgid "Goods use start date" | ||
1164 | 558 | msgstr "Fecha de inicio de utilización" | ||
1165 | 559 | |||
1166 | 560 | #. module: l10n_es_aeat_mod340 | ||
1167 | 561 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:260 | ||
1168 | 562 | #, python-format | ||
1169 | 563 | msgid "Invoice %s: Unable to determine the surcharged tax because it is not mapped in the partner's fiscal position %s" | ||
1170 | 564 | msgstr "Factura %s: No se pudo determinar el impuesto con recargo porque no está mapeado en la posición fiscal de la empresa %s" | ||
1171 | 565 | |||
1172 | 566 | #. module: l10n_es_aeat_mod340 | ||
1173 | 567 | #: view:l10n.es.aeat.mod340.tax_line_intra:0 | ||
1174 | 568 | msgid "Tax line intracommunity" | ||
1175 | 569 | msgstr "Línea de impuesto intracomunitaria" | ||
1176 | 528 | 570 | ||
1177 | 529 | #. module: l10n_es_aeat_mod340 | 571 | #. module: l10n_es_aeat_mod340 |
1178 | 530 | #: field:l10n.es.aeat.mod340.report,previous_number:0 | 572 | #: field:l10n.es.aeat.mod340.report,previous_number:0 |
1179 | @@ -538,13 +580,16 @@ | |||
1180 | 538 | 580 | ||
1181 | 539 | #. module: l10n_es_aeat_mod340 | 581 | #. module: l10n_es_aeat_mod340 |
1182 | 540 | #: report:report mod340:0 | 582 | #: report:report mod340:0 |
1183 | 541 | #: report:report_mod340:0 | ||
1184 | 542 | #: report:vat book:0 | 583 | #: report:vat book:0 |
1185 | 543 | #: report:vat_book:0 | ||
1186 | 544 | msgid "Ejercicio fiscal:" | 584 | msgid "Ejercicio fiscal:" |
1187 | 545 | msgstr "Ejercicio fiscal:" | 585 | msgstr "Ejercicio fiscal:" |
1188 | 546 | 586 | ||
1189 | 547 | #. module: l10n_es_aeat_mod340 | 587 | #. module: l10n_es_aeat_mod340 |
1190 | 588 | #: field:account.invoice,last_ticket:0 | ||
1191 | 589 | msgid "Last ticket" | ||
1192 | 590 | msgstr "Último tique" | ||
1193 | 591 | |||
1194 | 592 | #. module: l10n_es_aeat_mod340 | ||
1195 | 548 | #: field:l10n.es.aeat.mod340.intracomunitarias,partner_country_code:0 | 593 | #: field:l10n.es.aeat.mod340.intracomunitarias,partner_country_code:0 |
1196 | 549 | #: field:l10n.es.aeat.mod340.investment,partner_country_code:0 | 594 | #: field:l10n.es.aeat.mod340.investment,partner_country_code:0 |
1197 | 550 | #: field:l10n.es.aeat.mod340.issued,partner_country_code:0 | 595 | #: field:l10n.es.aeat.mod340.issued,partner_country_code:0 |
1198 | @@ -573,12 +618,20 @@ | |||
1199 | 573 | msgstr "Facturas emitidas" | 618 | msgstr "Facturas emitidas" |
1200 | 574 | 619 | ||
1201 | 575 | #. module: l10n_es_aeat_mod340 | 620 | #. module: l10n_es_aeat_mod340 |
1203 | 576 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:79 | 621 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:58 |
1204 | 622 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:86 | ||
1205 | 623 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:125 | ||
1206 | 624 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:259 | ||
1207 | 577 | #, python-format | 625 | #, python-format |
1208 | 578 | msgid "Error" | 626 | msgid "Error" |
1209 | 579 | msgstr "Error" | 627 | msgstr "Error" |
1210 | 580 | 628 | ||
1211 | 581 | #. module: l10n_es_aeat_mod340 | 629 | #. module: l10n_es_aeat_mod340 |
1212 | 630 | #: view:l10n.es.aeat.mod340.report:0 | ||
1213 | 631 | msgid "Susbtitutive/complementary declaration" | ||
1214 | 632 | msgstr "Declaración sustitutiva/complementaría" | ||
1215 | 633 | |||
1216 | 634 | #. module: l10n_es_aeat_mod340 | ||
1217 | 582 | #: field:l10n.es.aeat.mod340.intracomunitarias,representative_vat:0 | 635 | #: field:l10n.es.aeat.mod340.intracomunitarias,representative_vat:0 |
1218 | 583 | #: field:l10n.es.aeat.mod340.investment,representative_vat:0 | 636 | #: field:l10n.es.aeat.mod340.investment,representative_vat:0 |
1219 | 584 | #: field:l10n.es.aeat.mod340.issued,representative_vat:0 | 637 | #: field:l10n.es.aeat.mod340.issued,representative_vat:0 |
1220 | @@ -598,14 +651,19 @@ | |||
1221 | 598 | msgstr "Facturas emitidas" | 651 | msgstr "Facturas emitidas" |
1222 | 599 | 652 | ||
1223 | 600 | #. module: l10n_es_aeat_mod340 | 653 | #. module: l10n_es_aeat_mod340 |
1224 | 654 | #: view:l10n.es.aeat.mod340.intracomunitarias:0 | ||
1225 | 655 | msgid "Other Intracommunity Operations" | ||
1226 | 656 | msgstr "Otras operaciones intracomunitarias" | ||
1227 | 657 | |||
1228 | 658 | #. module: l10n_es_aeat_mod340 | ||
1229 | 601 | #: report:report mod340:0 | 659 | #: report:report mod340:0 |
1230 | 602 | #: report:report_mod340:0 | ||
1231 | 603 | #: report:vat book:0 | 660 | #: report:vat book:0 |
1232 | 604 | #: report:vat_book:0 | ||
1233 | 605 | msgid "Base imponible" | 661 | msgid "Base imponible" |
1234 | 606 | msgstr "Base imponible" | 662 | msgstr "Base imponible" |
1235 | 607 | 663 | ||
1236 | 608 | #. module: l10n_es_aeat_mod340 | 664 | #. module: l10n_es_aeat_mod340 |
1237 | 665 | #: field:l10n.es.aeat.mod340.tax_line_intra,invoice_record_id:0 | ||
1238 | 666 | #: field:l10n.es.aeat.mod340.tax_line_investment,invoice_record_id:0 | ||
1239 | 609 | #: field:l10n.es.aeat.mod340.tax_line_received,invoice_record_id:0 | 667 | #: field:l10n.es.aeat.mod340.tax_line_received,invoice_record_id:0 |
1240 | 610 | msgid "Invoice received" | 668 | msgid "Invoice received" |
1241 | 611 | msgstr "Facturas recibidas" | 669 | msgstr "Facturas recibidas" |
1242 | @@ -652,19 +710,17 @@ | |||
1243 | 652 | 710 | ||
1244 | 653 | #. module: l10n_es_aeat_mod340 | 711 | #. module: l10n_es_aeat_mod340 |
1245 | 654 | #: report:report mod340:0 | 712 | #: report:report mod340:0 |
1246 | 655 | #: report:report_mod340:0 | ||
1247 | 656 | #: report:vat book:0 | ||
1248 | 657 | #: report:vat_book:0 | ||
1249 | 658 | msgid "Teléfono de contacto:" | ||
1250 | 659 | msgstr "Teléfono de contacto:" | ||
1251 | 660 | |||
1252 | 661 | #. module: l10n_es_aeat_mod340 | ||
1253 | 662 | #: report:report mod340:0 | ||
1254 | 663 | #: report:report_mod340:0 | ||
1255 | 664 | msgid "Código electrónico autoliquidación IVA:" | 713 | msgid "Código electrónico autoliquidación IVA:" |
1256 | 665 | msgstr "Código electrónico autoliquidación IVA:" | 714 | msgstr "Código electrónico autoliquidación IVA:" |
1257 | 666 | 715 | ||
1258 | 667 | #. module: l10n_es_aeat_mod340 | 716 | #. module: l10n_es_aeat_mod340 |
1259 | 717 | #: help:account.tax,ledger_key:0 | ||
1260 | 718 | #: help:account.tax,ledger_key_in:0 | ||
1261 | 719 | #: help:account.tax,ledger_key_out:0 | ||
1262 | 720 | msgid "Determines to which ledger the invoice with this tax will be assigned. Setting a value makes the tax to be accounted in 340 declaration" | ||
1263 | 721 | msgstr "Determina a qué libro se asignará una factura con este impuesto. Establecer un valor hace que el impuesto se tenga en cuenta en la declaración del modelo 340" | ||
1264 | 722 | |||
1265 | 723 | #. module: l10n_es_aeat_mod340 | ||
1266 | 668 | #: selection:res.partner,vat_type:0 | 724 | #: selection:res.partner,vat_type:0 |
1267 | 669 | msgid "5 - Certificado de residencia fiscal" | 725 | msgid "5 - Certificado de residencia fiscal" |
1268 | 670 | msgstr "5 - Certificado de residencia fiscal" | 726 | msgstr "5 - Certificado de residencia fiscal" |
1269 | @@ -676,6 +732,8 @@ | |||
1270 | 676 | msgstr "AEAT 340" | 732 | msgstr "AEAT 340" |
1271 | 677 | 733 | ||
1272 | 678 | #. module: l10n_es_aeat_mod340 | 734 | #. module: l10n_es_aeat_mod340 |
1273 | 735 | #: field:l10n.es.aeat.mod340.tax_line_intra,tax_percentage:0 | ||
1274 | 736 | #: field:l10n.es.aeat.mod340.tax_line_investment,tax_percentage:0 | ||
1275 | 679 | #: field:l10n.es.aeat.mod340.tax_line_issued,tax_percentage:0 | 737 | #: field:l10n.es.aeat.mod340.tax_line_issued,tax_percentage:0 |
1276 | 680 | #: field:l10n.es.aeat.mod340.tax_line_received,tax_percentage:0 | 738 | #: field:l10n.es.aeat.mod340.tax_line_received,tax_percentage:0 |
1277 | 681 | msgid "Tax percentage" | 739 | msgid "Tax percentage" |
1278 | @@ -687,12 +745,16 @@ | |||
1279 | 687 | msgstr "Facturas recibidas" | 745 | msgstr "Facturas recibidas" |
1280 | 688 | 746 | ||
1281 | 689 | #. module: l10n_es_aeat_mod340 | 747 | #. module: l10n_es_aeat_mod340 |
1282 | 748 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_tax_line_intra | ||
1283 | 749 | msgid "Mod340 vat lines intra-community" | ||
1284 | 750 | msgstr "Línea de impuesto intracomunitario del mod340" | ||
1285 | 751 | |||
1286 | 752 | #. module: l10n_es_aeat_mod340 | ||
1287 | 690 | #: help:l10n.es.aeat.mod340.report,number_records:0 | 753 | #: help:l10n.es.aeat.mod340.report,number_records:0 |
1288 | 691 | #: help:l10n.es.aeat.mod340.report,total:0 | 754 | #: help:l10n.es.aeat.mod340.report,total:0 |
1289 | 692 | #: help:l10n.es.aeat.mod340.report,total_sharetax:0 | 755 | #: help:l10n.es.aeat.mod340.report,total_sharetax:0 |
1290 | 693 | #: help:l10n.es.aeat.mod340.report,total_taxable:0 | 756 | #: help:l10n.es.aeat.mod340.report,total_taxable:0 |
1293 | 694 | msgid "" | 757 | msgid "The declaration will include partners with the total \n" |
1292 | 695 | "The declaration will include partners with the total \n" | ||
1294 | 696 | " of operations over this limit" | 758 | " of operations over this limit" |
1295 | 697 | msgstr "La declaración incluye las empresas que no superen este limite" | 759 | msgstr "La declaración incluye las empresas que no superen este limite" |
1296 | 698 | 760 | ||
1297 | @@ -703,21 +765,15 @@ | |||
1298 | 703 | 765 | ||
1299 | 704 | #. module: l10n_es_aeat_mod340 | 766 | #. module: l10n_es_aeat_mod340 |
1300 | 705 | #: report:report mod340:0 | 767 | #: report:report mod340:0 |
1301 | 706 | #: report:report_mod340:0 | ||
1302 | 707 | #: report:vat book:0 | 768 | #: report:vat book:0 |
1303 | 708 | #: report:vat_book:0 | ||
1304 | 709 | msgid "CIF/NIF" | 769 | msgid "CIF/NIF" |
1305 | 710 | msgstr "CIF/NIF" | 770 | msgstr "CIF/NIF" |
1306 | 711 | 771 | ||
1307 | 712 | #. module: l10n_es_aeat_mod340 | 772 | #. module: l10n_es_aeat_mod340 |
1309 | 713 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:196 | 773 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:275 |
1310 | 714 | #, python-format | 774 | #, python-format |
1317 | 715 | msgid "" | 775 | msgid "Invoice %s, Amount untaxed Lines %.2f do not correspond to AmountUntaxed on Invoice %.2f" |
1318 | 716 | "Invoice %s, Amount untaxed Lines %.2f do not correspond to AmountUntaxed on " | 776 | msgstr "Factura %s, el importe sin impuesto de las líneas %.2f no se corresponde con el importe sin impuesto de la factura %.2f" |
1313 | 717 | "Invoice %.2f" | ||
1314 | 718 | msgstr "" | ||
1315 | 719 | "Invoice %s, Amount untaxed Lines %.2f do not correspond to AmountUntaxed on " | ||
1316 | 720 | "Invoice %.2f" | ||
1319 | 721 | 777 | ||
1320 | 722 | #. module: l10n_es_aeat_mod340 | 778 | #. module: l10n_es_aeat_mod340 |
1321 | 723 | #: help:res.partner,vat_type:0 | 779 | #: help:res.partner,vat_type:0 |
1322 | @@ -725,10 +781,13 @@ | |||
1323 | 725 | msgstr "Clave número de identificación en el país de residencia. Modelo 340." | 781 | msgstr "Clave número de identificación en el país de residencia. Modelo 340." |
1324 | 726 | 782 | ||
1325 | 727 | #. module: l10n_es_aeat_mod340 | 783 | #. module: l10n_es_aeat_mod340 |
1326 | 784 | #: view:l10n.es.aeat.mod340.report:0 | ||
1327 | 785 | msgid "322" | ||
1328 | 786 | msgstr "322" | ||
1329 | 787 | |||
1330 | 788 | #. module: l10n_es_aeat_mod340 | ||
1331 | 728 | #: report:report mod340:0 | 789 | #: report:report mod340:0 |
1332 | 729 | #: report:report_mod340:0 | ||
1333 | 730 | #: report:vat book:0 | 790 | #: report:vat book:0 |
1334 | 731 | #: report:vat_book:0 | ||
1335 | 732 | msgid "Número de factura" | 791 | msgid "Número de factura" |
1336 | 733 | msgstr "Número de factura" | 792 | msgstr "Número de factura" |
1337 | 734 | 793 | ||
1338 | @@ -746,8 +805,17 @@ | |||
1339 | 746 | msgstr "NIF del representante legal." | 805 | msgstr "NIF del representante legal." |
1340 | 747 | 806 | ||
1341 | 748 | #. module: l10n_es_aeat_mod340 | 807 | #. module: l10n_es_aeat_mod340 |
1342 | 808 | #: field:account.tax,operation_key:0 | ||
1343 | 809 | #: field:account.tax.template,operation_key:0 | ||
1344 | 810 | #: field:l10n.es.aeat.mod340.intracomunitarias,operation_key:0 | ||
1345 | 811 | #: field:l10n.es.aeat.mod340.investment,operation_key:0 | ||
1346 | 812 | #: field:l10n.es.aeat.mod340.issued,operation_key:0 | ||
1347 | 813 | #: field:l10n.es.aeat.mod340.received,operation_key:0 | ||
1348 | 814 | msgid "Operation Key" | ||
1349 | 815 | msgstr "Clave de operación" | ||
1350 | 816 | |||
1351 | 817 | #. module: l10n_es_aeat_mod340 | ||
1352 | 749 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_investment | 818 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_investment |
1353 | 750 | #: field:l10n.es.aeat.mod340.report,investment:0 | ||
1354 | 751 | msgid "Property Investment" | 819 | msgid "Property Investment" |
1355 | 752 | msgstr "Inmovilizado" | 820 | msgstr "Inmovilizado" |
1356 | 753 | 821 | ||
1357 | @@ -758,12 +826,13 @@ | |||
1358 | 758 | 826 | ||
1359 | 759 | #. module: l10n_es_aeat_mod340 | 827 | #. module: l10n_es_aeat_mod340 |
1360 | 760 | #: report:report mod340:0 | 828 | #: report:report mod340:0 |
1361 | 761 | #: report:report_mod340:0 | ||
1362 | 762 | msgid "Número:" | 829 | msgid "Número:" |
1363 | 763 | msgstr "Número:" | 830 | msgstr "Número:" |
1364 | 764 | 831 | ||
1365 | 765 | #. module: l10n_es_aeat_mod340 | 832 | #. module: l10n_es_aeat_mod340 |
1366 | 766 | #: field:l10n.es.aeat.mod340.report,name:0 | 833 | #: field:l10n.es.aeat.mod340.report,name:0 |
1367 | 834 | #: field:l10n.es.aeat.mod340.tax_line_intra,name:0 | ||
1368 | 835 | #: field:l10n.es.aeat.mod340.tax_line_investment,name:0 | ||
1369 | 767 | #: field:l10n.es.aeat.mod340.tax_line_issued,name:0 | 836 | #: field:l10n.es.aeat.mod340.tax_line_issued,name:0 |
1370 | 768 | #: field:l10n.es.aeat.mod340.tax_line_received,name:0 | 837 | #: field:l10n.es.aeat.mod340.tax_line_received,name:0 |
1371 | 769 | msgid "Name" | 838 | msgid "Name" |
1372 | @@ -783,25 +852,33 @@ | |||
1373 | 783 | msgstr "NIF del representante legal" | 852 | msgstr "NIF del representante legal" |
1374 | 784 | 853 | ||
1375 | 785 | #. module: l10n_es_aeat_mod340 | 854 | #. module: l10n_es_aeat_mod340 |
1376 | 855 | #: code:addons/l10n_es_aeat_mod340/account.py:208 | ||
1377 | 856 | #, python-format | ||
1378 | 857 | msgid "The operation key is different.\n" | ||
1379 | 858 | "" | ||
1380 | 859 | msgstr "La clave de operación es diferente.\n" | ||
1381 | 860 | "" | ||
1382 | 861 | |||
1383 | 862 | #. module: l10n_es_aeat_mod340 | ||
1384 | 863 | #: field:l10n.es.aeat.mod340.report,investment:0 | ||
1385 | 864 | msgid "Investment Goods" | ||
1386 | 865 | msgstr "Bienes de inversión" | ||
1387 | 866 | |||
1388 | 867 | #. module: l10n_es_aeat_mod340 | ||
1389 | 786 | #: report:report mod340:0 | 868 | #: report:report mod340:0 |
1390 | 787 | #: report:report_mod340:0 | ||
1391 | 788 | msgid "Tipo de soporte:" | 869 | msgid "Tipo de soporte:" |
1392 | 789 | msgstr "Tipo de soporte:" | 870 | msgstr "Tipo de soporte:" |
1393 | 790 | 871 | ||
1394 | 791 | #. module: l10n_es_aeat_mod340 | 872 | #. module: l10n_es_aeat_mod340 |
1395 | 792 | #: field:l10n.es.aeat.mod340.report,attach_id:0 | ||
1396 | 793 | msgid "BOE file" | ||
1397 | 794 | msgstr "Archivo BOE" | ||
1398 | 795 | |||
1399 | 796 | #. module: l10n_es_aeat_mod340 | ||
1400 | 797 | #: view:l10n.es.aeat.mod340.report:0 | 873 | #: view:l10n.es.aeat.mod340.report:0 |
1401 | 798 | msgid "Draft models" | 874 | msgid "Draft models" |
1402 | 799 | msgstr "Modelos en borrador" | 875 | msgstr "Modelos en borrador" |
1403 | 800 | 876 | ||
1404 | 801 | #. module: l10n_es_aeat_mod340 | 877 | #. module: l10n_es_aeat_mod340 |
1408 | 802 | #: view:l10n.es.aeat.mod340.report:0 | 878 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:59 |
1409 | 803 | msgid "Fiscal Year" | 879 | #, python-format |
1410 | 804 | msgstr "Año fiscal" | 880 | msgid "Invoice %s: Unable to determine the tax line %s source tax. The base code of the source tax may have been changed, please recompute the invoice taxes" |
1411 | 881 | msgstr "Factura %s: No se pudo determinar el impuesto origen de la línea de impuesto %s. El código de la base del impuesto origen puede haber sido cambiado, por favor recalcule los impuestos de la factura" | ||
1412 | 805 | 882 | ||
1413 | 806 | #. module: l10n_es_aeat_mod340 | 883 | #. module: l10n_es_aeat_mod340 |
1414 | 807 | #: view:account.invoice:0 | 884 | #: view:account.invoice:0 |
1415 | @@ -809,16 +886,22 @@ | |||
1416 | 809 | msgstr "Pagos" | 886 | msgstr "Pagos" |
1417 | 810 | 887 | ||
1418 | 811 | #. module: l10n_es_aeat_mod340 | 888 | #. module: l10n_es_aeat_mod340 |
1429 | 812 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_received | 889 | #: field:l10n.es.aeat.mod340.report,intracomunitarias:0 |
1430 | 813 | #: field:l10n.es.aeat.mod340.report,received:0 | 890 | msgid "Intra-community Operations" |
1431 | 814 | msgid "Invoices Received" | 891 | msgstr "Operaciones intracomunitarias" |
1432 | 815 | msgstr "Facturas recibidas" | 892 | |
1433 | 816 | 893 | #. module: l10n_es_aeat_mod340 | |
1434 | 817 | #. module: l10n_es_aeat_mod340 | 894 | #: sql_constraint:l10n.es.aeat.mod340.investment:0 |
1435 | 818 | #: code:addons/l10n_es_aeat_mod340/account.py:92 | 895 | msgid "The prorata must be between 0 and 100." |
1436 | 819 | #, python-format | 896 | msgstr "La prorrata debe estar entre 0 y 100." |
1437 | 820 | msgid "The info field is different.\n" | 897 | |
1438 | 821 | msgstr "El campo descripción es diferente.\n" | 898 | #. module: l10n_es_aeat_mod340 |
1439 | 899 | #: view:l10n.es.aeat.mod340.intracomunitarias:0 | ||
1440 | 900 | #: view:l10n.es.aeat.mod340.investment:0 | ||
1441 | 901 | #: view:l10n.es.aeat.mod340.issued:0 | ||
1442 | 902 | #: view:l10n.es.aeat.mod340.received:0 | ||
1443 | 903 | msgid "Total Base" | ||
1444 | 904 | msgstr "Total Base" | ||
1445 | 822 | 905 | ||
1446 | 823 | #. module: l10n_es_aeat_mod340 | 906 | #. module: l10n_es_aeat_mod340 |
1447 | 824 | #: selection:l10n.es.aeat.mod340.report,support_type:0 | 907 | #: selection:l10n.es.aeat.mod340.report,support_type:0 |
1448 | @@ -832,13 +915,16 @@ | |||
1449 | 832 | 915 | ||
1450 | 833 | #. module: l10n_es_aeat_mod340 | 916 | #. module: l10n_es_aeat_mod340 |
1451 | 834 | #: report:report mod340:0 | 917 | #: report:report mod340:0 |
1452 | 835 | #: report:report_mod340:0 | ||
1453 | 836 | #: report:vat book:0 | 918 | #: report:vat book:0 |
1454 | 837 | #: report:vat_book:0 | ||
1455 | 838 | msgid "Empresa" | 919 | msgid "Empresa" |
1456 | 839 | msgstr "Empresa" | 920 | msgstr "Empresa" |
1457 | 840 | 921 | ||
1458 | 841 | #. module: l10n_es_aeat_mod340 | 922 | #. module: l10n_es_aeat_mod340 |
1459 | 923 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_export_to_boe | ||
1460 | 924 | msgid "Export Report to BOE Format" | ||
1461 | 925 | msgstr "Exportar a formato BOE" | ||
1462 | 926 | |||
1463 | 927 | #. module: l10n_es_aeat_mod340 | ||
1464 | 842 | #: selection:l10n.es.aeat.mod340.report,type:0 | 928 | #: selection:l10n.es.aeat.mod340.report,type:0 |
1465 | 843 | msgid "Complementary" | 929 | msgid "Complementary" |
1466 | 844 | msgstr "Complementaria" | 930 | msgstr "Complementaria" |
1467 | @@ -850,9 +936,7 @@ | |||
1468 | 850 | 936 | ||
1469 | 851 | #. module: l10n_es_aeat_mod340 | 937 | #. module: l10n_es_aeat_mod340 |
1470 | 852 | #: report:report mod340:0 | 938 | #: report:report mod340:0 |
1471 | 853 | #: report:report_mod340:0 | ||
1472 | 854 | #: report:vat book:0 | 939 | #: report:vat book:0 |
1473 | 855 | #: report:vat_book:0 | ||
1474 | 856 | msgid "Total factura" | 940 | msgid "Total factura" |
1475 | 857 | msgstr "Total factura" | 941 | msgstr "Total factura" |
1476 | 858 | 942 | ||
1477 | @@ -862,15 +946,20 @@ | |||
1478 | 862 | msgstr "Archivo" | 946 | msgstr "Archivo" |
1479 | 863 | 947 | ||
1480 | 864 | #. module: l10n_es_aeat_mod340 | 948 | #. module: l10n_es_aeat_mod340 |
1481 | 949 | #: view:account.tax:0 | ||
1482 | 950 | msgid "onchange_type_tax_use(context)" | ||
1483 | 951 | msgstr "onchange_type_tax_use(context)" | ||
1484 | 952 | |||
1485 | 953 | #. module: l10n_es_aeat_mod340 | ||
1486 | 865 | #: report:report mod340:0 | 954 | #: report:report mod340:0 |
1487 | 866 | #: report:report_mod340:0 | ||
1488 | 867 | #: report:vat book:0 | 955 | #: report:vat book:0 |
1489 | 868 | #: report:vat_book:0 | ||
1490 | 869 | msgid "FACTURAS DE ENTRADA" | 956 | msgid "FACTURAS DE ENTRADA" |
1491 | 870 | msgstr "FACTURAS DE ENTRADA" | 957 | msgstr "FACTURAS DE ENTRADA" |
1492 | 871 | 958 | ||
1493 | 872 | #. module: l10n_es_aeat_mod340 | 959 | #. module: l10n_es_aeat_mod340 |
1494 | 960 | #: view:l10n.es.aeat.mod340.intracomunitarias:0 | ||
1495 | 873 | #: field:l10n.es.aeat.mod340.intracomunitarias,total:0 | 961 | #: field:l10n.es.aeat.mod340.intracomunitarias,total:0 |
1496 | 962 | #: view:l10n.es.aeat.mod340.investment:0 | ||
1497 | 874 | #: field:l10n.es.aeat.mod340.investment,total:0 | 963 | #: field:l10n.es.aeat.mod340.investment,total:0 |
1498 | 875 | #: view:l10n.es.aeat.mod340.issued:0 | 964 | #: view:l10n.es.aeat.mod340.issued:0 |
1499 | 876 | #: field:l10n.es.aeat.mod340.issued,total:0 | 965 | #: field:l10n.es.aeat.mod340.issued,total:0 |
1500 | @@ -881,130 +970,8 @@ | |||
1501 | 881 | msgstr "Total" | 970 | msgstr "Total" |
1502 | 882 | 971 | ||
1503 | 883 | #. module: l10n_es_aeat_mod340 | 972 | #. module: l10n_es_aeat_mod340 |
1510 | 884 | #: model:ir.model,name:l10n_es_aeat_mod340.model_account_tax_code_template | 973 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:167 |
1505 | 885 | msgid "Tax Code Template" | ||
1506 | 886 | msgstr "Plantilla códigos de impuestos" | ||
1507 | 887 | |||
1508 | 888 | #. module: l10n_es_aeat_mod340 | ||
1509 | 889 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:118 | ||
1511 | 890 | #, python-format | 974 | #, python-format |
1512 | 891 | msgid "La siguiente empresa no tiene asignado nif:" | 975 | msgid "La siguiente empresa no tiene asignado nif:" |
1513 | 892 | msgstr "La siguiente empresa no tiene asignado nif:" | 976 | msgstr "La siguiente empresa no tiene asignado nif:" |
1514 | 893 | 977 | ||
1515 | 894 | #~ msgid "May" | ||
1516 | 895 | #~ msgstr "Mayo" | ||
1517 | 896 | |||
1518 | 897 | #~ msgid "June" | ||
1519 | 898 | #~ msgstr "Junio" | ||
1520 | 899 | |||
1521 | 900 | #~ msgid "First quarter" | ||
1522 | 901 | #~ msgstr "Primer trimestre" | ||
1523 | 902 | |||
1524 | 903 | #~ msgid "Third quarter" | ||
1525 | 904 | #~ msgstr "Tercer trimestre" | ||
1526 | 905 | |||
1527 | 906 | #~ msgid "Second quarter" | ||
1528 | 907 | #~ msgstr "Segundo trimestre" | ||
1529 | 908 | |||
1530 | 909 | #~ msgid "January" | ||
1531 | 910 | #~ msgstr "Enero" | ||
1532 | 911 | |||
1533 | 912 | #~ msgid "Fourth quarter" | ||
1534 | 913 | #~ msgstr "Cuarto trimestre" | ||
1535 | 914 | |||
1536 | 915 | #~ msgid "March" | ||
1537 | 916 | #~ msgstr "Marzo" | ||
1538 | 917 | |||
1539 | 918 | #~ msgid "February" | ||
1540 | 919 | #~ msgstr "Febrero" | ||
1541 | 920 | |||
1542 | 921 | #~ msgid "April" | ||
1543 | 922 | #~ msgstr "Abril" | ||
1544 | 923 | |||
1545 | 924 | #~ msgid "August" | ||
1546 | 925 | #~ msgstr "Agosto" | ||
1547 | 926 | |||
1548 | 927 | #~ msgid "September" | ||
1549 | 928 | #~ msgstr "Septiembre" | ||
1550 | 929 | |||
1551 | 930 | #~ msgid "October" | ||
1552 | 931 | #~ msgstr "Octubre" | ||
1553 | 932 | |||
1554 | 933 | #~ msgid "November" | ||
1555 | 934 | #~ msgstr "Noviembre" | ||
1556 | 935 | |||
1557 | 936 | #~ msgid "December" | ||
1558 | 937 | #~ msgstr "Diciembre" | ||
1559 | 938 | |||
1560 | 939 | #~ msgid "July" | ||
1561 | 940 | #~ msgstr "Julio" | ||
1562 | 941 | |||
1563 | 942 | #, python-format | ||
1564 | 943 | #~ msgid "All real state records state code field must be filled." | ||
1565 | 944 | #~ msgstr "" | ||
1566 | 945 | #~ "Los registros de propiedades inmobiliarias deben ser rellenados manualmente." | ||
1567 | 946 | |||
1568 | 947 | #~ msgid "Create and query AEAT Model 340 Reports" | ||
1569 | 948 | #~ msgstr "Crear informe del Model AEAT 340" | ||
1570 | 949 | |||
1571 | 950 | #, python-format | ||
1572 | 951 | #~ msgid "Error!" | ||
1573 | 952 | #~ msgstr "Error!" | ||
1574 | 953 | |||
1575 | 954 | #~ msgid "Confirm" | ||
1576 | 955 | #~ msgstr "Confirmar" | ||
1577 | 956 | |||
1578 | 957 | #, python-format | ||
1579 | 958 | #~ msgid "340_report_%s.txt" | ||
1580 | 959 | #~ msgstr "340_report_%s.txt" | ||
1581 | 960 | |||
1582 | 961 | #, python-format | ||
1583 | 962 | #~ msgid "%Y-%m-%d" | ||
1584 | 963 | #~ msgstr "%d-%m-%Y" | ||
1585 | 964 | |||
1586 | 965 | #~ msgid "Export to BOE" | ||
1587 | 966 | #~ msgstr "Exportar al BOE" | ||
1588 | 967 | |||
1589 | 968 | #, python-format | ||
1590 | 969 | #~ msgid "The periods selected don't belong to the fiscal year %s" | ||
1591 | 970 | #~ msgstr "Los periodos seleccionados no pertenecen al año fiscal %s" | ||
1592 | 971 | |||
1593 | 972 | #~ msgid "Declaration Number" | ||
1594 | 973 | #~ msgstr "Número de declaración" | ||
1595 | 974 | |||
1596 | 975 | #~ msgid "Canceled" | ||
1597 | 976 | #~ msgstr "Cancelado" | ||
1598 | 977 | |||
1599 | 978 | #~ msgid "Calculate" | ||
1600 | 979 | #~ msgstr "Calcular" | ||
1601 | 980 | |||
1602 | 981 | #, python-format | ||
1603 | 982 | #~ msgid "All partner state code field must be filled." | ||
1604 | 983 | #~ msgstr "Todos las empresas deben tener provincia." | ||
1605 | 984 | |||
1606 | 985 | #, python-format | ||
1607 | 986 | #~ msgid "All partner vat number field must be filled." | ||
1608 | 987 | #~ msgstr "Todas las empresas deben tener CIF/NIF." | ||
1609 | 988 | |||
1610 | 989 | #~ msgid "Processing" | ||
1611 | 990 | #~ msgstr "Procesando" | ||
1612 | 991 | |||
1613 | 992 | #~ msgid "Cancel" | ||
1614 | 993 | #~ msgstr "Cancelar" | ||
1615 | 994 | |||
1616 | 995 | #~ msgid "Recalculate" | ||
1617 | 996 | #~ msgstr "Recalcular" | ||
1618 | 997 | |||
1619 | 998 | #~ msgid "AEAT Model 340" | ||
1620 | 999 | #~ msgstr "Modelo AEAT 340" | ||
1621 | 1000 | |||
1622 | 1001 | #~ msgid "" | ||
1623 | 1002 | #~ "The declaration will include partners with the total of operations over this " | ||
1624 | 1003 | #~ "limit" | ||
1625 | 1004 | #~ msgstr "La declaración incluye las empresas que no superen este limite" | ||
1626 | 1005 | |||
1627 | 1006 | #~ msgid "Previous Declaration Number" | ||
1628 | 1007 | #~ msgstr "Número de la declaración anterior" | ||
1629 | 1008 | |||
1630 | 1009 | #~ msgid "Period" | ||
1631 | 1010 | #~ msgstr "Periodo" | ||
1632 | 1011 | 978 | ||
1633 | === modified file 'l10n_es_aeat_mod340/i18n/l10n_es_aeat_mod340.pot' | |||
1634 | --- l10n_es_aeat_mod340/i18n/l10n_es_aeat_mod340.pot 2014-02-14 18:31:18 +0000 | |||
1635 | +++ l10n_es_aeat_mod340/i18n/l10n_es_aeat_mod340.pot 2014-06-01 16:57:08 +0000 | |||
1636 | @@ -4,10 +4,10 @@ | |||
1637 | 4 | # | 4 | # |
1638 | 5 | msgid "" | 5 | msgid "" |
1639 | 6 | msgstr "" | 6 | msgstr "" |
1641 | 7 | "Project-Id-Version: OpenERP Server 7.0\n" | 7 | "Project-Id-Version: OpenERP Server 7.0-20140331-231318\n" |
1642 | 8 | "Report-Msgid-Bugs-To: \n" | 8 | "Report-Msgid-Bugs-To: \n" |
1645 | 9 | "POT-Creation-Date: 2014-02-02 18:10+0000\n" | 9 | "POT-Creation-Date: 2014-04-01 10:50+0000\n" |
1646 | 10 | "PO-Revision-Date: 2014-02-02 18:10+0000\n" | 10 | "PO-Revision-Date: 2014-04-01 10:50+0000\n" |
1647 | 11 | "Last-Translator: <>\n" | 11 | "Last-Translator: <>\n" |
1648 | 12 | "Language-Team: \n" | 12 | "Language-Team: \n" |
1649 | 13 | "MIME-Version: 1.0\n" | 13 | "MIME-Version: 1.0\n" |
1650 | @@ -17,7 +17,7 @@ | |||
1651 | 17 | 17 | ||
1652 | 18 | #. module: l10n_es_aeat_mod340 | 18 | #. module: l10n_es_aeat_mod340 |
1653 | 19 | #: report:report mod340:0 | 19 | #: report:report mod340:0 |
1655 | 20 | #: report:vat_book:0 | 20 | #: report:vat book:0 |
1656 | 21 | msgid "FACTURAS DE SALIDA" | 21 | msgid "FACTURAS DE SALIDA" |
1657 | 22 | msgstr "" | 22 | msgstr "" |
1658 | 23 | 23 | ||
1659 | @@ -28,9 +28,7 @@ | |||
1660 | 28 | 28 | ||
1661 | 29 | #. module: l10n_es_aeat_mod340 | 29 | #. module: l10n_es_aeat_mod340 |
1662 | 30 | #: report:report mod340:0 | 30 | #: report:report mod340:0 |
1663 | 31 | #: report:report_mod340:0 | ||
1664 | 32 | #: report:vat book:0 | 31 | #: report:vat book:0 |
1665 | 33 | #: report:vat_book:0 | ||
1666 | 34 | msgid "Compañía:" | 32 | msgid "Compañía:" |
1667 | 35 | msgstr "" | 33 | msgstr "" |
1668 | 36 | 34 | ||
1669 | @@ -50,10 +48,13 @@ | |||
1670 | 50 | msgstr "" | 48 | msgstr "" |
1671 | 51 | 49 | ||
1672 | 52 | #. module: l10n_es_aeat_mod340 | 50 | #. module: l10n_es_aeat_mod340 |
1677 | 53 | #: code:addons/l10n_es_aeat_mod340/account.py:89 | 51 | #: help:l10n.es.aeat.mod340.report,investment_goods_prorating:0 |
1678 | 54 | #, python-format | 52 | msgid "If checked, the investment goods invoices will be exported in their ledger. If not, they will be exported as received invoices" |
1679 | 55 | msgid "The code field is different.\n" | 53 | msgstr "" |
1680 | 56 | "" | 54 | |
1681 | 55 | #. module: l10n_es_aeat_mod340 | ||
1682 | 56 | #: field:l10n.es.aeat.mod340.report,investment_goods_prorating:0 | ||
1683 | 57 | msgid "Investment goods prorating" | ||
1684 | 57 | msgstr "" | 58 | msgstr "" |
1685 | 58 | 59 | ||
1686 | 59 | #. module: l10n_es_aeat_mod340 | 60 | #. module: l10n_es_aeat_mod340 |
1687 | @@ -67,15 +68,15 @@ | |||
1688 | 67 | msgstr "" | 68 | msgstr "" |
1689 | 68 | 69 | ||
1690 | 69 | #. module: l10n_es_aeat_mod340 | 70 | #. module: l10n_es_aeat_mod340 |
1692 | 70 | #: code:addons/l10n_es_aeat_mod340/account.py:161 | 71 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:126 |
1693 | 71 | #, python-format | 72 | #, python-format |
1696 | 72 | msgid "Created tax code %s.\n" | 73 | msgid "The periods selected don't belong to the fiscal year %s" |
1695 | 73 | "" | ||
1697 | 74 | msgstr "" | 74 | msgstr "" |
1698 | 75 | 75 | ||
1699 | 76 | #. module: l10n_es_aeat_mod340 | 76 | #. module: l10n_es_aeat_mod340 |
1702 | 77 | #: view:l10n.es.aeat.mod340.report:0 | 77 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:87 |
1703 | 78 | msgid "Susbtitutive/complementary declaration" | 78 | #, python-format |
1704 | 79 | msgid "No match found for tax percentage %s" | ||
1705 | 79 | msgstr "" | 80 | msgstr "" |
1706 | 80 | 81 | ||
1707 | 81 | #. module: l10n_es_aeat_mod340 | 82 | #. module: l10n_es_aeat_mod340 |
1708 | @@ -85,17 +86,12 @@ | |||
1709 | 85 | msgstr "" | 86 | msgstr "" |
1710 | 86 | 87 | ||
1711 | 87 | #. module: l10n_es_aeat_mod340 | 88 | #. module: l10n_es_aeat_mod340 |
1712 | 88 | #: field:l10n.es.aeat.mod340.report,total_sharetax:0 | ||
1713 | 89 | msgid "Total Share Tax" | ||
1714 | 90 | msgstr "" | ||
1715 | 91 | |||
1716 | 92 | #. module: l10n_es_aeat_mod340 | ||
1717 | 93 | #: field:l10n.es.aeat.mod340.report,number_records:0 | 89 | #: field:l10n.es.aeat.mod340.report,number_records:0 |
1718 | 94 | msgid "Records" | 90 | msgid "Records" |
1719 | 95 | msgstr "" | 91 | msgstr "" |
1720 | 96 | 92 | ||
1721 | 97 | #. module: l10n_es_aeat_mod340 | 93 | #. module: l10n_es_aeat_mod340 |
1723 | 98 | #: code:addons/l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py:390 | 94 | #: code:addons/l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py:411 |
1724 | 99 | #, python-format | 95 | #, python-format |
1725 | 100 | msgid "The type 2 received record must be 500 characters long for each Vat registry" | 96 | msgid "The type 2 received record must be 500 characters long for each Vat registry" |
1726 | 101 | msgstr "" | 97 | msgstr "" |
1727 | @@ -115,6 +111,8 @@ | |||
1728 | 115 | #: field:l10n.es.aeat.mod340.investment,base_tax:0 | 111 | #: field:l10n.es.aeat.mod340.investment,base_tax:0 |
1729 | 116 | #: field:l10n.es.aeat.mod340.issued,base_tax:0 | 112 | #: field:l10n.es.aeat.mod340.issued,base_tax:0 |
1730 | 117 | #: field:l10n.es.aeat.mod340.received,base_tax:0 | 113 | #: field:l10n.es.aeat.mod340.received,base_tax:0 |
1731 | 114 | #: field:l10n.es.aeat.mod340.tax_line_intra,base_amount:0 | ||
1732 | 115 | #: field:l10n.es.aeat.mod340.tax_line_investment,base_amount:0 | ||
1733 | 118 | #: field:l10n.es.aeat.mod340.tax_line_issued,base_amount:0 | 116 | #: field:l10n.es.aeat.mod340.tax_line_issued,base_amount:0 |
1734 | 119 | #: field:l10n.es.aeat.mod340.tax_line_received,base_amount:0 | 117 | #: field:l10n.es.aeat.mod340.tax_line_received,base_amount:0 |
1735 | 120 | msgid "Base tax bill" | 118 | msgid "Base tax bill" |
1736 | @@ -127,9 +125,7 @@ | |||
1737 | 127 | 125 | ||
1738 | 128 | #. module: l10n_es_aeat_mod340 | 126 | #. module: l10n_es_aeat_mod340 |
1739 | 129 | #: report:report mod340:0 | 127 | #: report:report mod340:0 |
1740 | 130 | #: report:report_mod340:0 | ||
1741 | 131 | #: report:vat book:0 | 128 | #: report:vat book:0 |
1742 | 132 | #: report:vat_book:0 | ||
1743 | 133 | msgid "Apellidos y nombre de contacto:" | 129 | msgid "Apellidos y nombre de contacto:" |
1744 | 134 | msgstr "" | 130 | msgstr "" |
1745 | 135 | 131 | ||
1746 | @@ -140,7 +136,6 @@ | |||
1747 | 140 | 136 | ||
1748 | 141 | #. module: l10n_es_aeat_mod340 | 137 | #. module: l10n_es_aeat_mod340 |
1749 | 142 | #: field:account.tax.code,mod340:0 | 138 | #: field:account.tax.code,mod340:0 |
1750 | 143 | #: field:account.tax.code.template,mod340:0 | ||
1751 | 144 | msgid "Include in mod340" | 139 | msgid "Include in mod340" |
1752 | 145 | msgstr "" | 140 | msgstr "" |
1753 | 146 | 141 | ||
1754 | @@ -175,7 +170,8 @@ | |||
1755 | 175 | msgstr "" | 170 | msgstr "" |
1756 | 176 | 171 | ||
1757 | 177 | #. module: l10n_es_aeat_mod340 | 172 | #. module: l10n_es_aeat_mod340 |
1759 | 178 | #: code:addons/l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py:283 | 173 | #: code:addons/l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py:291 |
1760 | 174 | #: code:addons/l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py:529 | ||
1761 | 179 | #, python-format | 175 | #, python-format |
1762 | 180 | msgid "The type 2 issued record must be 500 characters long for each Vat registry" | 176 | msgid "The type 2 issued record must be 500 characters long for each Vat registry" |
1763 | 181 | msgstr "" | 177 | msgstr "" |
1764 | @@ -186,25 +182,21 @@ | |||
1765 | 186 | msgstr "" | 182 | msgstr "" |
1766 | 187 | 183 | ||
1767 | 188 | #. module: l10n_es_aeat_mod340 | 184 | #. module: l10n_es_aeat_mod340 |
1772 | 189 | #: code:addons/l10n_es_aeat_mod340/account.py:170 | 185 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_report |
1773 | 190 | #, python-format | 186 | #: field:l10n.es.aeat.mod340.intracomunitarias,mod340_id:0 |
1774 | 191 | msgid "Updated tax code %s.\n" | 187 | #: field:l10n.es.aeat.mod340.investment,mod340_id:0 |
1775 | 192 | "" | 188 | #: field:l10n.es.aeat.mod340.issued,mod340_id:0 |
1776 | 189 | #: field:l10n.es.aeat.mod340.received,mod340_id:0 | ||
1777 | 190 | #: view:l10n.es.aeat.mod340.report:0 | ||
1778 | 191 | msgid "Model 340" | ||
1779 | 193 | msgstr "" | 192 | msgstr "" |
1780 | 194 | 193 | ||
1781 | 195 | #. module: l10n_es_aeat_mod340 | 194 | #. module: l10n_es_aeat_mod340 |
1782 | 196 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_intracomunitarias | 195 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_intracomunitarias |
1783 | 197 | #: field:l10n.es.aeat.mod340.report,intracomunitarias:0 | ||
1784 | 198 | msgid "Operations Intracomunitarias" | 196 | msgid "Operations Intracomunitarias" |
1785 | 199 | msgstr "" | 197 | msgstr "" |
1786 | 200 | 198 | ||
1787 | 201 | #. module: l10n_es_aeat_mod340 | 199 | #. module: l10n_es_aeat_mod340 |
1788 | 202 | #: field:l10n.es.aeat.mod340.tax_line_issued,tax_amount:0 | ||
1789 | 203 | #: field:l10n.es.aeat.mod340.tax_line_received,tax_amount:0 | ||
1790 | 204 | msgid "Tax amount" | ||
1791 | 205 | msgstr "" | ||
1792 | 206 | |||
1793 | 207 | #. module: l10n_es_aeat_mod340 | ||
1794 | 208 | #: view:l10n.es.aeat.mod340.report:0 | 200 | #: view:l10n.es.aeat.mod340.report:0 |
1795 | 209 | #: field:l10n.es.aeat.mod340.report,ean13:0 | 201 | #: field:l10n.es.aeat.mod340.report,ean13:0 |
1796 | 210 | msgid "Electronic Code VAT reverse charge" | 202 | msgid "Electronic Code VAT reverse charge" |
1797 | @@ -216,36 +208,20 @@ | |||
1798 | 216 | msgstr "" | 208 | msgstr "" |
1799 | 217 | 209 | ||
1800 | 218 | #. module: l10n_es_aeat_mod340 | 210 | #. module: l10n_es_aeat_mod340 |
1801 | 219 | #: code:addons/l10n_es_aeat_mod340/account.py:98 | ||
1802 | 220 | #, python-format | ||
1803 | 221 | msgid "The Mod 340 field is different.\n" | ||
1804 | 222 | "" | ||
1805 | 223 | msgstr "" | ||
1806 | 224 | |||
1807 | 225 | #. module: l10n_es_aeat_mod340 | ||
1808 | 226 | #: view:l10n.es.aeat.mod340.report:0 | 211 | #: view:l10n.es.aeat.mod340.report:0 |
1809 | 227 | msgid "Identification" | 212 | msgid "Identification" |
1810 | 228 | msgstr "" | 213 | msgstr "" |
1811 | 229 | 214 | ||
1812 | 230 | #. module: l10n_es_aeat_mod340 | 215 | #. module: l10n_es_aeat_mod340 |
1818 | 231 | #: view:l10n.es.aeat.mod340.report:0 | 216 | #: view:l10n.es.aeat.mod340.intracomunitarias:0 |
1819 | 232 | msgid "295" | 217 | #: view:l10n.es.aeat.mod340.investment:0 |
1815 | 233 | msgstr "" | ||
1816 | 234 | |||
1817 | 235 | #. module: l10n_es_aeat_mod340 | ||
1820 | 236 | #: view:l10n.es.aeat.mod340.issued:0 | 218 | #: view:l10n.es.aeat.mod340.issued:0 |
1821 | 237 | #: view:l10n.es.aeat.mod340.received:0 | 219 | #: view:l10n.es.aeat.mod340.received:0 |
1822 | 238 | msgid "Total Tax" | 220 | msgid "Total Tax" |
1823 | 239 | msgstr "" | 221 | msgstr "" |
1824 | 240 | 222 | ||
1825 | 241 | #. module: l10n_es_aeat_mod340 | 223 | #. module: l10n_es_aeat_mod340 |
1826 | 242 | #: model:ir.actions.report.xml,name:l10n_es_aeat_mod340.report_mod340_action | ||
1827 | 243 | msgid "mod340 report" | ||
1828 | 244 | msgstr "" | ||
1829 | 245 | |||
1830 | 246 | #. module: l10n_es_aeat_mod340 | ||
1831 | 247 | #: report:vat book:0 | 224 | #: report:vat book:0 |
1832 | 248 | #: report:vat_book:0 | ||
1833 | 249 | msgid "LIBRO DE IVA" | 225 | msgid "LIBRO DE IVA" |
1834 | 250 | msgstr "" | 226 | msgstr "" |
1835 | 251 | 227 | ||
1836 | @@ -255,9 +231,41 @@ | |||
1837 | 255 | msgstr "" | 231 | msgstr "" |
1838 | 256 | 232 | ||
1839 | 257 | #. module: l10n_es_aeat_mod340 | 233 | #. module: l10n_es_aeat_mod340 |
1843 | 258 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:66 | 234 | #: field:l10n.es.aeat.mod340.tax_line_intra,tax_amount:0 |
1844 | 259 | #, python-format | 235 | #: field:l10n.es.aeat.mod340.tax_line_investment,tax_amount:0 |
1845 | 260 | msgid "This company dont have NIF" | 236 | #: field:l10n.es.aeat.mod340.tax_line_issued,tax_amount:0 |
1846 | 237 | #: field:l10n.es.aeat.mod340.tax_line_received,tax_amount:0 | ||
1847 | 238 | msgid "Tax amount" | ||
1848 | 239 | msgstr "" | ||
1849 | 240 | |||
1850 | 241 | #. module: l10n_es_aeat_mod340 | ||
1851 | 242 | #: field:account.tax,ledger_key:0 | ||
1852 | 243 | #: field:account.tax,ledger_key_in:0 | ||
1853 | 244 | #: field:account.tax,ledger_key_out:0 | ||
1854 | 245 | #: field:account.tax.template,ledger_key:0 | ||
1855 | 246 | #: field:l10n.es.aeat.mod340.intracomunitarias,ledger_key:0 | ||
1856 | 247 | #: field:l10n.es.aeat.mod340.investment,ledger_key:0 | ||
1857 | 248 | #: field:l10n.es.aeat.mod340.issued,ledger_key:0 | ||
1858 | 249 | #: field:l10n.es.aeat.mod340.received,ledger_key:0 | ||
1859 | 250 | msgid "Ledger Key" | ||
1860 | 251 | msgstr "" | ||
1861 | 252 | |||
1862 | 253 | #. module: l10n_es_aeat_mod340 | ||
1863 | 254 | #: field:l10n.es.aeat.mod340.tax_line_intra,surcharge_percentage:0 | ||
1864 | 255 | #: field:l10n.es.aeat.mod340.tax_line_investment,surcharge_percentage:0 | ||
1865 | 256 | #: field:l10n.es.aeat.mod340.tax_line_issued,surcharge_percentage:0 | ||
1866 | 257 | #: field:l10n.es.aeat.mod340.tax_line_received,surcharge_percentage:0 | ||
1867 | 258 | msgid "Surcharge percentage" | ||
1868 | 259 | msgstr "" | ||
1869 | 260 | |||
1870 | 261 | #. module: l10n_es_aeat_mod340 | ||
1871 | 262 | #: model:ir.model,name:l10n_es_aeat_mod340.model_account_tax | ||
1872 | 263 | msgid "Tax" | ||
1873 | 264 | msgstr "" | ||
1874 | 265 | |||
1875 | 266 | #. module: l10n_es_aeat_mod340 | ||
1876 | 267 | #: view:l10n.es.aeat.mod340.report:0 | ||
1877 | 268 | msgid "Fiscal Year" | ||
1878 | 261 | msgstr "" | 269 | msgstr "" |
1879 | 262 | 270 | ||
1880 | 263 | #. module: l10n_es_aeat_mod340 | 271 | #. module: l10n_es_aeat_mod340 |
1881 | @@ -276,6 +284,11 @@ | |||
1882 | 276 | msgstr "" | 284 | msgstr "" |
1883 | 277 | 285 | ||
1884 | 278 | #. module: l10n_es_aeat_mod340 | 286 | #. module: l10n_es_aeat_mod340 |
1885 | 287 | #: model:ir.model,name:l10n_es_aeat_mod340.model_account_tax_template | ||
1886 | 288 | msgid "Templates for Taxes" | ||
1887 | 289 | msgstr "" | ||
1888 | 290 | |||
1889 | 291 | #. module: l10n_es_aeat_mod340 | ||
1890 | 279 | #: model:ir.ui.menu,name:l10n_es_aeat_mod340.menu_aeat_mod340_report | 292 | #: model:ir.ui.menu,name:l10n_es_aeat_mod340.menu_aeat_mod340_report |
1891 | 280 | msgid "AEAT 340 Model" | 293 | msgid "AEAT 340 Model" |
1892 | 281 | msgstr "" | 294 | msgstr "" |
1893 | @@ -290,7 +303,6 @@ | |||
1894 | 290 | 303 | ||
1895 | 291 | #. module: l10n_es_aeat_mod340 | 304 | #. module: l10n_es_aeat_mod340 |
1896 | 292 | #: report:vat book:0 | 305 | #: report:vat book:0 |
1897 | 293 | #: report:vat_book:0 | ||
1898 | 294 | msgid "Nº de factura" | 306 | msgid "Nº de factura" |
1899 | 295 | msgstr "" | 307 | msgstr "" |
1900 | 296 | 308 | ||
1901 | @@ -303,6 +315,16 @@ | |||
1902 | 303 | msgstr "" | 315 | msgstr "" |
1903 | 304 | 316 | ||
1904 | 305 | #. module: l10n_es_aeat_mod340 | 317 | #. module: l10n_es_aeat_mod340 |
1905 | 318 | #: field:l10n.es.aeat.mod340.tax_line_intra,surcharge_amount:0 | ||
1906 | 319 | #: field:l10n.es.aeat.mod340.tax_line_investment,surcharge_amount:0 | ||
1907 | 320 | #: field:l10n.es.aeat.mod340.tax_line_issued,surcharge_amount:0 | ||
1908 | 321 | #: field:l10n.es.aeat.mod340.tax_line_received,surcharge_amount:0 | ||
1909 | 322 | msgid "Surcharge amount" | ||
1910 | 323 | msgstr "" | ||
1911 | 324 | |||
1912 | 325 | #. module: l10n_es_aeat_mod340 | ||
1913 | 326 | #: view:account.tax:0 | ||
1914 | 327 | #: view:account.tax.template:0 | ||
1915 | 306 | #: model:ir.actions.report.xml,name:l10n_es_aeat_mod340.report_mod340 | 328 | #: model:ir.actions.report.xml,name:l10n_es_aeat_mod340.report_mod340 |
1916 | 307 | msgid "Modelo 340" | 329 | msgid "Modelo 340" |
1917 | 308 | msgstr "" | 330 | msgstr "" |
1918 | @@ -318,7 +340,7 @@ | |||
1919 | 318 | msgstr "" | 340 | msgstr "" |
1920 | 319 | 341 | ||
1921 | 320 | #. module: l10n_es_aeat_mod340 | 342 | #. module: l10n_es_aeat_mod340 |
1923 | 321 | #: code:addons/l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py:105 | 343 | #: code:addons/l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py:113 |
1924 | 322 | #, python-format | 344 | #, python-format |
1925 | 323 | msgid "The period hasn't a valid Mod340 period" | 345 | msgid "The period hasn't a valid Mod340 period" |
1926 | 324 | msgstr "" | 346 | msgstr "" |
1927 | @@ -334,32 +356,24 @@ | |||
1928 | 334 | msgstr "" | 356 | msgstr "" |
1929 | 335 | 357 | ||
1930 | 336 | #. module: l10n_es_aeat_mod340 | 358 | #. module: l10n_es_aeat_mod340 |
1937 | 337 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_export_to_boe | 359 | #: code:addons/l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py:134 |
1932 | 338 | msgid "Export AEAT Model 340 to BOE format" | ||
1933 | 339 | msgstr "" | ||
1934 | 340 | |||
1935 | 341 | #. module: l10n_es_aeat_mod340 | ||
1936 | 342 | #: code:addons/l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py:126 | ||
1938 | 343 | #, python-format | 360 | #, python-format |
1939 | 344 | msgid "The type 1 record must be 500 characters long" | 361 | msgid "The type 1 record must be 500 characters long" |
1940 | 345 | msgstr "" | 362 | msgstr "" |
1941 | 346 | 363 | ||
1942 | 347 | #. module: l10n_es_aeat_mod340 | 364 | #. module: l10n_es_aeat_mod340 |
1943 | 348 | #: report:report mod340:0 | 365 | #: report:report mod340:0 |
1944 | 349 | #: report:report_mod340:0 | ||
1945 | 350 | #: report:vat book:0 | 366 | #: report:vat book:0 |
1946 | 351 | #: report:vat_book:0 | ||
1947 | 352 | msgid "CIF/NIF:" | 367 | msgid "CIF/NIF:" |
1948 | 353 | msgstr "" | 368 | msgstr "" |
1949 | 354 | 369 | ||
1950 | 355 | #. module: l10n_es_aeat_mod340 | 370 | #. module: l10n_es_aeat_mod340 |
1953 | 356 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_tax_line_issued | 371 | #: field:l10n.es.aeat.mod340.report,calculation_date:0 |
1954 | 357 | msgid "Mod340 vat lines issued" | 372 | msgid "Calculation date" |
1955 | 358 | msgstr "" | 373 | msgstr "" |
1956 | 359 | 374 | ||
1957 | 360 | #. module: l10n_es_aeat_mod340 | 375 | #. module: l10n_es_aeat_mod340 |
1958 | 361 | #: report:report mod340:0 | 376 | #: report:report mod340:0 |
1959 | 362 | #: report:report_mod340:0 | ||
1960 | 363 | msgid "CIF/NIF del representante legal:" | 377 | msgid "CIF/NIF del representante legal:" |
1961 | 364 | msgstr "" | 378 | msgstr "" |
1962 | 365 | 379 | ||
1963 | @@ -373,21 +387,13 @@ | |||
1964 | 373 | msgstr "" | 387 | msgstr "" |
1965 | 374 | 388 | ||
1966 | 375 | #. module: l10n_es_aeat_mod340 | 389 | #. module: l10n_es_aeat_mod340 |
1967 | 376 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:80 | ||
1968 | 377 | #, python-format | ||
1969 | 378 | msgid "The periods selected don't belong to the fiscal year %s" | ||
1970 | 379 | msgstr "" | ||
1971 | 380 | |||
1972 | 381 | #. module: l10n_es_aeat_mod340 | ||
1973 | 382 | #: model:ir.actions.act_window,help:l10n_es_aeat_mod340.action_l10n_es_aeat_mod340_report | 390 | #: model:ir.actions.act_window,help:l10n_es_aeat_mod340.action_l10n_es_aeat_mod340_report |
1974 | 383 | msgid "Create and query AEAT Model 340 reports" | 391 | msgid "Create and query AEAT Model 340 reports" |
1975 | 384 | msgstr "" | 392 | msgstr "" |
1976 | 385 | 393 | ||
1977 | 386 | #. module: l10n_es_aeat_mod340 | 394 | #. module: l10n_es_aeat_mod340 |
1978 | 387 | #: report:report mod340:0 | 395 | #: report:report mod340:0 |
1979 | 388 | #: report:report_mod340:0 | ||
1980 | 389 | #: report:vat book:0 | 396 | #: report:vat book:0 |
1981 | 390 | #: report:vat_book:0 | ||
1982 | 391 | msgid "Cuota impuesto" | 397 | msgid "Cuota impuesto" |
1983 | 392 | msgstr "" | 398 | msgstr "" |
1984 | 393 | 399 | ||
1985 | @@ -397,31 +403,42 @@ | |||
1986 | 397 | msgstr "" | 403 | msgstr "" |
1987 | 398 | 404 | ||
1988 | 399 | #. module: l10n_es_aeat_mod340 | 405 | #. module: l10n_es_aeat_mod340 |
1989 | 406 | #: view:l10n.es.aeat.mod340.report:0 | ||
1990 | 407 | msgid "Other intracommunity operations" | ||
1991 | 408 | msgstr "" | ||
1992 | 409 | |||
1993 | 410 | #. module: l10n_es_aeat_mod340 | ||
1994 | 400 | #: report:report mod340:0 | 411 | #: report:report mod340:0 |
1995 | 401 | #: report:report_mod340:0 | ||
1996 | 402 | msgid "MODELO AEAT 340" | 412 | msgid "MODELO AEAT 340" |
1997 | 403 | msgstr "" | 413 | msgstr "" |
1998 | 404 | 414 | ||
1999 | 405 | #. module: l10n_es_aeat_mod340 | 415 | #. module: l10n_es_aeat_mod340 |
2004 | 406 | #: code:addons/l10n_es_aeat_mod340/account.py:95 | 416 | #: view:l10n.es.aeat.mod340.investment:0 |
2005 | 407 | #, python-format | 417 | #: view:l10n.es.aeat.mod340.report:0 |
2006 | 408 | msgid "The sign field is different.\n" | 418 | msgid "Investment goods" |
2007 | 409 | "" | 419 | msgstr "" |
2008 | 420 | |||
2009 | 421 | #. module: l10n_es_aeat_mod340 | ||
2010 | 422 | #: field:l10n.es.aeat.mod340.export_to_boe,state:0 | ||
2011 | 423 | msgid "unknown" | ||
2012 | 424 | msgstr "" | ||
2013 | 425 | |||
2014 | 426 | #. module: l10n_es_aeat_mod340 | ||
2015 | 427 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_tax_line_investment | ||
2016 | 428 | msgid "Mod340 vat lines investment" | ||
2017 | 410 | msgstr "" | 429 | msgstr "" |
2018 | 411 | 430 | ||
2019 | 412 | #. module: l10n_es_aeat_mod340 | 431 | #. module: l10n_es_aeat_mod340 |
2020 | 413 | #: report:report mod340:0 | 432 | #: report:report mod340:0 |
2021 | 414 | #: report:report_mod340:0 | ||
2022 | 415 | msgid "Tipo de declaración" | 433 | msgid "Tipo de declaración" |
2023 | 416 | msgstr "" | 434 | msgstr "" |
2024 | 417 | 435 | ||
2025 | 418 | #. module: l10n_es_aeat_mod340 | 436 | #. module: l10n_es_aeat_mod340 |
2028 | 419 | #: field:l10n.es.aeat.mod340.report,calculation_date:0 | 437 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_tax_line_issued |
2029 | 420 | msgid "Calculation date" | 438 | msgid "Mod340 vat lines issued" |
2030 | 421 | msgstr "" | 439 | msgstr "" |
2031 | 422 | 440 | ||
2032 | 423 | #. module: l10n_es_aeat_mod340 | 441 | #. module: l10n_es_aeat_mod340 |
2033 | 424 | #: model:ir.actions.report.xml,name:l10n_es_aeat_mod340.report_vat_book_action | ||
2034 | 425 | #: model:ir.actions.report.xml,name:l10n_es_aeat_mod340.vat_book | 442 | #: model:ir.actions.report.xml,name:l10n_es_aeat_mod340.vat_book |
2035 | 426 | msgid "Vat Book" | 443 | msgid "Vat Book" |
2036 | 427 | msgstr "" | 444 | msgstr "" |
2037 | @@ -432,10 +449,8 @@ | |||
2038 | 432 | msgstr "" | 449 | msgstr "" |
2039 | 433 | 450 | ||
2040 | 434 | #. module: l10n_es_aeat_mod340 | 451 | #. module: l10n_es_aeat_mod340 |
2045 | 435 | #: code:addons/l10n_es_aeat_mod340/account.py:185 | 452 | #: field:l10n.es.aeat.mod340.report,total_sharetax:0 |
2046 | 436 | #, python-format | 453 | msgid "Total Share Tax" |
2043 | 437 | msgid "Tax code %s: The parent tax code %s can not be set.\n" | ||
2044 | 438 | "" | ||
2047 | 439 | msgstr "" | 454 | msgstr "" |
2048 | 440 | 455 | ||
2049 | 441 | #. module: l10n_es_aeat_mod340 | 456 | #. module: l10n_es_aeat_mod340 |
2050 | @@ -445,9 +460,7 @@ | |||
2051 | 445 | 460 | ||
2052 | 446 | #. module: l10n_es_aeat_mod340 | 461 | #. module: l10n_es_aeat_mod340 |
2053 | 447 | #: report:report mod340:0 | 462 | #: report:report mod340:0 |
2054 | 448 | #: report:report_mod340:0 | ||
2055 | 449 | #: report:vat book:0 | 463 | #: report:vat book:0 |
2056 | 450 | #: report:vat_book:0 | ||
2057 | 451 | msgid "Fecha" | 464 | msgid "Fecha" |
2058 | 452 | msgstr "" | 465 | msgstr "" |
2059 | 453 | 466 | ||
2060 | @@ -457,14 +470,20 @@ | |||
2061 | 457 | msgstr "" | 470 | msgstr "" |
2062 | 458 | 471 | ||
2063 | 459 | #. module: l10n_es_aeat_mod340 | 472 | #. module: l10n_es_aeat_mod340 |
2072 | 460 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340 | 473 | #: field:l10n.es.aeat.mod340.investment,prorata:0 |
2073 | 461 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_report | 474 | msgid "Definitive yearly prorata" |
2074 | 462 | #: field:l10n.es.aeat.mod340.intracomunitarias,mod340_id:0 | 475 | msgstr "" |
2075 | 463 | #: field:l10n.es.aeat.mod340.investment,mod340_id:0 | 476 | |
2076 | 464 | #: field:l10n.es.aeat.mod340.issued,mod340_id:0 | 477 | #. module: l10n_es_aeat_mod340 |
2077 | 465 | #: field:l10n.es.aeat.mod340.received,mod340_id:0 | 478 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:115 |
2078 | 466 | #: view:l10n.es.aeat.mod340.report:0 | 479 | #, python-format |
2079 | 467 | msgid "Model 340" | 480 | msgid "This company dont have NIF" |
2080 | 481 | msgstr "" | ||
2081 | 482 | |||
2082 | 483 | #. module: l10n_es_aeat_mod340 | ||
2083 | 484 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_received | ||
2084 | 485 | #: field:l10n.es.aeat.mod340.report,received:0 | ||
2085 | 486 | msgid "Invoices Received" | ||
2086 | 468 | msgstr "" | 487 | msgstr "" |
2087 | 469 | 488 | ||
2088 | 470 | #. module: l10n_es_aeat_mod340 | 489 | #. module: l10n_es_aeat_mod340 |
2089 | @@ -484,14 +503,14 @@ | |||
2090 | 484 | msgstr "" | 503 | msgstr "" |
2091 | 485 | 504 | ||
2092 | 486 | #. module: l10n_es_aeat_mod340 | 505 | #. module: l10n_es_aeat_mod340 |
2096 | 487 | #: view:l10n.es.aeat.mod340.issued:0 | 506 | #: code:addons/l10n_es_aeat_mod340/account.py:211 |
2097 | 488 | #: view:l10n.es.aeat.mod340.received:0 | 507 | #, python-format |
2098 | 489 | msgid "Total Base" | 508 | msgid "The ledger key is different.\n" |
2099 | 509 | "" | ||
2100 | 490 | msgstr "" | 510 | msgstr "" |
2101 | 491 | 511 | ||
2102 | 492 | #. module: l10n_es_aeat_mod340 | 512 | #. module: l10n_es_aeat_mod340 |
2103 | 493 | #: report:report mod340:0 | 513 | #: report:report mod340:0 |
2104 | 494 | #: report:report_mod340:0 | ||
2105 | 495 | msgid "Número de la declaración anterior:" | 514 | msgid "Número de la declaración anterior:" |
2106 | 496 | msgstr "" | 515 | msgstr "" |
2107 | 497 | 516 | ||
2108 | @@ -511,18 +530,35 @@ | |||
2109 | 511 | msgstr "" | 530 | msgstr "" |
2110 | 512 | 531 | ||
2111 | 513 | #. module: l10n_es_aeat_mod340 | 532 | #. module: l10n_es_aeat_mod340 |
2124 | 514 | #: field:l10n.es.aeat.mod340.export_to_boe,state:0 | 533 | #: view:l10n.es.aeat.mod340.tax_line_investment:0 |
2125 | 515 | msgid "unknown" | 534 | msgid "Tax line investment goods" |
2126 | 516 | msgstr "" | 535 | msgstr "" |
2127 | 517 | 536 | ||
2128 | 518 | #. module: l10n_es_aeat_mod340 | 537 | #. module: l10n_es_aeat_mod340 |
2129 | 519 | #: field:l10n.es.aeat.mod340.report,contact_phone:0 | 538 | #: report:report mod340:0 |
2130 | 520 | msgid "Phone" | 539 | #: report:vat book:0 |
2131 | 521 | msgstr "" | 540 | msgid "Teléfono de contacto:" |
2132 | 522 | 541 | msgstr "" | |
2133 | 523 | #. module: l10n_es_aeat_mod340 | 542 | |
2134 | 524 | #: field:account.invoice,last_ticket:0 | 543 | #. module: l10n_es_aeat_mod340 |
2135 | 525 | msgid "Last ticket" | 544 | #: field:l10n.es.aeat.mod340.tax_line_investment,goods_identification:0 |
2136 | 545 | msgid "Investment goods identification" | ||
2137 | 546 | msgstr "" | ||
2138 | 547 | |||
2139 | 548 | #. module: l10n_es_aeat_mod340 | ||
2140 | 549 | #: field:l10n.es.aeat.mod340.investment,use_date:0 | ||
2141 | 550 | msgid "Goods use start date" | ||
2142 | 551 | msgstr "" | ||
2143 | 552 | |||
2144 | 553 | #. module: l10n_es_aeat_mod340 | ||
2145 | 554 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:260 | ||
2146 | 555 | #, python-format | ||
2147 | 556 | msgid "Invoice %s: Unable to determine the surcharged tax because it is not mapped in the partner's fiscal position %s" | ||
2148 | 557 | msgstr "" | ||
2149 | 558 | |||
2150 | 559 | #. module: l10n_es_aeat_mod340 | ||
2151 | 560 | #: view:l10n.es.aeat.mod340.tax_line_intra:0 | ||
2152 | 561 | msgid "Tax line intracommunity" | ||
2153 | 526 | msgstr "" | 562 | msgstr "" |
2154 | 527 | 563 | ||
2155 | 528 | #. module: l10n_es_aeat_mod340 | 564 | #. module: l10n_es_aeat_mod340 |
2156 | @@ -537,13 +573,16 @@ | |||
2157 | 537 | 573 | ||
2158 | 538 | #. module: l10n_es_aeat_mod340 | 574 | #. module: l10n_es_aeat_mod340 |
2159 | 539 | #: report:report mod340:0 | 575 | #: report:report mod340:0 |
2160 | 540 | #: report:report_mod340:0 | ||
2161 | 541 | #: report:vat book:0 | 576 | #: report:vat book:0 |
2162 | 542 | #: report:vat_book:0 | ||
2163 | 543 | msgid "Ejercicio fiscal:" | 577 | msgid "Ejercicio fiscal:" |
2164 | 544 | msgstr "" | 578 | msgstr "" |
2165 | 545 | 579 | ||
2166 | 546 | #. module: l10n_es_aeat_mod340 | 580 | #. module: l10n_es_aeat_mod340 |
2167 | 581 | #: field:account.invoice,last_ticket:0 | ||
2168 | 582 | msgid "Last ticket" | ||
2169 | 583 | msgstr "" | ||
2170 | 584 | |||
2171 | 585 | #. module: l10n_es_aeat_mod340 | ||
2172 | 547 | #: field:l10n.es.aeat.mod340.intracomunitarias,partner_country_code:0 | 586 | #: field:l10n.es.aeat.mod340.intracomunitarias,partner_country_code:0 |
2173 | 548 | #: field:l10n.es.aeat.mod340.investment,partner_country_code:0 | 587 | #: field:l10n.es.aeat.mod340.investment,partner_country_code:0 |
2174 | 549 | #: field:l10n.es.aeat.mod340.issued,partner_country_code:0 | 588 | #: field:l10n.es.aeat.mod340.issued,partner_country_code:0 |
2175 | @@ -572,12 +611,20 @@ | |||
2176 | 572 | msgstr "" | 611 | msgstr "" |
2177 | 573 | 612 | ||
2178 | 574 | #. module: l10n_es_aeat_mod340 | 613 | #. module: l10n_es_aeat_mod340 |
2180 | 575 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:79 | 614 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:58 |
2181 | 615 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:86 | ||
2182 | 616 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:125 | ||
2183 | 617 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:259 | ||
2184 | 576 | #, python-format | 618 | #, python-format |
2185 | 577 | msgid "Error" | 619 | msgid "Error" |
2186 | 578 | msgstr "" | 620 | msgstr "" |
2187 | 579 | 621 | ||
2188 | 580 | #. module: l10n_es_aeat_mod340 | 622 | #. module: l10n_es_aeat_mod340 |
2189 | 623 | #: view:l10n.es.aeat.mod340.report:0 | ||
2190 | 624 | msgid "Susbtitutive/complementary declaration" | ||
2191 | 625 | msgstr "" | ||
2192 | 626 | |||
2193 | 627 | #. module: l10n_es_aeat_mod340 | ||
2194 | 581 | #: field:l10n.es.aeat.mod340.intracomunitarias,representative_vat:0 | 628 | #: field:l10n.es.aeat.mod340.intracomunitarias,representative_vat:0 |
2195 | 582 | #: field:l10n.es.aeat.mod340.investment,representative_vat:0 | 629 | #: field:l10n.es.aeat.mod340.investment,representative_vat:0 |
2196 | 583 | #: field:l10n.es.aeat.mod340.issued,representative_vat:0 | 630 | #: field:l10n.es.aeat.mod340.issued,representative_vat:0 |
2197 | @@ -597,14 +644,19 @@ | |||
2198 | 597 | msgstr "" | 644 | msgstr "" |
2199 | 598 | 645 | ||
2200 | 599 | #. module: l10n_es_aeat_mod340 | 646 | #. module: l10n_es_aeat_mod340 |
2201 | 647 | #: view:l10n.es.aeat.mod340.intracomunitarias:0 | ||
2202 | 648 | msgid "Other Intracommunity Operations" | ||
2203 | 649 | msgstr "" | ||
2204 | 650 | |||
2205 | 651 | #. module: l10n_es_aeat_mod340 | ||
2206 | 600 | #: report:report mod340:0 | 652 | #: report:report mod340:0 |
2207 | 601 | #: report:report_mod340:0 | ||
2208 | 602 | #: report:vat book:0 | 653 | #: report:vat book:0 |
2209 | 603 | #: report:vat_book:0 | ||
2210 | 604 | msgid "Base imponible" | 654 | msgid "Base imponible" |
2211 | 605 | msgstr "" | 655 | msgstr "" |
2212 | 606 | 656 | ||
2213 | 607 | #. module: l10n_es_aeat_mod340 | 657 | #. module: l10n_es_aeat_mod340 |
2214 | 658 | #: field:l10n.es.aeat.mod340.tax_line_intra,invoice_record_id:0 | ||
2215 | 659 | #: field:l10n.es.aeat.mod340.tax_line_investment,invoice_record_id:0 | ||
2216 | 608 | #: field:l10n.es.aeat.mod340.tax_line_received,invoice_record_id:0 | 660 | #: field:l10n.es.aeat.mod340.tax_line_received,invoice_record_id:0 |
2217 | 609 | msgid "Invoice received" | 661 | msgid "Invoice received" |
2218 | 610 | msgstr "" | 662 | msgstr "" |
2219 | @@ -651,19 +703,17 @@ | |||
2220 | 651 | 703 | ||
2221 | 652 | #. module: l10n_es_aeat_mod340 | 704 | #. module: l10n_es_aeat_mod340 |
2222 | 653 | #: report:report mod340:0 | 705 | #: report:report mod340:0 |
2223 | 654 | #: report:report_mod340:0 | ||
2224 | 655 | #: report:vat book:0 | ||
2225 | 656 | #: report:vat_book:0 | ||
2226 | 657 | msgid "Teléfono de contacto:" | ||
2227 | 658 | msgstr "" | ||
2228 | 659 | |||
2229 | 660 | #. module: l10n_es_aeat_mod340 | ||
2230 | 661 | #: report:report mod340:0 | ||
2231 | 662 | #: report:report_mod340:0 | ||
2232 | 663 | msgid "Código electrónico autoliquidación IVA:" | 706 | msgid "Código electrónico autoliquidación IVA:" |
2233 | 664 | msgstr "" | 707 | msgstr "" |
2234 | 665 | 708 | ||
2235 | 666 | #. module: l10n_es_aeat_mod340 | 709 | #. module: l10n_es_aeat_mod340 |
2236 | 710 | #: help:account.tax,ledger_key:0 | ||
2237 | 711 | #: help:account.tax,ledger_key_in:0 | ||
2238 | 712 | #: help:account.tax,ledger_key_out:0 | ||
2239 | 713 | msgid "Determines to which ledger the invoice with this tax will be assigned. Setting a value makes the tax to be accounted in 340 declaration" | ||
2240 | 714 | msgstr "" | ||
2241 | 715 | |||
2242 | 716 | #. module: l10n_es_aeat_mod340 | ||
2243 | 667 | #: selection:res.partner,vat_type:0 | 717 | #: selection:res.partner,vat_type:0 |
2244 | 668 | msgid "5 - Certificado de residencia fiscal" | 718 | msgid "5 - Certificado de residencia fiscal" |
2245 | 669 | msgstr "" | 719 | msgstr "" |
2246 | @@ -675,6 +725,8 @@ | |||
2247 | 675 | msgstr "" | 725 | msgstr "" |
2248 | 676 | 726 | ||
2249 | 677 | #. module: l10n_es_aeat_mod340 | 727 | #. module: l10n_es_aeat_mod340 |
2250 | 728 | #: field:l10n.es.aeat.mod340.tax_line_intra,tax_percentage:0 | ||
2251 | 729 | #: field:l10n.es.aeat.mod340.tax_line_investment,tax_percentage:0 | ||
2252 | 678 | #: field:l10n.es.aeat.mod340.tax_line_issued,tax_percentage:0 | 730 | #: field:l10n.es.aeat.mod340.tax_line_issued,tax_percentage:0 |
2253 | 679 | #: field:l10n.es.aeat.mod340.tax_line_received,tax_percentage:0 | 731 | #: field:l10n.es.aeat.mod340.tax_line_received,tax_percentage:0 |
2254 | 680 | msgid "Tax percentage" | 732 | msgid "Tax percentage" |
2255 | @@ -686,6 +738,11 @@ | |||
2256 | 686 | msgstr "" | 738 | msgstr "" |
2257 | 687 | 739 | ||
2258 | 688 | #. module: l10n_es_aeat_mod340 | 740 | #. module: l10n_es_aeat_mod340 |
2259 | 741 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_tax_line_intra | ||
2260 | 742 | msgid "Mod340 vat lines intra-community" | ||
2261 | 743 | msgstr "" | ||
2262 | 744 | |||
2263 | 745 | #. module: l10n_es_aeat_mod340 | ||
2264 | 689 | #: help:l10n.es.aeat.mod340.report,number_records:0 | 746 | #: help:l10n.es.aeat.mod340.report,number_records:0 |
2265 | 690 | #: help:l10n.es.aeat.mod340.report,total:0 | 747 | #: help:l10n.es.aeat.mod340.report,total:0 |
2266 | 691 | #: help:l10n.es.aeat.mod340.report,total_sharetax:0 | 748 | #: help:l10n.es.aeat.mod340.report,total_sharetax:0 |
2267 | @@ -701,14 +758,12 @@ | |||
2268 | 701 | 758 | ||
2269 | 702 | #. module: l10n_es_aeat_mod340 | 759 | #. module: l10n_es_aeat_mod340 |
2270 | 703 | #: report:report mod340:0 | 760 | #: report:report mod340:0 |
2271 | 704 | #: report:report_mod340:0 | ||
2272 | 705 | #: report:vat book:0 | 761 | #: report:vat book:0 |
2273 | 706 | #: report:vat_book:0 | ||
2274 | 707 | msgid "CIF/NIF" | 762 | msgid "CIF/NIF" |
2275 | 708 | msgstr "" | 763 | msgstr "" |
2276 | 709 | 764 | ||
2277 | 710 | #. module: l10n_es_aeat_mod340 | 765 | #. module: l10n_es_aeat_mod340 |
2279 | 711 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:196 | 766 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:275 |
2280 | 712 | #, python-format | 767 | #, python-format |
2281 | 713 | msgid "Invoice %s, Amount untaxed Lines %.2f do not correspond to AmountUntaxed on Invoice %.2f" | 768 | msgid "Invoice %s, Amount untaxed Lines %.2f do not correspond to AmountUntaxed on Invoice %.2f" |
2282 | 714 | msgstr "" | 769 | msgstr "" |
2283 | @@ -719,10 +774,13 @@ | |||
2284 | 719 | msgstr "" | 774 | msgstr "" |
2285 | 720 | 775 | ||
2286 | 721 | #. module: l10n_es_aeat_mod340 | 776 | #. module: l10n_es_aeat_mod340 |
2287 | 777 | #: view:l10n.es.aeat.mod340.report:0 | ||
2288 | 778 | msgid "322" | ||
2289 | 779 | msgstr "" | ||
2290 | 780 | |||
2291 | 781 | #. module: l10n_es_aeat_mod340 | ||
2292 | 722 | #: report:report mod340:0 | 782 | #: report:report mod340:0 |
2293 | 723 | #: report:report_mod340:0 | ||
2294 | 724 | #: report:vat book:0 | 783 | #: report:vat book:0 |
2295 | 725 | #: report:vat_book:0 | ||
2296 | 726 | msgid "Número de factura" | 784 | msgid "Número de factura" |
2297 | 727 | msgstr "" | 785 | msgstr "" |
2298 | 728 | 786 | ||
2299 | @@ -740,8 +798,17 @@ | |||
2300 | 740 | msgstr "" | 798 | msgstr "" |
2301 | 741 | 799 | ||
2302 | 742 | #. module: l10n_es_aeat_mod340 | 800 | #. module: l10n_es_aeat_mod340 |
2303 | 801 | #: field:account.tax,operation_key:0 | ||
2304 | 802 | #: field:account.tax.template,operation_key:0 | ||
2305 | 803 | #: field:l10n.es.aeat.mod340.intracomunitarias,operation_key:0 | ||
2306 | 804 | #: field:l10n.es.aeat.mod340.investment,operation_key:0 | ||
2307 | 805 | #: field:l10n.es.aeat.mod340.issued,operation_key:0 | ||
2308 | 806 | #: field:l10n.es.aeat.mod340.received,operation_key:0 | ||
2309 | 807 | msgid "Operation Key" | ||
2310 | 808 | msgstr "" | ||
2311 | 809 | |||
2312 | 810 | #. module: l10n_es_aeat_mod340 | ||
2313 | 743 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_investment | 811 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_investment |
2314 | 744 | #: field:l10n.es.aeat.mod340.report,investment:0 | ||
2315 | 745 | msgid "Property Investment" | 812 | msgid "Property Investment" |
2316 | 746 | msgstr "" | 813 | msgstr "" |
2317 | 747 | 814 | ||
2318 | @@ -752,12 +819,13 @@ | |||
2319 | 752 | 819 | ||
2320 | 753 | #. module: l10n_es_aeat_mod340 | 820 | #. module: l10n_es_aeat_mod340 |
2321 | 754 | #: report:report mod340:0 | 821 | #: report:report mod340:0 |
2322 | 755 | #: report:report_mod340:0 | ||
2323 | 756 | msgid "Número:" | 822 | msgid "Número:" |
2324 | 757 | msgstr "" | 823 | msgstr "" |
2325 | 758 | 824 | ||
2326 | 759 | #. module: l10n_es_aeat_mod340 | 825 | #. module: l10n_es_aeat_mod340 |
2327 | 760 | #: field:l10n.es.aeat.mod340.report,name:0 | 826 | #: field:l10n.es.aeat.mod340.report,name:0 |
2328 | 827 | #: field:l10n.es.aeat.mod340.tax_line_intra,name:0 | ||
2329 | 828 | #: field:l10n.es.aeat.mod340.tax_line_investment,name:0 | ||
2330 | 761 | #: field:l10n.es.aeat.mod340.tax_line_issued,name:0 | 829 | #: field:l10n.es.aeat.mod340.tax_line_issued,name:0 |
2331 | 762 | #: field:l10n.es.aeat.mod340.tax_line_received,name:0 | 830 | #: field:l10n.es.aeat.mod340.tax_line_received,name:0 |
2332 | 763 | msgid "Name" | 831 | msgid "Name" |
2333 | @@ -777,24 +845,31 @@ | |||
2334 | 777 | msgstr "" | 845 | msgstr "" |
2335 | 778 | 846 | ||
2336 | 779 | #. module: l10n_es_aeat_mod340 | 847 | #. module: l10n_es_aeat_mod340 |
2337 | 848 | #: code:addons/l10n_es_aeat_mod340/account.py:208 | ||
2338 | 849 | #, python-format | ||
2339 | 850 | msgid "The operation key is different.\n" | ||
2340 | 851 | "" | ||
2341 | 852 | msgstr "" | ||
2342 | 853 | |||
2343 | 854 | #. module: l10n_es_aeat_mod340 | ||
2344 | 855 | #: field:l10n.es.aeat.mod340.report,investment:0 | ||
2345 | 856 | msgid "Investment Goods" | ||
2346 | 857 | msgstr "" | ||
2347 | 858 | |||
2348 | 859 | #. module: l10n_es_aeat_mod340 | ||
2349 | 780 | #: report:report mod340:0 | 860 | #: report:report mod340:0 |
2350 | 781 | #: report:report_mod340:0 | ||
2351 | 782 | msgid "Tipo de soporte:" | 861 | msgid "Tipo de soporte:" |
2352 | 783 | msgstr "" | 862 | msgstr "" |
2353 | 784 | 863 | ||
2354 | 785 | #. module: l10n_es_aeat_mod340 | 864 | #. module: l10n_es_aeat_mod340 |
2355 | 786 | #: field:l10n.es.aeat.mod340.report,attach_id:0 | ||
2356 | 787 | msgid "BOE file" | ||
2357 | 788 | msgstr "" | ||
2358 | 789 | |||
2359 | 790 | #. module: l10n_es_aeat_mod340 | ||
2360 | 791 | #: view:l10n.es.aeat.mod340.report:0 | 865 | #: view:l10n.es.aeat.mod340.report:0 |
2361 | 792 | msgid "Draft models" | 866 | msgid "Draft models" |
2362 | 793 | msgstr "" | 867 | msgstr "" |
2363 | 794 | 868 | ||
2364 | 795 | #. module: l10n_es_aeat_mod340 | 869 | #. module: l10n_es_aeat_mod340 |
2367 | 796 | #: view:l10n.es.aeat.mod340.report:0 | 870 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:59 |
2368 | 797 | msgid "Fiscal Year" | 871 | #, python-format |
2369 | 872 | msgid "Invoice %s: Unable to determine the tax line %s source tax. The base code of the source tax may have been changed, please recompute the invoice taxes" | ||
2370 | 798 | msgstr "" | 873 | msgstr "" |
2371 | 799 | 874 | ||
2372 | 800 | #. module: l10n_es_aeat_mod340 | 875 | #. module: l10n_es_aeat_mod340 |
2373 | @@ -803,16 +878,21 @@ | |||
2374 | 803 | msgstr "" | 878 | msgstr "" |
2375 | 804 | 879 | ||
2376 | 805 | #. module: l10n_es_aeat_mod340 | 880 | #. module: l10n_es_aeat_mod340 |
2387 | 806 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_received | 881 | #: field:l10n.es.aeat.mod340.report,intracomunitarias:0 |
2388 | 807 | #: field:l10n.es.aeat.mod340.report,received:0 | 882 | msgid "Intra-community Operations" |
2389 | 808 | msgid "Invoices Received" | 883 | msgstr "" |
2390 | 809 | msgstr "" | 884 | |
2391 | 810 | 885 | #. module: l10n_es_aeat_mod340 | |
2392 | 811 | #. module: l10n_es_aeat_mod340 | 886 | #: sql_constraint:l10n.es.aeat.mod340.investment:0 |
2393 | 812 | #: code:addons/l10n_es_aeat_mod340/account.py:92 | 887 | msgid "The prorata must be between 0 and 100." |
2394 | 813 | #, python-format | 888 | msgstr "" |
2395 | 814 | msgid "The info field is different.\n" | 889 | |
2396 | 815 | "" | 890 | #. module: l10n_es_aeat_mod340 |
2397 | 891 | #: view:l10n.es.aeat.mod340.intracomunitarias:0 | ||
2398 | 892 | #: view:l10n.es.aeat.mod340.investment:0 | ||
2399 | 893 | #: view:l10n.es.aeat.mod340.issued:0 | ||
2400 | 894 | #: view:l10n.es.aeat.mod340.received:0 | ||
2401 | 895 | msgid "Total Base" | ||
2402 | 816 | msgstr "" | 896 | msgstr "" |
2403 | 817 | 897 | ||
2404 | 818 | #. module: l10n_es_aeat_mod340 | 898 | #. module: l10n_es_aeat_mod340 |
2405 | @@ -827,13 +907,16 @@ | |||
2406 | 827 | 907 | ||
2407 | 828 | #. module: l10n_es_aeat_mod340 | 908 | #. module: l10n_es_aeat_mod340 |
2408 | 829 | #: report:report mod340:0 | 909 | #: report:report mod340:0 |
2409 | 830 | #: report:report_mod340:0 | ||
2410 | 831 | #: report:vat book:0 | 910 | #: report:vat book:0 |
2411 | 832 | #: report:vat_book:0 | ||
2412 | 833 | msgid "Empresa" | 911 | msgid "Empresa" |
2413 | 834 | msgstr "" | 912 | msgstr "" |
2414 | 835 | 913 | ||
2415 | 836 | #. module: l10n_es_aeat_mod340 | 914 | #. module: l10n_es_aeat_mod340 |
2416 | 915 | #: model:ir.model,name:l10n_es_aeat_mod340.model_l10n_es_aeat_mod340_export_to_boe | ||
2417 | 916 | msgid "Export Report to BOE Format" | ||
2418 | 917 | msgstr "" | ||
2419 | 918 | |||
2420 | 919 | #. module: l10n_es_aeat_mod340 | ||
2421 | 837 | #: selection:l10n.es.aeat.mod340.report,type:0 | 920 | #: selection:l10n.es.aeat.mod340.report,type:0 |
2422 | 838 | msgid "Complementary" | 921 | msgid "Complementary" |
2423 | 839 | msgstr "" | 922 | msgstr "" |
2424 | @@ -845,9 +928,7 @@ | |||
2425 | 845 | 928 | ||
2426 | 846 | #. module: l10n_es_aeat_mod340 | 929 | #. module: l10n_es_aeat_mod340 |
2427 | 847 | #: report:report mod340:0 | 930 | #: report:report mod340:0 |
2428 | 848 | #: report:report_mod340:0 | ||
2429 | 849 | #: report:vat book:0 | 931 | #: report:vat book:0 |
2430 | 850 | #: report:vat_book:0 | ||
2431 | 851 | msgid "Total factura" | 932 | msgid "Total factura" |
2432 | 852 | msgstr "" | 933 | msgstr "" |
2433 | 853 | 934 | ||
2434 | @@ -857,15 +938,20 @@ | |||
2435 | 857 | msgstr "" | 938 | msgstr "" |
2436 | 858 | 939 | ||
2437 | 859 | #. module: l10n_es_aeat_mod340 | 940 | #. module: l10n_es_aeat_mod340 |
2438 | 941 | #: view:account.tax:0 | ||
2439 | 942 | msgid "onchange_type_tax_use(context)" | ||
2440 | 943 | msgstr "" | ||
2441 | 944 | |||
2442 | 945 | #. module: l10n_es_aeat_mod340 | ||
2443 | 860 | #: report:report mod340:0 | 946 | #: report:report mod340:0 |
2444 | 861 | #: report:report_mod340:0 | ||
2445 | 862 | #: report:vat book:0 | 947 | #: report:vat book:0 |
2446 | 863 | #: report:vat_book:0 | ||
2447 | 864 | msgid "FACTURAS DE ENTRADA" | 948 | msgid "FACTURAS DE ENTRADA" |
2448 | 865 | msgstr "" | 949 | msgstr "" |
2449 | 866 | 950 | ||
2450 | 867 | #. module: l10n_es_aeat_mod340 | 951 | #. module: l10n_es_aeat_mod340 |
2451 | 952 | #: view:l10n.es.aeat.mod340.intracomunitarias:0 | ||
2452 | 868 | #: field:l10n.es.aeat.mod340.intracomunitarias,total:0 | 953 | #: field:l10n.es.aeat.mod340.intracomunitarias,total:0 |
2453 | 954 | #: view:l10n.es.aeat.mod340.investment:0 | ||
2454 | 869 | #: field:l10n.es.aeat.mod340.investment,total:0 | 955 | #: field:l10n.es.aeat.mod340.investment,total:0 |
2455 | 870 | #: view:l10n.es.aeat.mod340.issued:0 | 956 | #: view:l10n.es.aeat.mod340.issued:0 |
2456 | 871 | #: field:l10n.es.aeat.mod340.issued,total:0 | 957 | #: field:l10n.es.aeat.mod340.issued,total:0 |
2457 | @@ -876,12 +962,7 @@ | |||
2458 | 876 | msgstr "" | 962 | msgstr "" |
2459 | 877 | 963 | ||
2460 | 878 | #. module: l10n_es_aeat_mod340 | 964 | #. module: l10n_es_aeat_mod340 |
2467 | 879 | #: model:ir.model,name:l10n_es_aeat_mod340.model_account_tax_code_template | 965 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:167 |
2462 | 880 | msgid "Tax Code Template" | ||
2463 | 881 | msgstr "" | ||
2464 | 882 | |||
2465 | 883 | #. module: l10n_es_aeat_mod340 | ||
2466 | 884 | #: code:addons/l10n_es_aeat_mod340/wizard/calculate_mod340_records.py:118 | ||
2468 | 885 | #, python-format | 966 | #, python-format |
2469 | 886 | msgid "La siguiente empresa no tiene asignado nif:" | 967 | msgid "La siguiente empresa no tiene asignado nif:" |
2470 | 887 | msgstr "" | 968 | msgstr "" |
2471 | 888 | 969 | ||
2472 | === modified file 'l10n_es_aeat_mod340/mod340.py' | |||
2473 | --- l10n_es_aeat_mod340/mod340.py 2014-02-24 14:45:52 +0000 | |||
2474 | +++ l10n_es_aeat_mod340/mod340.py 2014-06-01 16:57:08 +0000 | |||
2475 | @@ -27,12 +27,10 @@ | |||
2476 | 27 | 27 | ||
2477 | 28 | from openerp.osv import orm, fields | 28 | from openerp.osv import orm, fields |
2478 | 29 | import time | 29 | import time |
2485 | 30 | from datetime import datetime | 30 | import netsvc |
2486 | 31 | from openerp import netsvc | 31 | import tools |
2487 | 32 | from openerp import tools | 32 | import pooler |
2488 | 33 | import math | 33 | |
2483 | 34 | from openerp.tools.translate import _ | ||
2484 | 35 | from openerp import pooler | ||
2489 | 36 | 34 | ||
2490 | 37 | class l10n_es_aeat_mod340_report(orm.Model): | 35 | class l10n_es_aeat_mod340_report(orm.Model): |
2491 | 38 | 36 | ||
2492 | @@ -65,26 +63,34 @@ | |||
2493 | 65 | return result | 63 | return result |
2494 | 66 | 64 | ||
2495 | 67 | def _get_number_records( self, cr, uid,ids, field_name, args,context ): | 65 | def _get_number_records( self, cr, uid,ids, field_name, args,context ): |
2502 | 68 | 66 | result = dict.fromkeys(ids, | |
2503 | 69 | result = {} | 67 | dict.fromkeys(['number_records','total_taxable','total_sharetax','total'], 0)) |
2498 | 70 | for id in ids: | ||
2499 | 71 | result[id] = {}.fromkeys( | ||
2500 | 72 | ['number_records','total_taxable','total_sharetax','total'], | ||
2501 | 73 | 0.0) | ||
2504 | 74 | 68 | ||
2505 | 75 | for model in self.browse(cr, uid, ids,context): | 69 | for model in self.browse(cr, uid, ids,context): |
2506 | 76 | 70 | ||
2512 | 77 | for issue in model.issued: | 71 | for invoice_rec in model.issued: |
2513 | 78 | result[model.id]['number_records'] += len( issue.tax_line_ids ) | 72 | result[model.id]['number_records'] += len( invoice_rec.tax_line_ids ) |
2514 | 79 | result[model.id]['total_taxable'] += issue.base_tax | 73 | result[model.id]['total_taxable'] += invoice_rec.base_tax |
2515 | 80 | result[model.id]['total_sharetax'] += issue.amount_tax | 74 | result[model.id]['total_sharetax'] += invoice_rec.amount_tax |
2516 | 81 | result[model.id]['total'] += issue.base_tax + issue.amount_tax | 75 | result[model.id]['total'] += invoice_rec.base_tax + invoice_rec.amount_tax |
2517 | 82 | 76 | ||
2523 | 83 | for issue in model.received: | 77 | for invoice_rec in model.received: |
2524 | 84 | result[model.id]['number_records'] += len( issue.tax_line_ids ) | 78 | result[model.id]['number_records'] += len( invoice_rec.tax_line_ids ) |
2525 | 85 | result[model.id]['total_taxable'] += issue.base_tax | 79 | result[model.id]['total_taxable'] += invoice_rec.base_tax |
2526 | 86 | result[model.id]['total_sharetax'] += issue.amount_tax | 80 | result[model.id]['total_sharetax'] += invoice_rec.amount_tax |
2527 | 87 | result[model.id]['total'] += issue.base_tax + issue.amount_tax | 81 | result[model.id]['total'] += invoice_rec.base_tax + invoice_rec.amount_tax |
2528 | 82 | |||
2529 | 83 | for invoice_rec in model.investment: | ||
2530 | 84 | result[model.id]['number_records'] += len( invoice_rec.tax_line_ids ) | ||
2531 | 85 | result[model.id]['total_taxable'] += invoice_rec.base_tax | ||
2532 | 86 | result[model.id]['total_sharetax'] += invoice_rec.amount_tax | ||
2533 | 87 | result[model.id]['total'] += invoice_rec.base_tax + invoice_rec.amount_tax | ||
2534 | 88 | |||
2535 | 89 | for invoice_rec in model.intracomunitarias: | ||
2536 | 90 | result[model.id]['number_records'] += len( invoice_rec.tax_line_ids ) | ||
2537 | 91 | result[model.id]['total_taxable'] += invoice_rec.base_tax | ||
2538 | 92 | result[model.id]['total_sharetax'] += invoice_rec.amount_tax | ||
2539 | 93 | result[model.id]['total'] += invoice_rec.base_tax + invoice_rec.amount_tax | ||
2540 | 88 | 94 | ||
2541 | 89 | return result | 95 | return result |
2542 | 90 | 96 | ||
2543 | @@ -96,8 +102,8 @@ | |||
2544 | 96 | size=64, string="Name"), | 102 | size=64, string="Name"), |
2545 | 97 | 'declaration_number': fields.char("Declaration number", size=64, | 103 | 'declaration_number': fields.char("Declaration number", size=64, |
2546 | 98 | readonly=True), | 104 | readonly=True), |
2549 | 99 | 'phone_contact' : fields.char('Phone Contact',size=9), | 105 | 'phone_contact': fields.char('Phone Contact',size=9), |
2550 | 100 | 'name_contact' : fields.char('Name And Surname Contact',size=40), | 106 | 'name_contact': fields.char('Name And Surname Contact',size=40), |
2551 | 101 | 'period_from': fields.many2one('account.period', 'Start period', | 107 | 'period_from': fields.many2one('account.period', 'Start period', |
2552 | 102 | states={'done': [('readonly', True)]}), | 108 | states={'done': [('readonly', True)]}), |
2553 | 103 | 'period_to': fields.many2one('account.period', 'End period', | 109 | 'period_to': fields.many2one('account.period', 'End period', |
2554 | @@ -109,14 +115,14 @@ | |||
2555 | 109 | 'mod340_id','Invoices Received', | 115 | 'mod340_id','Invoices Received', |
2556 | 110 | states={'done': [('readonly', True)]}), | 116 | states={'done': [('readonly', True)]}), |
2557 | 111 | 'investment': fields.one2many('l10n.es.aeat.mod340.investment', | 117 | 'investment': fields.one2many('l10n.es.aeat.mod340.investment', |
2559 | 112 | 'mod340_id','Property Investment'), | 118 | 'mod340_id','Investment Goods'), |
2560 | 113 | 'intracomunitarias': fields.one2many( | 119 | 'intracomunitarias': fields.one2many( |
2561 | 114 | 'l10n.es.aeat.mod340.intracomunitarias', | 120 | 'l10n.es.aeat.mod340.intracomunitarias', |
2563 | 115 | 'mod340_id','Operations Intracomunitarias'), | 121 | 'mod340_id','Intra-community Operations'), |
2564 | 116 | 122 | ||
2565 | 117 | 'ean13': fields.char('Electronic Code VAT reverse charge', size=16), | 123 | 'ean13': fields.char('Electronic Code VAT reverse charge', size=16), |
2566 | 118 | 124 | ||
2568 | 119 | 'total_taxable': fields.function(_get_number_records, method=True, | 125 | 'total_taxable': fields.function(_get_number_records, method=True, |
2569 | 120 | type='float', string='Total Taxable', multi='recalc', | 126 | type='float', string='Total Taxable', multi='recalc', |
2570 | 121 | help="""The declaration will include partners with the total | 127 | help="""The declaration will include partners with the total |
2571 | 122 | of operations over this limit"""), | 128 | of operations over this limit"""), |
2572 | @@ -132,12 +138,13 @@ | |||
2573 | 132 | type='float', string="Total", multi='recalc', | 138 | type='float', string="Total", multi='recalc', |
2574 | 133 | help="""The declaration will include partners with the total | 139 | help="""The declaration will include partners with the total |
2575 | 134 | of operations over this limit"""), | 140 | of operations over this limit"""), |
2577 | 135 | 'calculation_date': fields.date('Calculation date', readonly=True), | 141 | 'investment_goods_prorating': fields.boolean("Investment goods prorating", |
2578 | 142 | help="If checked, the investment goods invoices will be exported in their ledger. If not, they will be exported as received invoices") | ||
2579 | 136 | } | 143 | } |
2580 | 137 | _defaults = { | 144 | _defaults = { |
2584 | 138 | 'number' : lambda *a: '340', | 145 | 'number': '340', |
2585 | 139 | 'declaration_number' : lambda *a: '340', | 146 | 'declaration_number': '340', |
2586 | 140 | } | 147 | } |
2587 | 141 | 148 | ||
2588 | 142 | def set_done(self, cr, uid, id, *args): | 149 | def set_done(self, cr, uid, id, *args): |
2589 | 143 | self.write(cr,uid,id,{'calculation_date': time.strftime('%Y-%m-%d'), | 150 | self.write(cr,uid,id,{'calculation_date': time.strftime('%Y-%m-%d'), |
2590 | @@ -159,23 +166,70 @@ | |||
2591 | 159 | class l10n_es_aeat_mod340_issued(orm.Model): | 166 | class l10n_es_aeat_mod340_issued(orm.Model): |
2592 | 160 | _name = 'l10n.es.aeat.mod340.issued' | 167 | _name = 'l10n.es.aeat.mod340.issued' |
2593 | 161 | _description = 'Invoices invoice' | 168 | _description = 'Invoices invoice' |
2594 | 169 | |||
2595 | 170 | def get_ledger_keys(self, cr, uid, context=None): | ||
2596 | 171 | return [('E', u'E-Libro registro de facturas expedidas.'), | ||
2597 | 172 | ('F', u'F-Libro registro de facturas expedidas IGIC.'), | ||
2598 | 173 | ('U', u'U-Libro registro de determinadas operaciones intracomunitarias (envío).')] | ||
2599 | 174 | |||
2600 | 175 | def _get_ledger_keys(self, cr, uid, context=None): | ||
2601 | 176 | return self.get_ledger_keys(cr, uid, context=context) | ||
2602 | 177 | |||
2603 | 178 | def get_operation_keys(self, cr, uid, context=None): | ||
2604 | 179 | return [(' ', u'Operación habitual'), | ||
2605 | 180 | ('A', u'A-Asiento resumen de facturas'), | ||
2606 | 181 | ('B', u'B-Asiento resumen de tique'), | ||
2607 | 182 | ('C', u'C-Factura con varios asientos (varios tipos impositivos)'), | ||
2608 | 183 | ('D', u'D-Factura rectificativa'), | ||
2609 | 184 | ('E', u'E-IVA/IGIC devengado pendiente de emitir factura'), | ||
2610 | 185 | ('G', u'G-Régimen especial de grupo de entidades en IVA o IGIC'), | ||
2611 | 186 | ('H', u'H-Régimen especial de oro de inversión'), | ||
2612 | 187 | ('I', u'I-Inversión del Sujeto pasivo (ISP)'), | ||
2613 | 188 | ('J', u'J-Tiques'), | ||
2614 | 189 | ('K', u'K-Rectificación de errores registrales'), | ||
2615 | 190 | ('M', u'M-IVA/IGIC facturado pendiente de devengar (emitida factura)'), | ||
2616 | 191 | ('N', u'N-Facturación de las prestaciones de servicios de agencias de viaje que actúan como mediadoras en nombre y por cuenta ajena'), | ||
2617 | 192 | ('O', u'O-Factura emitida en sustitución de tiques facturados y declarados'), | ||
2618 | 193 | ('Q', u'Q-Operaciones a las que se aplique el Régimen especial de bienes usados, objetos de arte, antigüedades y objetos de colección'), | ||
2619 | 194 | ('R', u'R-Operación de arrendamiento de local de negocio'), | ||
2620 | 195 | ('S', u'S-Subvenciones, auxilios o ayudas satisfechas o recibidas, tanto por parte de Administraciones públicas como de entidades privadas'), | ||
2621 | 196 | ('T', u'T-Cobros por cuenta de terceros de honorarios profesionales o de derechos derivados de la propiedad intelectual, industrial, de autor u otros por cuenta de sus socios, asociados o colegiados efectuados por sociedades, asociaciones, colegios profesionales u otras entidades que, entre sus funciones, realicen las de cobro'), | ||
2622 | 197 | ('U', u'U-Operación de seguros'), | ||
2623 | 198 | ('V', u'V-Compras de Agencias viajes'), | ||
2624 | 199 | ('W', u'W-Operaciones sujetas al Impuesto sobre la Producción, los Servicios y la Importación en las Ciudades de Ceuta y Melilla'), | ||
2625 | 200 | ('X', u'X-Operaciones por las que los empresarios o profesionales que satisfagan compensaciones agrícolas, ganaderas y/o pesqueras hayan expedido el recibo correspondiente'), | ||
2626 | 201 | ('Z', u'Z-Régimen especial del criterio de caja'), | ||
2627 | 202 | ('1', u'1-IVA criterio de caja. Asiento resumen de facturas'), | ||
2628 | 203 | ('2', u'2-IVA criterio de caja. Factura con varios asientos (varios tipos impositivos)'), | ||
2629 | 204 | ('3', u'3-IVA criterio de caja. Factura rectificativa'), | ||
2630 | 205 | ('4', u'4-IVA criterio de caja. Adquisiciones realizadas por las agencias de viajes directamente en interés del viajero (Régimen especial de agencia de viajes)'), | ||
2631 | 206 | ('5', u'5-IVA criterio de caja. Factura simplificada'), | ||
2632 | 207 | ('6', u'6-IVA criterio de caja. Rectificación de errores registrales'), | ||
2633 | 208 | ('7', u'7-IVA criterio de caja. Facturación de las prestaciones de servicios de agencias de viaje que actúan como mediadoras en nombre y por cuenta ajena. (Disposición adicional 4.ª RD 1496/2003)'), | ||
2634 | 209 | ('8', u'8-IVA criterio de caja. Operación de arrendamiento de local de negocio.')] | ||
2635 | 210 | |||
2636 | 211 | def _get_operation_keys(self, cr, uid, context=None): | ||
2637 | 212 | return self.get_operation_keys(cr, uid, context=context) | ||
2638 | 213 | |||
2639 | 162 | _columns = { | 214 | _columns = { |
2640 | 163 | 'mod340_id': fields.many2one('l10n.es.aeat.mod340.report','Model 340', | 215 | 'mod340_id': fields.many2one('l10n.es.aeat.mod340.report','Model 340', |
2641 | 164 | ondelete="cascade"), | 216 | ondelete="cascade"), |
2643 | 165 | 'partner_id':fields.many2one('res.partner','Partner', | 217 | 'partner_id': fields.many2one('res.partner','Partner', |
2644 | 166 | ondelete="cascade"), | 218 | ondelete="cascade"), |
2646 | 167 | 'partner_vat':fields.char('Company CIF/NIF',size=12), | 219 | 'partner_vat': fields.char('Company CIF/NIF',size=12), |
2647 | 168 | 'representative_vat': fields.char('L.R. VAT number', size=9, | 220 | 'representative_vat': fields.char('L.R. VAT number', size=9, |
2648 | 169 | help="Legal Representative VAT number"), | 221 | help="Legal Representative VAT number"), |
2649 | 170 | 'partner_country_code': fields.char('Country Code', size=2), | 222 | 'partner_country_code': fields.char('Country Code', size=2), |
2650 | 171 | 'invoice_id':fields.many2one('account.invoice','Invoice', | 223 | 'invoice_id':fields.many2one('account.invoice','Invoice', |
2651 | 172 | ondelete="cascade"), | 224 | ondelete="cascade"), |
2655 | 173 | 'base_tax':fields.float('Base tax bill',digits=(13,2)), | 225 | 'base_tax': fields.float('Base tax bill',digits=(13,2)), |
2656 | 174 | 'amount_tax':fields.float('Total tax',digits=(13,2)), | 226 | 'amount_tax': fields.float('Total tax',digits=(13,2)), |
2657 | 175 | 'total':fields.float('Total',digits=(13,2)), | 227 | 'total': fields.float('Total',digits=(13,2)), |
2658 | 176 | 'tax_line_ids': fields.one2many('l10n.es.aeat.mod340.tax_line_issued', | 228 | 'tax_line_ids': fields.one2many('l10n.es.aeat.mod340.tax_line_issued', |
2659 | 177 | 'invoice_record_id', 'Tax lines'), | 229 | 'invoice_record_id', 'Tax lines'), |
2660 | 178 | 'date_invoice': fields.date('Date Invoice', readonly=True), | 230 | 'date_invoice': fields.date('Date Invoice', readonly=True), |
2661 | 231 | 'ledger_key': fields.selection(_get_ledger_keys, 'Ledger Key', required=True, readonly=True), | ||
2662 | 232 | 'operation_key': fields.selection(_get_operation_keys, 'Operation Key', required=True, readonly=True), | ||
2663 | 179 | } | 233 | } |
2664 | 180 | 234 | ||
2665 | 181 | _order = 'date_invoice asc, invoice_id asc' | 235 | _order = 'date_invoice asc, invoice_id asc' |
2666 | @@ -184,20 +238,79 @@ | |||
2667 | 184 | _name = 'l10n.es.aeat.mod340.received' | 238 | _name = 'l10n.es.aeat.mod340.received' |
2668 | 185 | _description = 'Invoices Received' | 239 | _description = 'Invoices Received' |
2669 | 186 | _inherit = 'l10n.es.aeat.mod340.issued' | 240 | _inherit = 'l10n.es.aeat.mod340.issued' |
2670 | 241 | |||
2671 | 242 | def get_ledger_keys(self, cr, uid, context=None): | ||
2672 | 243 | return [('R', u'R-Libro registro de facturas recibidas.'), | ||
2673 | 244 | ('I', u'I-Libro registro de bienes de inversión.'), | ||
2674 | 245 | ('J', u'J-Libro de registro de bienes de inversión IGIC.'), | ||
2675 | 246 | ('S', u'S-Libro de registro de facturas recibidas IGIC.'), | ||
2676 | 247 | ('U', u'U-Libro registro de determinadas operaciones intracomunitarias (recepción).')] | ||
2677 | 248 | |||
2678 | 249 | def _get_ledger_keys(self, cr, uid, context=None): | ||
2679 | 250 | return self.get_ledger_keys(cr, uid, context=context) | ||
2680 | 251 | |||
2681 | 252 | def get_operation_keys(self, cr, uid, context=None): | ||
2682 | 253 | return [(' ', u'Operación habitual'), | ||
2683 | 254 | ('A', u'A-Asiento resumen de facturas'), | ||
2684 | 255 | ('B', u'B-Asiento resumen de tiques / facturas simplificadas'), | ||
2685 | 256 | ('C', u'C-Factura con varios asientos(varios tipo impositivos)'), | ||
2686 | 257 | ('D', u'D-Factura rectificativa'), | ||
2687 | 258 | ('F', u'F-Adquisiciones realizadas por las agencias de viajes directamente en interés del viajero (Régimen especial de agencias de viajes)'), | ||
2688 | 259 | ('G', u'G-Régimen especial de grupo de entidades en IVA o IGIC'), | ||
2689 | 260 | ('H', u'H-Régimen especial de oro de inversión'), | ||
2690 | 261 | ('I', u'I-Inversión del Sujeto pasivo (ISP)'), | ||
2691 | 262 | ('J', u'J-Tiques / facturas simplificadas'), | ||
2692 | 263 | ('K', u'K-Rectificación anotaciones registrales'), | ||
2693 | 264 | ('L', u'L-Adquisiciones a comerciantes minoristas del IGIC'), | ||
2694 | 265 | ('P', u'P-Adquisiciones intracomunitarias de bienes.'), | ||
2695 | 266 | ('Q', u'Q-Operaciones a las que se aplique el régimen especial de bienes usados, ...'), | ||
2696 | 267 | ('R', u'R-Operación de arrendamiento de local de negocio.'), | ||
2697 | 268 | ('S', u'S-Subvenciones, auxilios o ayudas satisfechas o recibidas, tanto por parte de Administraciones públicas como de entidades privadas.'), | ||
2698 | 269 | ('W', u'W-Operaciones sujetas al Impuesto sobre la Producción, los Servicios y la Importación en las Ciudades de Ceuta y Melilla.'), | ||
2699 | 270 | ('X', u'X-Operaciones por las que los empresarios o profesionales que satisfagan compensaciones agrícolas, ganaderas y/o pesqueras hayan expedido el recibo correspondiente.'), | ||
2700 | 271 | ('Z', u'Z-Régimen especial del criterio de caja.'), | ||
2701 | 272 | ('1', u'1-IVA criterio de caja. Asiento resumen de facturas.'), | ||
2702 | 273 | ('2', u'2-IVA criterio de caja. Factura con varios asientos (varios tipos impositivos).'), | ||
2703 | 274 | ('3', u'3-IVA criterio de caja. Factura rectificativa.'), | ||
2704 | 275 | ('4', u'4-IVA criterio de caja. Adquisiciones realizadas por las agencias de viajes directamente en interés del viajero (Régimen especial de agencias de viajes.'), | ||
2705 | 276 | ('5', u'5-IVA criterio de caja. Factura simplificada.'), | ||
2706 | 277 | ('6', u'6-IVA criterio de caja. Rectificación de errores registrales.'), | ||
2707 | 278 | ('7', u'7-IVA criterio de caja. Facturación de las prestaciones de servicios de agencias de viaje que actúan como mediadoras en nombre y por cuenta ajena (Disposición adicional 4ª RD 1496/2003).'), | ||
2708 | 279 | ('8', u'8-IVA criterio de caja. Operación de arrendamiento de local de negocio.')] | ||
2709 | 280 | |||
2710 | 281 | def _get_operation_keys(self, cr, uid, context=None): | ||
2711 | 282 | return self.get_operation_keys(cr, uid, context=context) | ||
2712 | 283 | |||
2713 | 187 | _columns = { | 284 | _columns = { |
2715 | 188 | 'tax_line_ids':fields.one2many('l10n.es.aeat.mod340.tax_line_received', | 285 | 'tax_line_ids': fields.one2many('l10n.es.aeat.mod340.tax_line_received', |
2716 | 189 | 'invoice_record_id', 'Tax lines'), | 286 | 'invoice_record_id', 'Tax lines'), |
2717 | 287 | 'ledger_key': fields.selection(_get_ledger_keys, 'Ledger Key', required=True, readonly=True), | ||
2718 | 288 | 'operation_key': fields.selection(_get_operation_keys, 'Operation Key', required=True), | ||
2719 | 190 | } | 289 | } |
2720 | 191 | 290 | ||
2721 | 192 | class l10n_es_aeat_mod340_investment(orm.Model): | 291 | class l10n_es_aeat_mod340_investment(orm.Model): |
2722 | 193 | _name = 'l10n.es.aeat.mod340.investment' | 292 | _name = 'l10n.es.aeat.mod340.investment' |
2723 | 194 | _description = 'Property Investment' | 293 | _description = 'Property Investment' |
2725 | 195 | _inherit = 'l10n.es.aeat.mod340.issued' | 294 | _inherit = 'l10n.es.aeat.mod340.received' |
2726 | 295 | |||
2727 | 296 | _columns = { | ||
2728 | 297 | 'tax_line_ids': fields.one2many('l10n.es.aeat.mod340.tax_line_investment', | ||
2729 | 298 | 'invoice_record_id', 'Tax lines'), | ||
2730 | 299 | 'use_date': fields.date("Goods use start date"), | ||
2731 | 300 | 'prorata': fields.integer("Definitive yearly prorata"), | ||
2732 | 301 | } | ||
2733 | 302 | |||
2734 | 303 | _sql_constraints = [('prorata_range','check(prorata >= 0 and prorata <= 100)','The prorata must be between 0 and 100.')] | ||
2735 | 196 | 304 | ||
2736 | 197 | class l10n_es_aeat_mod340_intracomunitarias(orm.Model): | 305 | class l10n_es_aeat_mod340_intracomunitarias(orm.Model): |
2737 | 198 | _name = 'l10n.es.aeat.mod340.intracomunitarias' | 306 | _name = 'l10n.es.aeat.mod340.intracomunitarias' |
2738 | 199 | _description = 'Operations Intracomunitarias' | 307 | _description = 'Operations Intracomunitarias' |
2739 | 200 | _inherit = 'l10n.es.aeat.mod340.issued' | 308 | _inherit = 'l10n.es.aeat.mod340.issued' |
2740 | 309 | |||
2741 | 310 | _columns = { | ||
2742 | 311 | 'tax_line_ids': fields.one2many('l10n.es.aeat.mod340.tax_line_intra', | ||
2743 | 312 | 'invoice_record_id', 'Tax lines'), | ||
2744 | 313 | } | ||
2745 | 201 | 314 | ||
2746 | 202 | class l10n_es_aeat_mod340_tax_line_issued(orm.Model): | 315 | class l10n_es_aeat_mod340_tax_line_issued(orm.Model): |
2747 | 203 | _name = 'l10n.es.aeat.mod340.tax_line_issued' | 316 | _name = 'l10n.es.aeat.mod340.tax_line_issued' |
2748 | @@ -209,6 +322,8 @@ | |||
2749 | 209 | 'base_amount': fields.float('Base tax bill',digits=(13,2)), | 322 | 'base_amount': fields.float('Base tax bill',digits=(13,2)), |
2750 | 210 | 'invoice_record_id': fields.many2one('l10n.es.aeat.mod340.issued', | 323 | 'invoice_record_id': fields.many2one('l10n.es.aeat.mod340.issued', |
2751 | 211 | 'Invoice issued', required=True, ondelete="cascade", select=1), | 324 | 'Invoice issued', required=True, ondelete="cascade", select=1), |
2752 | 325 | 'surcharge_percentage': fields.float('Surcharge percentage',digits=(0,2)), | ||
2753 | 326 | 'surcharge_amount': fields.float('Surcharge amount',digits=(13,2)), | ||
2754 | 212 | } | 327 | } |
2755 | 213 | 328 | ||
2756 | 214 | class l10n_es_aeat_mod340_tax_line_received(orm.Model): | 329 | class l10n_es_aeat_mod340_tax_line_received(orm.Model): |
2757 | @@ -219,3 +334,24 @@ | |||
2758 | 219 | 'invoice_record_id': fields.many2one('l10n.es.aeat.mod340.received', | 334 | 'invoice_record_id': fields.many2one('l10n.es.aeat.mod340.received', |
2759 | 220 | 'Invoice received', required=True, ondelete="cascade", select=1), | 335 | 'Invoice received', required=True, ondelete="cascade", select=1), |
2760 | 221 | } | 336 | } |
2761 | 337 | |||
2762 | 338 | class l10n_es_aeat_mod340_tax_line_investment(orm.Model): | ||
2763 | 339 | _name = 'l10n.es.aeat.mod340.tax_line_investment' | ||
2764 | 340 | _description = 'Mod340 vat lines investment' | ||
2765 | 341 | _inherit = 'l10n.es.aeat.mod340.tax_line_issued' | ||
2766 | 342 | _columns = { | ||
2767 | 343 | 'invoice_record_id': fields.many2one('l10n.es.aeat.mod340.investment', | ||
2768 | 344 | 'Invoice received', required=True, ondelete="cascade", select=1), | ||
2769 | 345 | 'goods_identification': fields.char("Investment goods identification", size=17), | ||
2770 | 346 | } | ||
2771 | 347 | |||
2772 | 348 | |||
2773 | 349 | |||
2774 | 350 | class l10n_es_aeat_mod340_tax_line_intra(orm.Model): | ||
2775 | 351 | _name = 'l10n.es.aeat.mod340.tax_line_intra' | ||
2776 | 352 | _description = 'Mod340 vat lines intra-community' | ||
2777 | 353 | _inherit = 'l10n.es.aeat.mod340.tax_line_issued' | ||
2778 | 354 | _columns = { | ||
2779 | 355 | 'invoice_record_id': fields.many2one('l10n.es.aeat.mod340.intracomunitarias', | ||
2780 | 356 | 'Invoice received', required=True, ondelete="cascade", select=1), | ||
2781 | 357 | } | ||
2782 | 222 | 358 | ||
2783 | === modified file 'l10n_es_aeat_mod340/mod340_view.xml' | |||
2784 | --- l10n_es_aeat_mod340/mod340_view.xml 2014-03-20 00:33:19 +0000 | |||
2785 | +++ l10n_es_aeat_mod340/mod340_view.xml 2014-06-01 16:57:08 +0000 | |||
2786 | @@ -1,6 +1,7 @@ | |||
2787 | 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2788 | 2 | <openerp> | 2 | <openerp> |
2789 | 3 | <data> | 3 | <data> |
2790 | 4 | <<<<<<< TREE | ||
2791 | 4 | <!-- Modelo 340 --> | 5 | <!-- Modelo 340 --> |
2792 | 5 | <record model="ir.ui.view" id="view_l10n_es_aeat_mod340_tree"> | 6 | <record model="ir.ui.view" id="view_l10n_es_aeat_mod340_tree"> |
2793 | 6 | <field name="name">l10n.es.aeat.mod340.tree</field> | 7 | <field name="name">l10n.es.aeat.mod340.tree</field> |
2794 | @@ -17,11 +18,30 @@ | |||
2795 | 17 | </field> | 18 | </field> |
2796 | 18 | </record> | 19 | </record> |
2797 | 19 | 20 | ||
2798 | 21 | ======= | ||
2799 | 22 | <!-- Modelo 340 --> | ||
2800 | 23 | <record model="ir.ui.view" id="view_l10n_es_aeat_mod340_tree"> | ||
2801 | 24 | <field name="name">l10n.es.aeat.mod340.tree</field> | ||
2802 | 25 | <field name="model">l10n.es.aeat.mod340.report</field> | ||
2803 | 26 | <field name="arch" type="xml"> | ||
2804 | 27 | <tree string="Model 340"> | ||
2805 | 28 | <field name="fiscalyear_id"/> | ||
2806 | 29 | <field name="period_from"/> | ||
2807 | 30 | <field name="period_to"/> | ||
2808 | 31 | <field name="number"/> | ||
2809 | 32 | <field name="type"/> | ||
2810 | 33 | <field name="state" invisible="1"/> | ||
2811 | 34 | </tree> | ||
2812 | 35 | </field> | ||
2813 | 36 | </record> | ||
2814 | 37 | |||
2815 | 38 | >>>>>>> MERGE-SOURCE | ||
2816 | 20 | <record id="view_l10n_es_aeat_mod340_form" model="ir.ui.view"> | 39 | <record id="view_l10n_es_aeat_mod340_form" model="ir.ui.view"> |
2817 | 21 | <field name="name">l10n_es.aeat.mod340.form</field> | 40 | <field name="name">l10n_es.aeat.mod340.form</field> |
2818 | 22 | <field name="model">l10n.es.aeat.mod340.report</field> | 41 | <field name="model">l10n.es.aeat.mod340.report</field> |
2819 | 23 | <field name="inherit_id" ref="l10n_es_aeat.view_l10n_es_aeat_report_form"/> | 42 | <field name="inherit_id" ref="l10n_es_aeat.view_l10n_es_aeat_report_form"/> |
2820 | 24 | <field name="arch" type="xml"> | 43 | <field name="arch" type="xml"> |
2821 | 44 | <<<<<<< TREE | ||
2822 | 25 | <button name="%(l10n_es_aeat.action_wizard_aeat_export)d" position="attributes"> | 45 | <button name="%(l10n_es_aeat.action_wizard_aeat_export)d" position="attributes"> |
2823 | 26 | <attribute name="name">%(action_wizard_aeat_mod340_export)d</attribute> | 46 | <attribute name="name">%(action_wizard_aeat_mod340_export)d</attribute> |
2824 | 27 | </button> | 47 | </button> |
2825 | @@ -183,6 +203,328 @@ | |||
2826 | 183 | </record> | 203 | </record> |
2827 | 184 | 204 | ||
2828 | 185 | <record id="view_l10n_es_aeat_mod340_report_search" model="ir.ui.view"> | 205 | <record id="view_l10n_es_aeat_mod340_report_search" model="ir.ui.view"> |
2829 | 206 | ======= | ||
2830 | 207 | <button name="%(l10n_es_aeat.action_wizard_aeat_export)d" position="attributes"> | ||
2831 | 208 | <attribute name="name">%(action_wizard_aeat_mod340_export)d</attribute> | ||
2832 | 209 | </button> | ||
2833 | 210 | <field name="fiscalyear_id" position="after"> | ||
2834 | 211 | <field name="period_from" required="1" domain="[('fiscalyear_id','=',fiscalyear_id)]"/> | ||
2835 | 212 | <field name="period_to" required="1" domain="[('fiscalyear_id','=',fiscalyear_id)]"/> | ||
2836 | 213 | </field> | ||
2837 | 214 | <field name="calculation_date" position="after"> | ||
2838 | 215 | <field name="declaration_number"/> | ||
2839 | 216 | <field name="support_type"/> | ||
2840 | 217 | <field name="investment_goods_prorating"/> | ||
2841 | 218 | </field> | ||
2842 | 219 | <group string="Declaración" position="after"> | ||
2843 | 220 | <notebook colspan="4"> | ||
2844 | 221 | <page string="General"> | ||
2845 | 222 | <group string="Identification" colspan="4"> | ||
2846 | 223 | <field name="phone_contact" /> | ||
2847 | 224 | <field name="name_contact" /> | ||
2848 | 225 | <field name="representative_vat" /> | ||
2849 | 226 | </group> | ||
2850 | 227 | <group string="Susbtitutive/complementary declaration" colspan="4"> | ||
2851 | 228 | <field name="type"/> | ||
2852 | 229 | <field name="previous_number"/> | ||
2853 | 230 | </group> | ||
2854 | 231 | <group string="Electronic Code VAT reverse charge" colspan="4"> | ||
2855 | 232 | <field name="ean13" nolabel="1"/> | ||
2856 | 233 | </group> | ||
2857 | 234 | <group string="Summary" colspan="4"> | ||
2858 | 235 | <field name="number_records"/> | ||
2859 | 236 | <field name="total_taxable"/> | ||
2860 | 237 | <field name="total_sharetax"/> | ||
2861 | 238 | <field name="total"/> | ||
2862 | 239 | </group> | ||
2863 | 240 | <group colspan="4" col="10"> | ||
2864 | 241 | </group> | ||
2865 | 242 | </page> | ||
2866 | 243 | <page string="Issued invoice"> | ||
2867 | 244 | <field name="issued" nolabel="1" /> | ||
2868 | 245 | </page> | ||
2869 | 246 | <page string="Received invoice"> | ||
2870 | 247 | <field name="received" nolabel="1" /> | ||
2871 | 248 | </page> | ||
2872 | 249 | <page string="Investment goods"> | ||
2873 | 250 | <field name="investment" nolabel="1"/> | ||
2874 | 251 | </page> | ||
2875 | 252 | <!-- TODO: intracommunity--> | ||
2876 | 253 | <page string="Other intracommunity operations" invisible="1"> | ||
2877 | 254 | <field name="intracomunitarias" nolabel="1"/> | ||
2878 | 255 | </page> | ||
2879 | 256 | </notebook> | ||
2880 | 257 | </group> | ||
2881 | 258 | </field> | ||
2882 | 259 | </record> | ||
2883 | 260 | <!-- FIN Modelo 340 --> | ||
2884 | 261 | |||
2885 | 262 | |||
2886 | 263 | <!--Invoice Issued--> | ||
2887 | 264 | |||
2888 | 265 | <record id="view_l10n_es_aeat_mod340_invoice_issued_tree" model="ir.ui.view"> | ||
2889 | 266 | <field name="name">l10n.es.aeat.mod340.issued.tree</field> | ||
2890 | 267 | <field name="model">l10n.es.aeat.mod340.issued</field> | ||
2891 | 268 | <field name="arch" type="xml"> | ||
2892 | 269 | <tree string="Issued invoices"> | ||
2893 | 270 | <field name="date_invoice"/> | ||
2894 | 271 | <field name="partner_id"/> | ||
2895 | 272 | <field name="operation_key"/> | ||
2896 | 273 | <field name="partner_country_code"/> | ||
2897 | 274 | <field name="partner_vat"/> | ||
2898 | 275 | <field name="invoice_id"/> | ||
2899 | 276 | <field name="base_tax" sum="Total Base" /> | ||
2900 | 277 | <field name="amount_tax" sum="Total Tax" /> | ||
2901 | 278 | <field name="total" sum="Total"/> | ||
2902 | 279 | </tree> | ||
2903 | 280 | </field> | ||
2904 | 281 | </record> | ||
2905 | 282 | |||
2906 | 283 | <record id="view_l10n_es_aeat_mod340_invoice_issued_form" model="ir.ui.view"> | ||
2907 | 284 | <field name="name">l10n.es.aeat.mod340.issued.form</field> | ||
2908 | 285 | <field name="model">l10n.es.aeat.mod340.issued</field> | ||
2909 | 286 | <field name="arch" type="xml"> | ||
2910 | 287 | <form string="Issued invoices"> | ||
2911 | 288 | <field name="invoice_id"/> | ||
2912 | 289 | <newline/> | ||
2913 | 290 | <field name="partner_id"/> | ||
2914 | 291 | <field name="partner_vat"/> | ||
2915 | 292 | <field name="representative_vat"/> | ||
2916 | 293 | <field name="partner_country_code"/> | ||
2917 | 294 | <newline/> | ||
2918 | 295 | <field name="base_tax" /> | ||
2919 | 296 | <field name="amount_tax" /> | ||
2920 | 297 | <newline/> | ||
2921 | 298 | <field name="total"/> | ||
2922 | 299 | <field name="ledger_key"/> | ||
2923 | 300 | <field name="tax_line_ids"/> | ||
2924 | 301 | <field name="operation_key"/> | ||
2925 | 302 | </form> | ||
2926 | 303 | </field> | ||
2927 | 304 | </record> | ||
2928 | 305 | |||
2929 | 306 | <!--Invoice Received--> | ||
2930 | 307 | |||
2931 | 308 | <record id="view_l10n_es_aeat_mod340_invoice_received_tree" model="ir.ui.view"> | ||
2932 | 309 | <field name="name">l10n.es.aeat.mod340.received.tree</field> | ||
2933 | 310 | <field name="model">l10n.es.aeat.mod340.received</field> | ||
2934 | 311 | <field name="arch" type="xml"> | ||
2935 | 312 | <tree string="Received invoices"> | ||
2936 | 313 | <field name="partner_id"/> | ||
2937 | 314 | <field name="operation_key"/> | ||
2938 | 315 | <field name="partner_country_code"/> | ||
2939 | 316 | <field name="partner_vat"/> | ||
2940 | 317 | <field name="invoice_id"/> | ||
2941 | 318 | <field name="base_tax" sum="Total Base"/> | ||
2942 | 319 | <field name="amount_tax" sum="Total Tax"/> | ||
2943 | 320 | <field name="total" sum="Total"/> | ||
2944 | 321 | </tree> | ||
2945 | 322 | </field> | ||
2946 | 323 | </record> | ||
2947 | 324 | |||
2948 | 325 | <record id="view_l10n_es_aeat_mod340_invoice_received_form" model="ir.ui.view"> | ||
2949 | 326 | <field name="name">l10n.es.aeat.mod340.received.form</field> | ||
2950 | 327 | <field name="model">l10n.es.aeat.mod340.received</field> | ||
2951 | 328 | <field name="arch" type="xml"> | ||
2952 | 329 | <form string="Received invoices"> | ||
2953 | 330 | <field name="invoice_id"/> | ||
2954 | 331 | <newline/> | ||
2955 | 332 | <field name="partner_id"/> | ||
2956 | 333 | <field name="partner_vat"/> | ||
2957 | 334 | <field name="representative_vat"/> | ||
2958 | 335 | <field name="partner_country_code"/> | ||
2959 | 336 | <newline/> | ||
2960 | 337 | <field name="base_tax"/> | ||
2961 | 338 | <field name="amount_tax"/> | ||
2962 | 339 | <newline/> | ||
2963 | 340 | <field name="total"/> | ||
2964 | 341 | <field name="ledger_key"/> | ||
2965 | 342 | <field name="tax_line_ids"/> | ||
2966 | 343 | <field name="operation_key"/> | ||
2967 | 344 | </form> | ||
2968 | 345 | </field> | ||
2969 | 346 | </record> | ||
2970 | 347 | |||
2971 | 348 | <!--Investment goods --> | ||
2972 | 349 | |||
2973 | 350 | <record id="view_l10n_es_aeat_mod340_invoice_investment_tree" model="ir.ui.view"> | ||
2974 | 351 | <field name="name">l10n.es.aeat.mod340.investment.tree</field> | ||
2975 | 352 | <field name="model">l10n.es.aeat.mod340.investment</field> | ||
2976 | 353 | <field name="arch" type="xml"> | ||
2977 | 354 | <tree string="Investment goods"> | ||
2978 | 355 | <field name="partner_id"/> | ||
2979 | 356 | <field name="operation_key"/> | ||
2980 | 357 | <field name="partner_country_code"/> | ||
2981 | 358 | <field name="partner_vat"/> | ||
2982 | 359 | <field name="invoice_id"/> | ||
2983 | 360 | <field name="base_tax" sum="Total Base"/> | ||
2984 | 361 | <field name="amount_tax" sum="Total Tax"/> | ||
2985 | 362 | <field name="total" sum="Total"/> | ||
2986 | 363 | </tree> | ||
2987 | 364 | </field> | ||
2988 | 365 | </record> | ||
2989 | 366 | |||
2990 | 367 | <record id="view_l10n_es_aeat_mod340_invoice_investment_form" model="ir.ui.view"> | ||
2991 | 368 | <field name="name">l10n.es.aeat.mod340.investment.form</field> | ||
2992 | 369 | <field name="model">l10n.es.aeat.mod340.investment</field> | ||
2993 | 370 | <field name="arch" type="xml"> | ||
2994 | 371 | <form string="Investment goods"> | ||
2995 | 372 | <group> | ||
2996 | 373 | <field name="invoice_id"/> | ||
2997 | 374 | <field name="partner_id"/> | ||
2998 | 375 | <field name="representative_vat"/> | ||
2999 | 376 | <field name="base_tax"/> | ||
3000 | 377 | <field name="amount_tax"/> | ||
3001 | 378 | <field name="total"/> | ||
3002 | 379 | <field name="tax_line_ids"/> | ||
3003 | 380 | </group> | ||
3004 | 381 | <group> | ||
3005 | 382 | <field name="partner_vat"/> | ||
3006 | 383 | <field name="partner_country_code"/> | ||
3007 | 384 | <field name="ledger_key"/> | ||
3008 | 385 | <field name="operation_key"/> | ||
3009 | 386 | <field name="use_date"/> | ||
3010 | 387 | <field name="prorata"/> | ||
3011 | 388 | </group> | ||
3012 | 389 | </form> | ||
3013 | 390 | </field> | ||
3014 | 391 | </record> | ||
3015 | 392 | |||
3016 | 393 | <!--Other Intracommunity Operations --> | ||
3017 | 394 | |||
3018 | 395 | <record id="view_l10n_es_aeat_mod340_invoice_intra_tree" model="ir.ui.view"> | ||
3019 | 396 | <field name="name">l10n.es.aeat.mod340.intra.tree</field> | ||
3020 | 397 | <field name="model">l10n.es.aeat.mod340.intracomunitarias</field> | ||
3021 | 398 | <field name="arch" type="xml"> | ||
3022 | 399 | <tree string="Other Intracommunity Operations"> | ||
3023 | 400 | <field name="partner_id"/> | ||
3024 | 401 | <field name="operation_key"/> | ||
3025 | 402 | <field name="partner_country_code"/> | ||
3026 | 403 | <field name="partner_vat"/> | ||
3027 | 404 | <field name="invoice_id"/> | ||
3028 | 405 | <field name="base_tax" sum="Total Base"/> | ||
3029 | 406 | <field name="amount_tax" sum="Total Tax"/> | ||
3030 | 407 | <field name="total" sum="Total"/> | ||
3031 | 408 | </tree> | ||
3032 | 409 | </field> | ||
3033 | 410 | </record> | ||
3034 | 411 | |||
3035 | 412 | <record id="view_l10n_es_aeat_mod340_invoice_intra_form" model="ir.ui.view"> | ||
3036 | 413 | <field name="name">l10n.es.aeat.mod340.intra.form</field> | ||
3037 | 414 | <field name="model">l10n.es.aeat.mod340.intracomunitarias</field> | ||
3038 | 415 | <field name="arch" type="xml"> | ||
3039 | 416 | <form string="Other Intracommunity Operations"> | ||
3040 | 417 | <field name="invoice_id"/> | ||
3041 | 418 | <newline/> | ||
3042 | 419 | <field name="partner_id"/> | ||
3043 | 420 | <field name="partner_vat"/> | ||
3044 | 421 | <field name="representative_vat"/> | ||
3045 | 422 | <field name="partner_country_code"/> | ||
3046 | 423 | <newline/> | ||
3047 | 424 | <field name="base_tax"/> | ||
3048 | 425 | <field name="amount_tax"/> | ||
3049 | 426 | <newline/> | ||
3050 | 427 | <field name="total"/> | ||
3051 | 428 | <field name="ledger_key"/> | ||
3052 | 429 | <field name="tax_line_ids"/> | ||
3053 | 430 | <field name="operation_key"/> | ||
3054 | 431 | </form> | ||
3055 | 432 | </field> | ||
3056 | 433 | </record> | ||
3057 | 434 | |||
3058 | 435 | |||
3059 | 436 | <!--Vat Lines--> | ||
3060 | 437 | |||
3061 | 438 | <record id="view_l10n_es_aeat_mod340_tax_line_issued_form" model="ir.ui.view"> | ||
3062 | 439 | <field name="name">l10n.es.aeat.mod340.tax_line_issued.form</field> | ||
3063 | 440 | <field name="model">l10n.es.aeat.mod340.tax_line_issued</field> | ||
3064 | 441 | <field name="arch" type="xml"> | ||
3065 | 442 | <form string="Tax line issued"> | ||
3066 | 443 | <group> | ||
3067 | 444 | <field name="name"/> | ||
3068 | 445 | <field name="base_amount"/> | ||
3069 | 446 | <field name="tax_percentage"/> | ||
3070 | 447 | <field name="tax_amount"/> | ||
3071 | 448 | </group> | ||
3072 | 449 | <group> | ||
3073 | 450 | <separator colspan="2"/> | ||
3074 | 451 | <separator colspan="2"/> | ||
3075 | 452 | <separator colspan="2"/> | ||
3076 | 453 | <field name="surcharge_percentage"/> | ||
3077 | 454 | <field name="surcharge_amount"/> | ||
3078 | 455 | </group> | ||
3079 | 456 | </form> | ||
3080 | 457 | </field> | ||
3081 | 458 | </record> | ||
3082 | 459 | |||
3083 | 460 | <record id="view_l10n_es_aeat_mod340_tax_line_issued_tree" model="ir.ui.view"> | ||
3084 | 461 | <field name="name">l10n.es.aeat.mod340.tax_line_issued.tree</field> | ||
3085 | 462 | <field name="model">l10n.es.aeat.mod340.tax_line_issued</field> | ||
3086 | 463 | <field name="arch" type="xml"> | ||
3087 | 464 | <tree string="Tax line issued"> | ||
3088 | 465 | <field name="name"/> | ||
3089 | 466 | <field name="surcharge_percentage"/> | ||
3090 | 467 | </tree> | ||
3091 | 468 | </field> | ||
3092 | 469 | </record> | ||
3093 | 470 | |||
3094 | 471 | <record id="view_l10n_es_aeat_mod340_tax_line_received_form" model="ir.ui.view"> | ||
3095 | 472 | <field name="name">l10n.es.aeat.mod340.tax_line_received.form</field> | ||
3096 | 473 | <field name="model">l10n.es.aeat.mod340.tax_line_received</field> | ||
3097 | 474 | <field name="arch" type="xml"> | ||
3098 | 475 | <form string="Tax line received"> | ||
3099 | 476 | <group> | ||
3100 | 477 | <field name="name"/> | ||
3101 | 478 | <field name="base_amount"/> | ||
3102 | 479 | <field name="tax_percentage"/> | ||
3103 | 480 | <field name="tax_amount"/> | ||
3104 | 481 | </group> | ||
3105 | 482 | <group> | ||
3106 | 483 | <separator colspan="2"/> | ||
3107 | 484 | <separator colspan="2"/> | ||
3108 | 485 | <separator colspan="2"/> | ||
3109 | 486 | <field name="surcharge_percentage"/> | ||
3110 | 487 | <field name="surcharge_amount"/> | ||
3111 | 488 | </group> | ||
3112 | 489 | </form> | ||
3113 | 490 | </field> | ||
3114 | 491 | </record> | ||
3115 | 492 | |||
3116 | 493 | <record id="view_l10n_es_aeat_mod340_tax_line_investment_form" model="ir.ui.view"> | ||
3117 | 494 | <field name="name">l10n.es.aeat.mod340.tax_line_investment.form</field> | ||
3118 | 495 | <field name="model">l10n.es.aeat.mod340.tax_line_investment</field> | ||
3119 | 496 | <field name="arch" type="xml"> | ||
3120 | 497 | <form string="Tax line investment goods"> | ||
3121 | 498 | <group> | ||
3122 | 499 | <field name="name"/> | ||
3123 | 500 | <field name="base_amount"/> | ||
3124 | 501 | <field name="tax_percentage"/> | ||
3125 | 502 | <field name="tax_amount"/> | ||
3126 | 503 | </group> | ||
3127 | 504 | <group> | ||
3128 | 505 | <field name="goods_identification"/> | ||
3129 | 506 | </group> | ||
3130 | 507 | </form> | ||
3131 | 508 | </field> | ||
3132 | 509 | </record> | ||
3133 | 510 | |||
3134 | 511 | <record id="view_l10n_es_aeat_mod340_tax_line_intra_form" model="ir.ui.view"> | ||
3135 | 512 | <field name="name">l10n.es.aeat.mod340.tax_line_intra.form</field> | ||
3136 | 513 | <field name="model">l10n.es.aeat.mod340.tax_line_intra</field> | ||
3137 | 514 | <field name="arch" type="xml"> | ||
3138 | 515 | <form string="Tax line intracommunity"> | ||
3139 | 516 | <group> | ||
3140 | 517 | <field name="name"/> | ||
3141 | 518 | <field name="base_amount"/> | ||
3142 | 519 | <field name="tax_percentage"/> | ||
3143 | 520 | <field name="tax_amount"/> | ||
3144 | 521 | </group> | ||
3145 | 522 | </form> | ||
3146 | 523 | </field> | ||
3147 | 524 | </record> | ||
3148 | 525 | |||
3149 | 526 | <record id="view_l10n_es_aeat_mod340_report_search" model="ir.ui.view"> | ||
3150 | 527 | >>>>>>> MERGE-SOURCE | ||
3151 | 186 | <field name="name">AEAT Model 340 (search)</field> | 528 | <field name="name">AEAT Model 340 (search)</field> |
3152 | 187 | <field name="model">l10n.es.aeat.mod340.report</field> | 529 | <field name="model">l10n.es.aeat.mod340.report</field> |
3153 | 188 | <field name="arch" type="xml"> | 530 | <field name="arch" type="xml"> |
3154 | 189 | 531 | ||
3155 | === modified file 'l10n_es_aeat_mod340/res_partner.py' | |||
3156 | --- l10n_es_aeat_mod340/res_partner.py 2014-02-09 16:33:45 +0000 | |||
3157 | +++ l10n_es_aeat_mod340/res_partner.py 2014-06-01 16:57:08 +0000 | |||
3158 | @@ -26,9 +26,7 @@ | |||
3159 | 26 | from openerp.osv import orm, fields | 26 | from openerp.osv import orm, fields |
3160 | 27 | 27 | ||
3161 | 28 | class res_partner(orm.Model): | 28 | class res_partner(orm.Model): |
3165 | 29 | """ | 29 | |
3163 | 30 | Extends the partners to add the include_in_mod347 field | ||
3164 | 31 | """ | ||
3166 | 32 | _inherit = "res.partner" | 30 | _inherit = "res.partner" |
3167 | 33 | 31 | ||
3168 | 34 | _columns = { | 32 | _columns = { |
3169 | 35 | 33 | ||
3170 | === modified file 'l10n_es_aeat_mod340/security/ir.model.access.csv' | |||
3171 | --- l10n_es_aeat_mod340/security/ir.model.access.csv 2014-02-09 16:33:45 +0000 | |||
3172 | +++ l10n_es_aeat_mod340/security/ir.model.access.csv 2014-06-01 16:57:08 +0000 | |||
3173 | @@ -6,3 +6,5 @@ | |||
3174 | 6 | access_l10n_es_aeat_mod340_intracomunitarias_manager,l10n_es_aeat_mod340_intracomunitarias manager,model_l10n_es_aeat_mod340_intracomunitarias,l10n_es_aeat.group_account_aeat,1,1,1,1 | 6 | access_l10n_es_aeat_mod340_intracomunitarias_manager,l10n_es_aeat_mod340_intracomunitarias manager,model_l10n_es_aeat_mod340_intracomunitarias,l10n_es_aeat.group_account_aeat,1,1,1,1 |
3175 | 7 | access_l10n_es_aeat_mod340_tax_line_issued,l10n_es_aeat_mod340_tax_line_issued,model_l10n_es_aeat_mod340_tax_line_issued,l10n_es_aeat.group_account_aeat,1,1,1,1 | 7 | access_l10n_es_aeat_mod340_tax_line_issued,l10n_es_aeat_mod340_tax_line_issued,model_l10n_es_aeat_mod340_tax_line_issued,l10n_es_aeat.group_account_aeat,1,1,1,1 |
3176 | 8 | access_l10n_es_aeat_mod340_tax_line_received,l10n_es_aeat_mod340_tax_line_received,model_l10n_es_aeat_mod340_tax_line_received,l10n_es_aeat.group_account_aeat,1,1,1,1 | 8 | access_l10n_es_aeat_mod340_tax_line_received,l10n_es_aeat_mod340_tax_line_received,model_l10n_es_aeat_mod340_tax_line_received,l10n_es_aeat.group_account_aeat,1,1,1,1 |
3177 | 9 | access_l10n_es_aeat_mod340_tax_line_investment,l10n_es_aeat_mod340_tax_line_investment,model_l10n_es_aeat_mod340_tax_line_investment,l10n_es_aeat.group_account_aeat,1,1,1,1 | ||
3178 | 10 | access_l10n_es_aeat_mod340_tax_line_intra,l10n_es_aeat_mod340_tax_line_intra,model_l10n_es_aeat_mod340_tax_line_intra,l10n_es_aeat.group_account_aeat,1,1,1,1 | ||
3179 | 9 | 11 | ||
3180 | === added file 'l10n_es_aeat_mod340/taxes_common.xml' | |||
3181 | --- l10n_es_aeat_mod340/taxes_common.xml 1970-01-01 00:00:00 +0000 | |||
3182 | +++ l10n_es_aeat_mod340/taxes_common.xml 2014-06-01 16:57:08 +0000 | |||
3183 | @@ -0,0 +1,284 @@ | |||
3184 | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
3185 | 2 | <openerp> | ||
3186 | 3 | <data noupdate="0"> | ||
3187 | 4 | <!-- Plantilla común de impuestos para España. | ||
3188 | 5 | |||
3189 | 6 | Cargamos las claves para los impuestos presentes en l10n_es rev XXXXXX | ||
3190 | 7 | |||
3191 | 8 | TODO: poner revisión o fecha cuando se mergee la refactorización que ha hecho Pedro | ||
3192 | 9 | https://code.launchpad.net/~pedro.baeza/openerp-spain/7.0-l10n_es-refactorized/+merge/196807 | ||
3193 | 10 | --> | ||
3194 | 11 | |||
3195 | 12 | <!-- NUEVOS (mover a su sitio) --> | ||
3196 | 13 | <!-- 12% IVA Soportado régimen agricultura --> | ||
3197 | 14 | <record id="l10n_es.iva_sop_12_agr" model="account.tax.template"> | ||
3198 | 15 | <field name="ledger_key">R</field> | ||
3199 | 16 | <field name="operation_key">X</field> | ||
3200 | 17 | </record> | ||
3201 | 18 | <!-- IVA 21% Intracomunitario. Servicios --> | ||
3202 | 19 | <record id="l10n_es.iva_IC_compras_21_sv" model="account.tax.template"> | ||
3203 | 20 | <field name="ledger_key">R</field> | ||
3204 | 21 | <field name="operation_key">I</field> | ||
3205 | 22 | </record> | ||
3206 | 23 | <!-- IVA 21% Intracomunitario. Servicios (1) --> | ||
3207 | 24 | <record id="l10n_es.iva_IC_compras_21_sv_1" model="account.tax.template"> | ||
3208 | 25 | <field name="ledger_key">R</field> | ||
3209 | 26 | <field name="operation_key">I</field> | ||
3210 | 27 | </record> | ||
3211 | 28 | <!-- IVA 21% Intracomunitario. Servicios (2) --> | ||
3212 | 29 | <record id="l10n_es.iva_IC_compras_21_sv_2" model="account.tax.template"> | ||
3213 | 30 | <field name="ledger_key">R</field> | ||
3214 | 31 | <field name="operation_key">I</field> | ||
3215 | 32 | </record> | ||
3216 | 33 | <!-- FIN NUEVOS --> | ||
3217 | 34 | |||
3218 | 35 | <!-- IVA soportado --> | ||
3219 | 36 | <!-- 4% IVA Soportado (operaciones corrientes) --> | ||
3220 | 37 | <record id="l10n_es.iva_sop_4" model="account.tax.template"> | ||
3221 | 38 | <field name="ledger_key">R</field> | ||
3222 | 39 | </record> | ||
3223 | 40 | |||
3224 | 41 | <!-- 4% IVA Soportado (bienes de inversión) --> | ||
3225 | 42 | <record id="l10n_es.iva_sop_4_inv" model="account.tax.template"> | ||
3226 | 43 | <field name="ledger_key">I</field> | ||
3227 | 44 | </record> | ||
3228 | 45 | |||
3229 | 46 | <!-- 10% IVA Soportado (operaciones corrientes) --> | ||
3230 | 47 | <record id="l10n_es.iva_sop_10" model="account.tax.template"> | ||
3231 | 48 | <field name="ledger_key">R</field> | ||
3232 | 49 | </record> | ||
3233 | 50 | |||
3234 | 51 | <!-- 10% IVA Soportado (bienes de inversión) --> | ||
3235 | 52 | <record id="l10n_es.iva_sop_10_inv" model="account.tax.template"> | ||
3236 | 53 | <field name="ledger_key">I</field> | ||
3237 | 54 | </record> | ||
3238 | 55 | |||
3239 | 56 | <!-- 21% IVA Soportado (operaciones corrientes) --> | ||
3240 | 57 | <record id="l10n_es.iva_sop_21" model="account.tax.template"> | ||
3241 | 58 | <field name="ledger_key">R</field> | ||
3242 | 59 | </record> | ||
3243 | 60 | |||
3244 | 61 | <!-- 21% IVA Soportado (bienes de inversión) --> | ||
3245 | 62 | <record id="l10n_es.iva_sop_21_inv" model="account.tax.template"> | ||
3246 | 63 | <field name="ledger_key">I</field> | ||
3247 | 64 | </record> | ||
3248 | 65 | |||
3249 | 66 | <!-- Plantillas para Extracomunitario--> | ||
3250 | 67 | <!-- IVA compras --> | ||
3251 | 68 | <!-- IVA 0% Importaciones bienes corrientes --> | ||
3252 | 69 | <record id="l10n_es.iva_X0_compras_bc" model="account.tax.template"> | ||
3253 | 70 | <field name="ledger_key">R</field> | ||
3254 | 71 | </record> | ||
3255 | 72 | <!-- IVA 0% Importaciones bienes de inversión --> | ||
3256 | 73 | <record id="l10n_es.iva_X0_compras_bi" model="account.tax.template"> | ||
3257 | 74 | <field name="ledger_key">I</field> | ||
3258 | 75 | </record> | ||
3259 | 76 | <!-- IVA 4% Importaciones bienes corrientes --> | ||
3260 | 77 | <record id="l10n_es.iva_X4_compras_bc" model="account.tax.template"> | ||
3261 | 78 | <field name="ledger_key">R</field> | ||
3262 | 79 | </record> | ||
3263 | 80 | <!-- IVA 4% Importaciones bienes de inversión --> | ||
3264 | 81 | <record id="l10n_es.iva_X4_compras_bi" model="account.tax.template"> | ||
3265 | 82 | <field name="ledger_key">I</field> | ||
3266 | 83 | </record> | ||
3267 | 84 | <!-- IVA 10% Importaciones bienes corrientes --> | ||
3268 | 85 | <record id="l10n_es.iva_X10_compras_bc" model="account.tax.template"> | ||
3269 | 86 | <field name="ledger_key">R</field> | ||
3270 | 87 | </record> | ||
3271 | 88 | <!-- IVA 10% Importaciones bienes de inversión --> | ||
3272 | 89 | <record id="l10n_es.iva_X10_compras_bi" model="account.tax.template"> | ||
3273 | 90 | <field name="ledger_key">I</field> | ||
3274 | 91 | </record> | ||
3275 | 92 | <!-- IVA 21% Importaciones bienes corrientes --> | ||
3276 | 93 | <record id="l10n_es.iva_X21_compras_bc" model="account.tax.template"> | ||
3277 | 94 | <field name="ledger_key">R</field> | ||
3278 | 95 | </record> | ||
3279 | 96 | <!-- IVA 21% Importaciones bienes de inversión --> | ||
3280 | 97 | <record id="l10n_es.iva_X21_compras_bi" model="account.tax.template"> | ||
3281 | 98 | <field name="ledger_key">I</field> | ||
3282 | 99 | </record> | ||
3283 | 100 | |||
3284 | 101 | <!-- IVA EXPORTACIONES (VENTAS )--> | ||
3285 | 102 | <!-- IVA 0% Exportaciones --> | ||
3286 | 103 | <record id="l10n_es.iva_X0" model="account.tax.template"> | ||
3287 | 104 | <field name="ledger_key">E</field> | ||
3288 | 105 | </record> | ||
3289 | 106 | |||
3290 | 107 | <!-- Inversión del sujeto pasivo --> | ||
3291 | 108 | <!-- IVA 21% Inversión del sujeto pasivo --> | ||
3292 | 109 | <record id="l10n_es.iva_ISP_compras_21" model="account.tax.template"> | ||
3293 | 110 | <field name="ledger_key">R</field> | ||
3294 | 111 | <field name="operation_key">I</field> | ||
3295 | 112 | </record> | ||
3296 | 113 | <!-- IVA 21% Inversión del sujeto pasivo (1) --> | ||
3297 | 114 | <record id="l10n_es.iva_ISP_compras_21_1" model="account.tax.template"> | ||
3298 | 115 | <field name="ledger_key">R</field> | ||
3299 | 116 | <field name="operation_key">I</field> | ||
3300 | 117 | </record> | ||
3301 | 118 | <!-- IVA 21% Inversión del sujeto pasivo (2) --> | ||
3302 | 119 | <record id="l10n_es.iva_ISP_compras_21_2" model="account.tax.template"> | ||
3303 | 120 | <field name="ledger_key">R</field> | ||
3304 | 121 | <field name="operation_key">I</field> | ||
3305 | 122 | </record> | ||
3306 | 123 | <!-- IVA 21% Inversión del sujeto pasivo (3) --> | ||
3307 | 124 | <record id="l10n_es.iva_ISP_compras_21_3" model="account.tax.template"> | ||
3308 | 125 | <field name="ledger_key">R</field> | ||
3309 | 126 | <field name="operation_key">I</field> | ||
3310 | 127 | </record> | ||
3311 | 128 | |||
3312 | 129 | <!-- IVA REPERCUTIDO--> | ||
3313 | 130 | <!-- IVA 4% --> | ||
3314 | 131 | <record id="l10n_es.iva_rep_4" model="account.tax.template"> | ||
3315 | 132 | <field name="ledger_key">E</field> | ||
3316 | 133 | </record> | ||
3317 | 134 | <!-- IVA 10% --> | ||
3318 | 135 | <record id="l10n_es.iva_rep_10" model="account.tax.template"> | ||
3319 | 136 | <field name="ledger_key">E</field> | ||
3320 | 137 | </record> | ||
3321 | 138 | <!-- IVA 21% --> | ||
3322 | 139 | <record id="l10n_es.iva_rep_21" model="account.tax.template"> | ||
3323 | 140 | <field name="ledger_key">E</field> | ||
3324 | 141 | </record> | ||
3325 | 142 | |||
3326 | 143 | <!-- Plantillas para recargo de equivalencia--> | ||
3327 | 144 | <!-- 0.50% Recargo Equivalencia Ventas --> | ||
3328 | 145 | <record id="l10n_es.re_05" model="account.tax.template"> | ||
3329 | 146 | <field name="ledger_key">E</field> | ||
3330 | 147 | <field name="operation_key">-</field> | ||
3331 | 148 | </record> | ||
3332 | 149 | <!-- 1.4% Recargo Equivalencia Ventas --> | ||
3333 | 150 | <record id="l10n_es.re_14" model="account.tax.template"> | ||
3334 | 151 | <field name="ledger_key">E</field> | ||
3335 | 152 | <field name="operation_key">-</field> | ||
3336 | 153 | </record> | ||
3337 | 154 | <!-- 5.2% Recargo Equivalencia Ventas --> | ||
3338 | 155 | <record id="l10n_es.re_52" model="account.tax.template"> | ||
3339 | 156 | <field name="ledger_key">E</field> | ||
3340 | 157 | <field name="operation_key">-</field> | ||
3341 | 158 | </record> | ||
3342 | 159 | <!-- 0.50% Recargo Equivalencia Compras --> | ||
3343 | 160 | <record id="l10n_es.re_buy_05" model="account.tax.template"> | ||
3344 | 161 | <field name="ledger_key">R</field> | ||
3345 | 162 | <field name="operation_key">-</field> | ||
3346 | 163 | </record> | ||
3347 | 164 | <!-- 1.4% Recargo Equivalencia Compras --> | ||
3348 | 165 | <record id="l10n_es.re_buy_14" model="account.tax.template"> | ||
3349 | 166 | <field name="ledger_key">R</field> | ||
3350 | 167 | <field name="operation_key">-</field> | ||
3351 | 168 | </record> | ||
3352 | 169 | <!-- 5.2% Recargo Equivalencia Compras --> | ||
3353 | 170 | <record id="l10n_es.re_buy_52" model="account.tax.template"> | ||
3354 | 171 | <field name="ledger_key">R</field> | ||
3355 | 172 | <field name="operation_key">-</field> | ||
3356 | 173 | </record> | ||
3357 | 174 | |||
3358 | 175 | <!-- OPERACIONES INTRACOMUNITARIAS --> | ||
3359 | 176 | |||
3360 | 177 | <!-- VENTAS --> | ||
3361 | 178 | <!-- IVA 0% Intracomunitario --> | ||
3362 | 179 | <record id="l10n_es.iva_IO" model="account.tax.template"> | ||
3363 | 180 | <field name="ledger_key">E</field> | ||
3364 | 181 | </record> | ||
3365 | 182 | |||
3366 | 183 | <!-- COMPRAS --> | ||
3367 | 184 | <!-- IVA 4% Intracomunitario. Bienes corrientes --> | ||
3368 | 185 | <record id="l10n_es.iva_IC_compras_4_bc" model="account.tax.template"> | ||
3369 | 186 | <field name="ledger_key">R</field> | ||
3370 | 187 | <field name="operation_key">P</field> | ||
3371 | 188 | </record> | ||
3372 | 189 | <!-- IVA 4% Intracomunitario. Bienes corrientes (1) --> | ||
3373 | 190 | <record id="l10n_es.iva_IC_compras_4_bc_1" model="account.tax.template"> | ||
3374 | 191 | <field name="ledger_key">R</field> | ||
3375 | 192 | <field name="operation_key">P</field> | ||
3376 | 193 | </record> | ||
3377 | 194 | <!-- IVA 4% Intracomunitario. Bienes corrientes (2) --> | ||
3378 | 195 | <record id="l10n_es.iva_IC_compras_4_bc_2" model="account.tax.template"> | ||
3379 | 196 | <field name="ledger_key">R</field> | ||
3380 | 197 | <field name="operation_key">P</field> | ||
3381 | 198 | </record> | ||
3382 | 199 | <!-- IVA 4% Intracomunitario. Bienes de inversión --> | ||
3383 | 200 | <record id="l10n_es.iva_IC_compras_4_bi" model="account.tax.template"> | ||
3384 | 201 | <field name="ledger_key">I</field> | ||
3385 | 202 | <field name="operation_key">P</field> | ||
3386 | 203 | </record> | ||
3387 | 204 | <!-- IVA 4% Intracomunitario. Bienes de inversión (1) --> | ||
3388 | 205 | <record id="l10n_es.iva_IC_compras_4_bi_1" model="account.tax.template"> | ||
3389 | 206 | <field name="ledger_key">I</field> | ||
3390 | 207 | <field name="operation_key">P</field> | ||
3391 | 208 | </record> | ||
3392 | 209 | <!-- IVA 4% Intracomunitario. Bienes de inversión (2) --> | ||
3393 | 210 | <record id="l10n_es.iva_IC_compras_4_bi_2" model="account.tax.template"> | ||
3394 | 211 | <field name="ledger_key">I</field> | ||
3395 | 212 | <field name="operation_key">P</field> | ||
3396 | 213 | </record> | ||
3397 | 214 | <!-- IVA 10% Intracomunitario. Bienes corrientes --> | ||
3398 | 215 | <record id="l10n_es.iva_IC_compras_10_bc" model="account.tax.template"> | ||
3399 | 216 | <field name="ledger_key">R</field> | ||
3400 | 217 | <field name="operation_key">P</field> | ||
3401 | 218 | </record> | ||
3402 | 219 | <!-- IVA 10% Intracomunitario. Bienes corrientes (1) --> | ||
3403 | 220 | <record id="l10n_es.iva_IC_compras_10_bc_1" model="account.tax.template"> | ||
3404 | 221 | <field name="ledger_key">R</field> | ||
3405 | 222 | <field name="operation_key">P</field> | ||
3406 | 223 | </record> | ||
3407 | 224 | <!-- IVA 10% Intracomunitario. Bienes corrientes (2) --> | ||
3408 | 225 | <record id="l10n_es.iva_IC_compras_10_bc_2" model="account.tax.template"> | ||
3409 | 226 | <field name="ledger_key">R</field> | ||
3410 | 227 | <field name="operation_key">P</field> | ||
3411 | 228 | </record> | ||
3412 | 229 | <!-- IVA 10% Intracomunitario. Bienes de inversión --> | ||
3413 | 230 | <record id="l10n_es.iva_IC_compras_10_bi" model="account.tax.template"> | ||
3414 | 231 | <field name="ledger_key">I</field> | ||
3415 | 232 | <field name="operation_key">P</field> | ||
3416 | 233 | </record> | ||
3417 | 234 | <!-- IVA 10% Intracomunitario. Bienes de inversión (1) --> | ||
3418 | 235 | <record id="l10n_es.iva_IC_compras_10_bi_1" model="account.tax.template"> | ||
3419 | 236 | <field name="ledger_key">I</field> | ||
3420 | 237 | <field name="operation_key">P</field> | ||
3421 | 238 | </record> | ||
3422 | 239 | <!-- IVA 10% Intracomunitario. Bienes de inversión (2) --> | ||
3423 | 240 | <record id="l10n_es.iva_IC_compras_10_bi_2" model="account.tax.template"> | ||
3424 | 241 | <field name="ledger_key">I</field> | ||
3425 | 242 | <field name="operation_key">P</field> | ||
3426 | 243 | </record> | ||
3427 | 244 | <!-- IVA 21% Intracomunitario. Bienes corrientes --> | ||
3428 | 245 | <record id="l10n_es.iva_IC_compras_21_bc" model="account.tax.template"> | ||
3429 | 246 | <field name="ledger_key">R</field> | ||
3430 | 247 | <field name="operation_key">P</field> | ||
3431 | 248 | </record> | ||
3432 | 249 | <!-- IVA 21% Intracomunitario. Bienes corrientes (1) --> | ||
3433 | 250 | <record id="l10n_es.iva_IC_compras_21_bc_1" model="account.tax.template"> | ||
3434 | 251 | <field name="ledger_key">R</field> | ||
3435 | 252 | <field name="operation_key">P</field> | ||
3436 | 253 | </record> | ||
3437 | 254 | <!-- IVA 21% Intracomunitario. Bienes corrientes (2) --> | ||
3438 | 255 | <record id="l10n_es.iva_IC_compras_21_bc_2" model="account.tax.template"> | ||
3439 | 256 | <field name="ledger_key">R</field> | ||
3440 | 257 | <field name="operation_key">P</field> | ||
3441 | 258 | </record> | ||
3442 | 259 | <!-- IVA 21% Intracomunitario. Bienes de inversión --> | ||
3443 | 260 | <record id="l10n_es.iva_IC_compras_21_bi" model="account.tax.template"> | ||
3444 | 261 | <field name="ledger_key">I</field> | ||
3445 | 262 | <field name="operation_key">P</field> | ||
3446 | 263 | </record> | ||
3447 | 264 | <!-- IVA 21% Intracomunitario. Bienes de inversión (1) --> | ||
3448 | 265 | <record id="l10n_es.iva_IC_compras_21_bi_1" model="account.tax.template"> | ||
3449 | 266 | <field name="ledger_key">I</field> | ||
3450 | 267 | <field name="operation_key">P</field> | ||
3451 | 268 | </record> | ||
3452 | 269 | <!-- IVA 21% Intracomunitario. Bienes de inversión (2) --> | ||
3453 | 270 | <record id="l10n_es.iva_IC_compras_21_bi_2" model="account.tax.template"> | ||
3454 | 271 | <field name="ledger_key">I</field> | ||
3455 | 272 | <field name="operation_key">P</field> | ||
3456 | 273 | </record> | ||
3457 | 274 | <!-- IVA Soportado exento (operaciones corrientes) --> | ||
3458 | 275 | <record id="l10n_es.iva_sop_ex" model="account.tax.template"> | ||
3459 | 276 | <field name="ledger_key">R</field> | ||
3460 | 277 | </record> | ||
3461 | 278 | <!-- IVA Exento --> | ||
3462 | 279 | <record id="l10n_es.iva_rep_ex" model="account.tax.template"> | ||
3463 | 280 | <field name="ledger_key">E</field> | ||
3464 | 281 | </record> | ||
3465 | 282 | |||
3466 | 283 | </data> | ||
3467 | 284 | </openerp> | ||
3468 | 0 | 285 | ||
3469 | === renamed file 'l10n_es_aeat_mod340/taxes_data.xml' => 'l10n_es_aeat_mod340/taxes_data.xml.THIS' | |||
3470 | === modified file 'l10n_es_aeat_mod340/wizard/calculate_mod340_records.py' | |||
3471 | --- l10n_es_aeat_mod340/wizard/calculate_mod340_records.py 2014-02-24 14:45:52 +0000 | |||
3472 | +++ l10n_es_aeat_mod340/wizard/calculate_mod340_records.py 2014-06-01 16:57:08 +0000 | |||
3473 | @@ -26,8 +26,8 @@ | |||
3474 | 26 | import re | 26 | import re |
3475 | 27 | from openerp.tools.translate import _ | 27 | from openerp.tools.translate import _ |
3476 | 28 | from openerp.osv import orm | 28 | from openerp.osv import orm |
3479 | 29 | from datetime import datetime | 29 | from openerp.tools.misc import DEFAULT_SERVER_DATETIME_FORMAT |
3480 | 30 | from dateutil.relativedelta import relativedelta | 30 | from openerp.tools.float_utils import float_round |
3481 | 31 | 31 | ||
3482 | 32 | class l10n_es_aeat_mod340_calculate_records(orm.TransientModel): | 32 | class l10n_es_aeat_mod340_calculate_records(orm.TransientModel): |
3483 | 33 | _name = "l10n.es.aeat.mod340.calculate_records" | 33 | _name = "l10n.es.aeat.mod340.calculate_records" |
3484 | @@ -45,6 +45,48 @@ | |||
3485 | 45 | 45 | ||
3486 | 46 | 46 | ||
3487 | 47 | def _calculate_records(self, cr, uid, ids, context=None, recalculate=True): | 47 | def _calculate_records(self, cr, uid, ids, context=None, recalculate=True): |
3488 | 48 | fiscal_position_tax_obj = self.pool.get('account.fiscal.position.tax') | ||
3489 | 49 | def _get_source_tax(tax_line, pct, inv): | ||
3490 | 50 | ''' Recupera cuál es el impuesto que originó la línea de impuesto a partir | ||
3491 | 51 | de su tipo y su código base ''' | ||
3492 | 52 | for line in inv.invoice_line: | ||
3493 | 53 | for tax in line.invoice_line_tax_id: | ||
3494 | 54 | if tax.base_code_id.id == tax_line.base_code_id.id and pct == tax.amount: | ||
3495 | 55 | return tax | ||
3496 | 56 | for child_tax in tax.child_ids: | ||
3497 | 57 | if child_tax.base_code_id.id == tax_line.base_code_id.id and pct == child_tax.amount: | ||
3498 | 58 | return child_tax | ||
3499 | 59 | raise orm.except_orm(_('Error'), | ||
3500 | 60 | _("Invoice %s: Unable to determine the tax line %s source tax. The base code of the source tax may have been changed, please recompute the invoice taxes") % (inv.number,tax_line.name)) | ||
3501 | 61 | |||
3502 | 62 | |||
3503 | 63 | def _get_surcharged_tax(position_id, surcharge_id): | ||
3504 | 64 | mapping_ids = fiscal_position_tax_obj.search(cr, uid, [('position_id','=',position_id), | ||
3505 | 65 | ('tax_dest_id','=',surcharge_id)], context=context) | ||
3506 | 66 | if not mapping_ids: | ||
3507 | 67 | return False | ||
3508 | 68 | mapping = fiscal_position_tax_obj.browse(cr, uid, mapping_ids[0], context) | ||
3509 | 69 | mapping_ids = fiscal_position_tax_obj.search(cr, uid, [('position_id','=',position_id), | ||
3510 | 70 | ('tax_src_id','=',mapping.tax_src_id.id), | ||
3511 | 71 | ('tax_dest_id','!=',surcharge_id)], context=context) | ||
3512 | 72 | if not mapping_ids: | ||
3513 | 73 | return False | ||
3514 | 74 | mapping = fiscal_position_tax_obj.browse(cr, uid, mapping_ids[0], context) | ||
3515 | 75 | return mapping.tax_dest_id.id | ||
3516 | 76 | |||
3517 | 77 | def _rounded_pct(allowed_pcts, pct, key, invoice, threshold=0.01): | ||
3518 | 78 | pcts = allowed_pcts[key] | ||
3519 | 79 | sign = 1 | ||
3520 | 80 | if pct < 0: | ||
3521 | 81 | sign = -1 | ||
3522 | 82 | pct = pct * -1 | ||
3523 | 83 | candidates = [(x, abs(x-pct)) for x in pcts] | ||
3524 | 84 | candidates.sort(key=lambda x: x[1]) | ||
3525 | 85 | if candidates[0][1] <= threshold: | ||
3526 | 86 | return candidates[0][0] * sign | ||
3527 | 87 | raise orm.except_orm(_('Error'), | ||
3528 | 88 | _("Invoice %s: No match found for tax percentage %s") % (invoice.number, pct)) | ||
3529 | 89 | |||
3530 | 48 | if context is None: | 90 | if context is None: |
3531 | 49 | context = {} | 91 | context = {} |
3532 | 50 | 92 | ||
3533 | @@ -54,12 +96,22 @@ | |||
3534 | 54 | 96 | ||
3535 | 55 | invoices340 = self.pool.get('l10n.es.aeat.mod340.issued') | 97 | invoices340 = self.pool.get('l10n.es.aeat.mod340.issued') |
3536 | 56 | invoices340_rec = self.pool.get('l10n.es.aeat.mod340.received') | 98 | invoices340_rec = self.pool.get('l10n.es.aeat.mod340.received') |
3537 | 99 | invoices340_inv = self.pool.get('l10n.es.aeat.mod340.investment') | ||
3538 | 100 | invoices340_intra = self.pool.get('l10n.es.aeat.mod340.intracomunitarias') | ||
3539 | 57 | period_obj = self.pool.get('account.period') | 101 | period_obj = self.pool.get('account.period') |
3540 | 102 | precision = self.pool.get('decimal.precision').precision_get(cr, uid, 'Account') | ||
3541 | 103 | tax_obj = self.pool.get('account.tax') | ||
3542 | 58 | 104 | ||
3547 | 59 | mod340.write({ | 105 | allowed_tax_pct = tax_obj._allowed_pct_by_ledger(cr, uid, context) |
3548 | 60 | 'state' : 'calculated', | 106 | ledger2obj = { |
3549 | 61 | 'calculation_date' : time.strftime('%Y-%m-%d %H:%M:%S') | 107 | 'I': invoices340_inv, |
3550 | 62 | }) | 108 | 'J': invoices340_inv, |
3551 | 109 | 'U': invoices340_intra, | ||
3552 | 110 | 'E': invoices340, | ||
3553 | 111 | 'F': invoices340, | ||
3554 | 112 | 'R': invoices340_rec, | ||
3555 | 113 | 'S': invoices340_rec | ||
3556 | 114 | } | ||
3557 | 63 | 115 | ||
3558 | 64 | if not mod340.company_id.partner_id.vat: | 116 | if not mod340.company_id.partner_id.vat: |
3559 | 65 | raise orm.except_orm(mod340.company_id.partner_id.name, | 117 | raise orm.except_orm(mod340.company_id.partner_id.name, |
3560 | @@ -68,9 +120,6 @@ | |||
3561 | 68 | wf_service = netsvc.LocalService("workflow") | 120 | wf_service = netsvc.LocalService("workflow") |
3562 | 69 | wf_service.trg_validate(uid, 'l10n.es.aeat.mod347.report', | 121 | wf_service.trg_validate(uid, 'l10n.es.aeat.mod347.report', |
3563 | 70 | ids and ids[0], 'calculate', cr) | 122 | ids and ids[0], 'calculate', cr) |
3564 | 71 | |||
3565 | 72 | code = '340' + mod340.fiscalyear_id.code + '' | ||
3566 | 73 | code += mod340.period_to.date_stop[5:7] + '0001' | ||
3567 | 74 | 123 | ||
3568 | 75 | account_period_ids = period_obj.build_ctx_periods(cr, uid, | 124 | account_period_ids = period_obj.build_ctx_periods(cr, uid, |
3569 | 76 | mod340.period_from.id, mod340.period_to.id) | 125 | mod340.period_from.id, mod340.period_to.id) |
3570 | @@ -80,25 +129,27 @@ | |||
3571 | 80 | _("The periods selected don't belong to the fiscal year %s") | 129 | _("The periods selected don't belong to the fiscal year %s") |
3572 | 81 | % (mod340.fiscalyear_id.name)) | 130 | % (mod340.fiscalyear_id.name)) |
3573 | 82 | 131 | ||
3574 | 83 | tot_base = 0 | ||
3575 | 84 | tot_amount = 0 | ||
3576 | 85 | tot_tot = 0 | ||
3577 | 86 | tot_rec = 0 | ||
3578 | 87 | |||
3579 | 88 | |||
3580 | 89 | #Limpieza de las facturas calculadas anteriormente | 132 | #Limpieza de las facturas calculadas anteriormente |
3581 | 90 | 133 | ||
3584 | 91 | del_ids = invoices340.search(cr, uid, [ | 134 | del_ids = invoices340.search(cr, uid, [('mod340_id', '=', mod340.id)]) |
3583 | 92 | ('mod340_id', '=', mod340.id)]) | ||
3585 | 93 | 135 | ||
3586 | 94 | if del_ids: | 136 | if del_ids: |
3587 | 95 | invoices340.unlink(cr, uid, del_ids, context=context) | 137 | invoices340.unlink(cr, uid, del_ids, context=context) |
3588 | 96 | 138 | ||
3591 | 97 | del_ids = invoices340_rec.search(cr, uid, [ | 139 | del_ids = invoices340_rec.search(cr, uid, [('mod340_id', '=', mod340.id)]) |
3590 | 98 | ('mod340_id', '=', mod340.id)]) | ||
3592 | 99 | 140 | ||
3593 | 100 | if del_ids: | 141 | if del_ids: |
3594 | 101 | invoices340_rec.unlink(cr, uid, del_ids, context=context) | 142 | invoices340_rec.unlink(cr, uid, del_ids, context=context) |
3595 | 143 | |||
3596 | 144 | del_ids = invoices340_inv.search(cr, uid, [('mod340_id', '=', mod340.id)]) | ||
3597 | 145 | |||
3598 | 146 | if del_ids: | ||
3599 | 147 | invoices340_inv.unlink(cr, uid, del_ids, context=context) | ||
3600 | 148 | |||
3601 | 149 | del_ids = invoices340_intra.search(cr, uid, [('mod340_id', '=', mod340.id)]) | ||
3602 | 150 | |||
3603 | 151 | if del_ids: | ||
3604 | 152 | invoices340_intra.unlink(cr, uid, del_ids, context=context) | ||
3605 | 102 | 153 | ||
3606 | 103 | domain = [('period_id', 'in',account_period_ids), | 154 | domain = [('period_id', 'in',account_period_ids), |
3607 | 104 | ('state', 'in', ('open', 'paid'))] | 155 | ('state', 'in', ('open', 'paid'))] |
3608 | @@ -111,6 +162,7 @@ | |||
3609 | 111 | if tax_line.base_code_id and tax_line.base: | 162 | if tax_line.base_code_id and tax_line.base: |
3610 | 112 | if tax_line.base_code_id.mod340 == True: | 163 | if tax_line.base_code_id.mod340 == True: |
3611 | 113 | include = True | 164 | include = True |
3612 | 165 | break | ||
3613 | 114 | if include == True: | 166 | if include == True: |
3614 | 115 | if invoice.partner_id.vat_type == 1: | 167 | if invoice.partner_id.vat_type == 1: |
3615 | 116 | if not invoice.partner_id.vat: | 168 | if not invoice.partner_id.vat: |
3616 | @@ -122,7 +174,8 @@ | |||
3617 | 122 | re.match(r"([A-Z]{0,2})(.*)", | 174 | re.match(r"([A-Z]{0,2})(.*)", |
3618 | 123 | invoice.partner_id.vat).groups()[1] | 175 | invoice.partner_id.vat).groups()[1] |
3619 | 124 | country_code = invoice.partner_id.country_id.code | 176 | country_code = invoice.partner_id.country_id.code |
3621 | 125 | 177 | ledger_key, operation_key = invoice_obj.get_340_classification(cr, uid, invoice.id, context) | |
3622 | 178 | amounts = invoice_obj.get_cc_amounts(cr, uid, invoice.id, context) | ||
3623 | 126 | values = { | 179 | values = { |
3624 | 127 | 'mod340_id': mod340.id, | 180 | 'mod340_id': mod340.id, |
3625 | 128 | 'partner_id': invoice.partner_id.id, | 181 | 'partner_id': invoice.partner_id.id, |
3626 | @@ -130,33 +183,49 @@ | |||
3627 | 130 | 'representative_vat': '', | 183 | 'representative_vat': '', |
3628 | 131 | 'partner_country_code': country_code, | 184 | 'partner_country_code': country_code, |
3629 | 132 | 'invoice_id': invoice.id, | 185 | 'invoice_id': invoice.id, |
3633 | 133 | 'base_tax': invoice.amount_untaxed, | 186 | 'base_tax': amounts['cc_amount_untaxed'], |
3634 | 134 | 'amount_tax': invoice.amount_tax, | 187 | 'total': amounts['cc_amount_total'], |
3632 | 135 | 'total': invoice.amount_total, | ||
3635 | 136 | 'date_invoice': invoice.date_invoice, | 188 | 'date_invoice': invoice.date_invoice, |
3636 | 189 | 'ledger_key': ledger_key, | ||
3637 | 190 | 'operation_key': operation_key | ||
3638 | 137 | } | 191 | } |
3639 | 192 | if ledger_key in ('I', 'J'): | ||
3640 | 193 | values['use_date'] = invoice.date_invoice | ||
3641 | 138 | if invoice.type in ( 'out_refund','in_refund'): | 194 | if invoice.type in ( 'out_refund','in_refund'): |
3642 | 139 | values['base_tax'] *= -1 | 195 | values['base_tax'] *= -1 |
3643 | 140 | values['amount_tax'] *= -1 | ||
3644 | 141 | values['total'] *= -1 | 196 | values['total'] *= -1 |
3645 | 142 | |||
3646 | 143 | 197 | ||
3652 | 144 | if invoice.type=="out_invoice" or invoice.type=="out_refund": | 198 | invoice_created = ledger2obj[ledger_key].create(cr,uid,values) |
3648 | 145 | invoice_created = invoices340.create(cr,uid,values) | ||
3649 | 146 | |||
3650 | 147 | if invoice.type=="in_invoice" or invoice.type=="in_refund": | ||
3651 | 148 | invoice_created = invoices340_rec.create(cr,uid,values) | ||
3653 | 149 | 199 | ||
3654 | 150 | tot_tax_invoice = 0 | 200 | tot_tax_invoice = 0 |
3655 | 151 | check_tax = 0 | ||
3656 | 152 | check_base = 0 | 201 | check_base = 0 |
3658 | 153 | 202 | added_tax_lines = [] | |
3659 | 203 | values_taxes = {} | ||
3660 | 204 | values_surcharges = {} | ||
3661 | 154 | # Add the invoices detail to the partner record | 205 | # Add the invoices detail to the partner record |
3662 | 155 | for tax_line in invoice.tax_line: | 206 | for tax_line in invoice.tax_line: |
3663 | 156 | if tax_line.base_code_id and tax_line.base: | 207 | if tax_line.base_code_id and tax_line.base: |
3664 | 157 | if tax_line.base_code_id.mod340 == True: | 208 | if tax_line.base_code_id.mod340 == True: |
3665 | 158 | tax_percentage = tax_line.amount/tax_line.base | 209 | tax_percentage = tax_line.amount/tax_line.base |
3667 | 159 | 210 | tax_percentage = _rounded_pct(allowed_tax_pct, tax_percentage, ledger_key, invoice) | |
3668 | 211 | source_tax = _get_source_tax(tax_line, tax_percentage, invoice) | ||
3669 | 212 | |||
3670 | 213 | #El IVA agrario aunque tenga tipo 12% debe declararse con 0% | ||
3671 | 214 | if source_tax.operation_key and source_tax.operation_key == 'X': | ||
3672 | 215 | tax_percentage = 0 | ||
3673 | 216 | |||
3674 | 217 | #No se debe contar la base de los recargos de equivalencia o el | ||
3675 | 218 | #check fallará al sumar el doble que el subtotal de la factura | ||
3676 | 219 | if tax_percentage >= 0 and source_tax.operation_key != '-': | ||
3677 | 220 | check_base += tax_line.base | ||
3678 | 221 | |||
3679 | 222 | #Los impuestos que se desdoblan en 2 hijos como los de | ||
3680 | 223 | #compras intra solo deben generar un registro | ||
3681 | 224 | if (tax_line.base_amount, tax_percentage) in added_tax_lines: | ||
3682 | 225 | continue | ||
3683 | 226 | |||
3684 | 227 | tot_tax_invoice += tax_line.tax_amount | ||
3685 | 228 | added_tax_lines.append((tax_line.base_amount, tax_percentage*-1)) | ||
3686 | 160 | values = { | 229 | values = { |
3687 | 161 | 'name': tax_line.name, | 230 | 'name': tax_line.name, |
3688 | 162 | 'tax_percentage': tax_percentage, | 231 | 'tax_percentage': tax_percentage, |
3689 | @@ -164,54 +233,58 @@ | |||
3690 | 164 | 'base_amount': tax_line.base_amount, | 233 | 'base_amount': tax_line.base_amount, |
3691 | 165 | 'invoice_record_id': invoice_created, | 234 | 'invoice_record_id': invoice_created, |
3692 | 166 | } | 235 | } |
3721 | 167 | if invoice.type=="out_invoice" or invoice.type=="out_refund": | 236 | if source_tax.ledger_key in ('I','J'): |
3722 | 168 | issued_obj = self.pool.get('l10n.es.aeat.mod340.tax_line_issued') | 237 | values['goods_identification'] = invoice_obj.get_inv_good_names(cr, uid, invoice.id, tax_percentage, context) |
3723 | 169 | issued_obj.create(cr, uid, values) | 238 | |
3724 | 170 | if invoice.type=="in_invoice" or invoice.type=="in_refund": | 239 | # Separamos recargos de los impuestos corrientes y agrupamos por impuesto |
3725 | 171 | received_obj = self.pool.get('l10n.es.aeat.mod340.tax_line_received') | 240 | # Esta agrupación se hace porque un mismo impuesto OpenERP lo desdobla en 2 líneas de impuestos |
3726 | 172 | received_obj.create(cr, uid, values) | 241 | # si hay líneas con importe positivo (línea impuesto con base con un signo) |
3727 | 173 | tot_tax_invoice += tax_line.tax_amount | 242 | # y negativo (línea impuesto con base de signo opuesto) |
3728 | 174 | tot_rec += 1 | 243 | if source_tax.operation_key and source_tax.operation_key == '-': |
3729 | 175 | check_tax += tax_line.tax_amount | 244 | if source_tax.id in values_surcharges: |
3730 | 176 | if tax_percentage >= 0: | 245 | for key in ['tax_amount', 'base_amount']: |
3731 | 177 | check_base += tax_line.base_amount | 246 | values_surcharges[source_tax.id][key] += values[key] |
3732 | 178 | 247 | else: | |
3733 | 179 | tot_base += invoice.amount_untaxed | 248 | values_surcharges[source_tax.id] = values |
3734 | 180 | tot_amount += tot_tax_invoice | 249 | else: |
3735 | 181 | tot_tot += invoice.amount_untaxed + tot_tax_invoice | 250 | if source_tax.id in values_taxes: |
3736 | 182 | 251 | for key in ['tax_amount', 'base_amount']: | |
3737 | 183 | if invoice.type == "out_invoice" or invoice.type == "out_refund": | 252 | values_taxes[source_tax.id][key] += values[key] |
3738 | 184 | invoices340.write(cr,uid,invoice_created, | 253 | else: |
3739 | 185 | {'amount_tax':tot_tax_invoice}) | 254 | values_taxes[source_tax.id] = values |
3740 | 186 | if invoice.type == "in_invoice" or invoice.type == "in_refund": | 255 | |
3741 | 187 | invoices340_rec.write(cr,uid,invoice_created, | 256 | #Juntamos los recargos con los registros de impuestos a los que afectan |
3742 | 188 | {'amount_tax':tot_tax_invoice}) | 257 | position_id = invoice.fiscal_position.id |
3743 | 189 | 258 | for surcharge_id, values in values_surcharges.items(): | |
3744 | 190 | sign=1 | 259 | surcharged_tax_id = _get_surcharged_tax(position_id, surcharge_id) |
3745 | 191 | if invoice.type in ( 'out_refund','in_refund' ): | 260 | if not surcharged_tax_id: |
3746 | 192 | sign = -1 | 261 | raise orm.except_orm(_('Error'), |
3747 | 193 | 262 | _("Invoice %s: Unable to determine the surcharged tax because it is not mapped in the partner's fiscal position %s") | |
3748 | 194 | if str(invoice.amount_untaxed*sign) != str(check_base): | 263 | % (invoice.number, surcharge_id.description)) |
3749 | 264 | values_taxes[surcharged_tax_id]['surcharge_percentage'] = values['tax_percentage'] | ||
3750 | 265 | values_taxes[surcharged_tax_id]['surcharge_amount'] = values['tax_amount'] | ||
3751 | 266 | |||
3752 | 267 | ledger2obj[ledger_key].write(cr, uid, invoice_created, | ||
3753 | 268 | {'tax_line_ids': [(0,0, values) for values in values_taxes.values()], | ||
3754 | 269 | 'amount_tax':tot_tax_invoice}, context) | ||
3755 | 270 | |||
3756 | 271 | if abs(float_round(invoice.amount_untaxed, precision)-float_round(check_base, precision)) > 0.01: | ||
3757 | 195 | raise orm.except_orm( "REVIEW INVOICE", | 272 | raise orm.except_orm( "REVIEW INVOICE", |
3759 | 196 | _('Invoice %s, Amount untaxed Lines %.2f do not correspond to AmountUntaxed on Invoice %.2f' ) | 273 | _('Invoice %s, Amount untaxed on Lines %.2f do not correspond to AmountUntaxed on Invoice %.2f' ) |
3760 | 197 | %(invoice.number, check_base, | 274 | %(invoice.number, check_base, |
3762 | 198 | invoice.amount_untaxed*sign) ) | 275 | invoice.amount_untaxed) ) |
3763 | 199 | 276 | ||
3773 | 200 | mod340.write({'total_taxable':tot_base,'total_sharetax':tot_amount, | 277 | code = '340' + mod340.fiscalyear_id.code |
3774 | 201 | 'number_records':tot_rec,'total':tot_tot, | 278 | code += mod340.period_to.date_stop[5:7] + '0001' |
3775 | 202 | 'declaration_number':code}) | 279 | mod340.write({ |
3776 | 203 | 280 | 'declaration_number':code, | |
3777 | 204 | if recalculate: | 281 | 'state' : 'calculated', |
3778 | 205 | mod340.write({ | 282 | 'calculation_date' : time.strftime(DEFAULT_SERVER_DATETIME_FORMAT) |
3779 | 206 | 'state' : 'calculated', | 283 | }) |
3771 | 207 | 'calculation_date' : time.strftime('%Y-%m-%d %H:%M:%S') | ||
3772 | 208 | }) | ||
3780 | 209 | 284 | ||
3781 | 210 | except Exception, ex: | 285 | except Exception, ex: |
3782 | 211 | raise | 286 | raise |
3786 | 212 | 287 | ||
3784 | 213 | |||
3785 | 214 | |||
3787 | 215 | return True | 288 | return True |
3788 | 216 | 289 | ||
3789 | 217 | 290 | ||
3790 | 218 | 291 | ||
3791 | === modified file 'l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py' | |||
3792 | --- l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py 2014-02-16 18:24:48 +0000 | |||
3793 | +++ l10n_es_aeat_mod340/wizard/export_mod340_to_boe.py 2014-06-01 16:57:08 +0000 | |||
3794 | @@ -26,11 +26,19 @@ | |||
3795 | 26 | from openerp.osv import orm | 26 | from openerp.osv import orm |
3796 | 27 | import base64 | 27 | import base64 |
3797 | 28 | import time | 28 | import time |
3798 | 29 | from openerp.tools.misc import DEFAULT_SERVER_DATE_FORMAT | ||
3799 | 29 | 30 | ||
3800 | 30 | 31 | ||
3801 | 31 | class l10n_es_aeat_mod340_export_to_boe(orm.TransientModel): | 32 | class l10n_es_aeat_mod340_export_to_boe(orm.TransientModel): |
3802 | 32 | _inherit = "l10n.es.aeat.report.export_to_boe" | 33 | _inherit = "l10n.es.aeat.report.export_to_boe" |
3803 | 33 | _name = "l10n.es.aeat.mod340.export_to_boe" | 34 | _name = "l10n.es.aeat.mod340.export_to_boe" |
3804 | 35 | |||
3805 | 36 | def _formatDate(self, date_str): | ||
3806 | 37 | #TODO: mover este método a l10n.es.aeat.report.export_to_boe | ||
3807 | 38 | if not date_str: | ||
3808 | 39 | return '0'*8 | ||
3809 | 40 | date = datetime.strptime(date_str,DEFAULT_SERVER_DATE_FORMAT) | ||
3810 | 41 | return datetime.strftime(date, "%Y%m%d") | ||
3811 | 34 | 42 | ||
3812 | 35 | def _get_formatted_declaration_record(self, cr, uid, report, context=None): | 43 | def _get_formatted_declaration_record(self, cr, uid, report, context=None): |
3813 | 36 | """ | 44 | """ |
3814 | @@ -146,10 +154,9 @@ | |||
3815 | 146 | 79-95 Número de identificación fiscal en el país de | 154 | 79-95 Número de identificación fiscal en el país de |
3816 | 147 | residencia. TODO de momento blancos. | 155 | residencia. TODO de momento blancos. |
3817 | 148 | 96-98 Blancos | 156 | 96-98 Blancos |
3822 | 149 | 99 Clave tipo de libro. Constante 'E'. | 157 | 99 Clave tipo de libro. |
3823 | 150 | 100 Clave de operación. Constante ' ' para un solo tipo de | 158 | 100 Clave de operación. Recuperado de los impuestos de la factura. |
3824 | 151 | IVA. Constante 'C' para varios tipos de IVA. TODO Resto | 159 | Constante 'C' para varios tipos de IVA. |
3821 | 152 | de operaciones. Varios tipos impositivos. | ||
3825 | 153 | 101-108 Fecha de expedición | 160 | 101-108 Fecha de expedición |
3826 | 154 | 109-116 Fecha de operación. Se consigna la misma que | 161 | 109-116 Fecha de operación. Se consigna la misma que |
3827 | 155 | expedición. TODO. Fecha del uso del bien. | 162 | expedición. TODO. Fecha del uso del bien. |
3828 | @@ -167,8 +174,8 @@ | |||
3829 | 167 | 246-325 Intervalo de acumulación. Vacio. TODO Intervalo de | 174 | 246-325 Intervalo de acumulación. Vacio. TODO Intervalo de |
3830 | 168 | resumenes de facturas o tickets. | 175 | resumenes de facturas o tickets. |
3831 | 169 | 326-365 Identificación de la factura rectificativa. TODO. | 176 | 326-365 Identificación de la factura rectificativa. TODO. |
3834 | 170 | 366-370 Tipo recargo de equivalencia. TODO. | 177 | 366-370 Tipo recargo de equivalencia. |
3835 | 171 | 371-384 Cuota recargo de equivalencia. TODO. | 178 | 371-384 Cuota recargo de equivalencia. |
3836 | 172 | 385 Situación del Inmueble #TODO | 179 | 385 Situación del Inmueble #TODO |
3837 | 173 | 386-410 Referencia Catastral #TODO | 180 | 386-410 Referencia Catastral #TODO |
3838 | 174 | 411-425 Importe Percibido en Metálico #TODO | 181 | 411-425 Importe Percibido en Metálico #TODO |
3839 | @@ -210,27 +217,19 @@ | |||
3840 | 210 | else: text += 17 * ' ' | 217 | else: text += 17 * ' ' |
3841 | 211 | # Blancos | 218 | # Blancos |
3842 | 212 | text += 3 * ' ' | 219 | text += 3 * ' ' |
3845 | 213 | # Clave tipo de libro. Constante 'E'. | 220 | # Clave tipo de libro. |
3846 | 214 | text += 'E' | 221 | text += self._formatString(invoice_issued.ledger_key, 1) |
3847 | 215 | # Clave de operación | 222 | # Clave de operación |
3848 | 216 | if invoice_issued.invoice_id.origin_invoices_ids: | 223 | if invoice_issued.invoice_id.origin_invoices_ids: |
3866 | 217 | text += 'D' | 224 | clave_operacion = 'D' |
3867 | 218 | elif len(invoice_issued.tax_line_ids) > 1: text += 'C' | 225 | elif len(invoice_issued.tax_line_ids) > 1: clave_operacion = 'C' |
3868 | 219 | elif invoice_issued.invoice_id.is_ticket_summary == 1: text += 'B' | 226 | elif invoice_issued.invoice_id.is_ticket_summary == 1: clave_operacion = 'B' |
3869 | 220 | else: text += ' ' | 227 | else: clave_operacion = self._formatString(invoice_issued.operation_key, 1) |
3870 | 221 | 228 | text += clave_operacion | |
3871 | 222 | text += self._formatNumber( | 229 | |
3872 | 223 | invoice_issued.invoice_id.date_invoice.split('-')[0], 4) | 230 | text += self._formatDate(invoice_issued.invoice_id.date_invoice) |
3873 | 224 | text += self._formatNumber( | 231 | text += self._formatDate(invoice_issued.invoice_id.date_invoice) |
3874 | 225 | invoice_issued.invoice_id.date_invoice.split('-')[1], 2) | 232 | |
3858 | 226 | text += self._formatNumber( | ||
3859 | 227 | invoice_issued.invoice_id.date_invoice.split('-')[2], 2) | ||
3860 | 228 | text += self._formatNumber( | ||
3861 | 229 | invoice_issued.invoice_id.date_invoice.split('-')[0], 4) | ||
3862 | 230 | text += self._formatNumber( | ||
3863 | 231 | invoice_issued.invoice_id.date_invoice.split('-')[1], 2) | ||
3864 | 232 | text += self._formatNumber( | ||
3865 | 233 | invoice_issued.invoice_id.date_invoice.split('-')[2], 2) | ||
3875 | 234 | #Tipo impositivo | 233 | #Tipo impositivo |
3876 | 235 | text += self._formatNumber(tax_line.tax_percentage * 100, 3, 2) | 234 | text += self._formatNumber(tax_line.tax_percentage * 100, 3, 2) |
3877 | 236 | # Base imponible | 235 | # Base imponible |
3878 | @@ -252,7 +251,12 @@ | |||
3879 | 252 | text += self._formatNumber(invoice_issued.invoice_id.number_tickets, 8) | 251 | text += self._formatNumber(invoice_issued.invoice_id.number_tickets, 8) |
3880 | 253 | else: text += self._formatNumber(1, 8) | 252 | else: text += self._formatNumber(1, 8) |
3881 | 254 | # Número de registros (Desglose) | 253 | # Número de registros (Desglose) |
3883 | 255 | text += self._formatNumber(len(invoice_issued.tax_line_ids), 2) | 254 | # Si una rectificativa lleva varios tipos de impuesto, |
3884 | 255 | # se debe declarar con clave D y registros 1 (como si fueran facturas individuales) | ||
3885 | 256 | if clave_operacion == 'D': | ||
3886 | 257 | text += self._formatNumber(1, 2) | ||
3887 | 258 | else: | ||
3888 | 259 | text += self._formatNumber(len(invoice_issued.tax_line_ids), 2) | ||
3889 | 256 | # Intervalo de identificación de la acumulación | 260 | # Intervalo de identificación de la acumulación |
3890 | 257 | if invoice_issued.invoice_id.is_ticket_summary == 1: | 261 | if invoice_issued.invoice_id.is_ticket_summary == 1: |
3891 | 258 | text += self._formatString(invoice_issued.invoice_id.first_ticket, 40) | 262 | text += self._formatString(invoice_issued.invoice_id.first_ticket, 40) |
3892 | @@ -262,9 +266,9 @@ | |||
3893 | 262 | text += self._formatString( ",".join( [x.number for x in \ | 266 | text += self._formatString( ",".join( [x.number for x in \ |
3894 | 263 | invoice_issued.invoice_id.origin_invoices_ids]) , 40 ) | 267 | invoice_issued.invoice_id.origin_invoices_ids]) , 40 ) |
3895 | 264 | # Tipo Recargo de equivalencia | 268 | # Tipo Recargo de equivalencia |
3897 | 265 | text += self._formatNumber(0, 5) | 269 | text += self._formatNumber(tax_line.surcharge_percentage, 3, 2) |
3898 | 266 | # Couta del recargo de equivalencia | 270 | # Couta del recargo de equivalencia |
3900 | 267 | text += ' '+self._formatNumber(0, 11, 2) | 271 | text += self._formatNumber(tax_line.surcharge_amount, 11, 2,True) |
3901 | 268 | #Situación del Inmueble #TODO | 272 | #Situación del Inmueble #TODO |
3902 | 269 | text += '0' | 273 | text += '0' |
3903 | 270 | #Referencia Catastral #TODO | 274 | #Referencia Catastral #TODO |
3904 | @@ -305,8 +309,9 @@ | |||
3905 | 305 | 78 Clave de identificación en el país de residencia | 309 | 78 Clave de identificación en el país de residencia |
3906 | 306 | 79-95 Número de identificación fiscal en el país de residencia. TODO de momento blancos. | 310 | 79-95 Número de identificación fiscal en el país de residencia. TODO de momento blancos. |
3907 | 307 | 96-98 Blancos | 311 | 96-98 Blancos |
3910 | 308 | 99 Clave tipo de libro. Constante 'R'. | 312 | 99 Clave tipo de libro. |
3911 | 309 | 100 Clave de operación. Constante ' ' para un solo tipo de IVA. Constante 'C' para varios tipos de IVA. TODO Resto de operaciones. Varios tipos impositivos. | 313 | 100 Clave de operación. Constante ' ' para un solo tipo de IVA. Recuperado de los impuestos de la factura. |
3912 | 314 | Constante 'C' para varios tipos de IVA. | ||
3913 | 310 | 101-108 Fecha de expedición | 315 | 101-108 Fecha de expedición |
3914 | 311 | 109-116 Fecha de operación. Se consigna la misma que expedición. TODO. Fecha del uso del bien. | 316 | 109-116 Fecha de operación. Se consigna la misma que expedición. TODO. Fecha del uso del bien. |
3915 | 312 | 117-121 Tipo impositivo | 317 | 117-121 Tipo impositivo |
3916 | @@ -354,19 +359,18 @@ | |||
3917 | 354 | else: text += 17*' ' | 359 | else: text += 17*' ' |
3918 | 355 | # Blancos | 360 | # Blancos |
3919 | 356 | text += 3*' ' | 361 | text += 3*' ' |
3922 | 357 | # Clave tipo de libro. Constante 'R'. | 362 | # Clave tipo de libro. |
3923 | 358 | text += 'R' | 363 | ledger_key = invoice_received.ledger_key |
3924 | 364 | if ledger_key in ('I','J'): | ||
3925 | 365 | ledger_key = 'R' | ||
3926 | 366 | text += self._formatString(ledger_key, 1) | ||
3927 | 359 | # Clave de operación | 367 | # Clave de operación |
3930 | 360 | if len(invoice_received.tax_line_ids) > 1: text += 'C' | 368 | if len(invoice_received.tax_line_ids) > 1 and invoice_received.operation_key not in ('P','I'): text += 'C' |
3931 | 361 | else: text += ' ' | 369 | else: text += self._formatString(invoice_received.operation_key, 1) |
3932 | 362 | # Fecha de expedición | 370 | # Fecha de expedición |
3936 | 363 | text += self._formatNumber(invoice_received.invoice_id.date_invoice.split('-')[0], 4) | 371 | text += self._formatDate(invoice_received.invoice_id.date_invoice) |
3934 | 364 | text += self._formatNumber(invoice_received.invoice_id.date_invoice.split('-')[1], 2) | ||
3935 | 365 | text += self._formatNumber(invoice_received.invoice_id.date_invoice.split('-')[2], 2) | ||
3937 | 366 | # Fecha de operación | 372 | # Fecha de operación |
3941 | 367 | text += self._formatNumber(invoice_received.invoice_id.date_invoice.split('-')[0], 4) | 373 | text += self._formatDate(invoice_received.invoice_id.date_invoice) |
3939 | 368 | text += self._formatNumber(invoice_received.invoice_id.date_invoice.split('-')[1], 2) | ||
3940 | 369 | text += self._formatNumber(invoice_received.invoice_id.date_invoice.split('-')[2], 2) | ||
3942 | 370 | #Tipo impositivo | 374 | #Tipo impositivo |
3943 | 371 | text += self._formatNumber(tax_line.tax_percentage * 100, 3, 2) | 375 | text += self._formatNumber(tax_line.tax_percentage * 100, 3, 2) |
3944 | 372 | # Base imponible | 376 | # Base imponible |
3945 | @@ -406,6 +410,127 @@ | |||
3946 | 406 | 410 | ||
3947 | 407 | assert len(text) == 502*len(invoice_received.tax_line_ids), _("The type 2 received record must be 500 characters long for each Vat registry") | 411 | assert len(text) == 502*len(invoice_received.tax_line_ids), _("The type 2 received record must be 500 characters long for each Vat registry") |
3948 | 408 | return text | 412 | return text |
3949 | 413 | |||
3950 | 414 | |||
3951 | 415 | def _get_formatted_invoice_investment(self, cr, uid, report, invoice_investment): | ||
3952 | 416 | """ | ||
3953 | 417 | Returns a type 2, investment goods invoice, formated record | ||
3954 | 418 | |||
3955 | 419 | Format of the record: | ||
3956 | 420 | Tipo de Registro 2 – Registro de facturas de bienes de inversión | ||
3957 | 421 | Posiciones Descripción | ||
3958 | 422 | 1 Tipo de Registro | ||
3959 | 423 | 2-4 Modelo Declaración | ||
3960 | 424 | 5-8 Ejercicio | ||
3961 | 425 | 9-17 NIF del declarante | ||
3962 | 426 | 18-26 NIF del declarado | ||
3963 | 427 | 27-35 NIF del representante legal | ||
3964 | 428 | 36-75 Apellidos y nombre, razón social o | ||
3965 | 429 | denominación del declarado | ||
3966 | 430 | 76-77 Código país | ||
3967 | 431 | 78 Clave de identificación en el país de residencia | ||
3968 | 432 | 79-95 Número de identificación fiscal en el país de | ||
3969 | 433 | residencia. TODO de momento blancos. | ||
3970 | 434 | 96-98 Blancos | ||
3971 | 435 | 99 Clave tipo de libro. 'I' o 'J' (IGIC), según impuesto. | ||
3972 | 436 | 100 Clave de operación. Recuperado de los impuestos de la factura. | ||
3973 | 437 | Constante 'C' para varios tipos de IVA. | ||
3974 | 438 | 101-108 Fecha de expedición | ||
3975 | 439 | 109-116 Fecha de operación. Se consigna la misma que | ||
3976 | 440 | expedición. TODO. Fecha del uso del bien. | ||
3977 | 441 | 117-121 Tipo impositivo | ||
3978 | 442 | 122-135 Base imponible | ||
3979 | 443 | 136-149 Cuota del impuesto | ||
3980 | 444 | 150-163 Importe total de la factura | ||
3981 | 445 | 164-177 Base imponible a coste. TODO de momento 0. | ||
3982 | 446 | 178-217 Identificación de la factura | ||
3983 | 447 | 218-235 Número de registro | ||
3984 | 448 | 236-238 Prorrata anual definitiva | ||
3985 | 449 | 239-252 Regularización anual de la deducción TODO | ||
3986 | 450 | 253-292 Identificación de la entrega | ||
3987 | 451 | 293-306 Regularización anual de la deducción efectuada TODO | ||
3988 | 452 | 307-314 Fecha de inicio de la utilización | ||
3989 | 453 | 315-331 Identificación del bien | ||
3990 | 454 | 332-500 BLANCO | ||
3991 | 455 | |||
3992 | 456 | """ | ||
3993 | 457 | text = '' | ||
3994 | 458 | for tax_line in invoice_investment.tax_line_ids: | ||
3995 | 459 | # Tipo de Registro | ||
3996 | 460 | text += '2' | ||
3997 | 461 | # Modelo Declaración | ||
3998 | 462 | text += '340' | ||
3999 | 463 | # Ejercicio | ||
4000 | 464 | text += self._formatString(report.fiscalyear_id.code, 4) | ||
4001 | 465 | # NIF del declarante | ||
4002 | 466 | text += self._formatString(report.company_vat, 9) | ||
4003 | 467 | # NIF del declarado | ||
4004 | 468 | if invoice_investment.partner_country_code == 'ES': | ||
4005 | 469 | text += self._formatString(invoice_investment.partner_vat, 9) | ||
4006 | 470 | else: text += self._formatString(' ', 9) | ||
4007 | 471 | # NIF del representante legal | ||
4008 | 472 | text += self._formatString(invoice_investment.representative_vat, 9) | ||
4009 | 473 | # Apellidos y nombre, razón social o denominación del declarado | ||
4010 | 474 | text += self._formatString(invoice_investment.partner_id.name, 40) | ||
4011 | 475 | # Código país | ||
4012 | 476 | text += self._formatString(invoice_investment.partner_country_code, 2) | ||
4013 | 477 | # Clave de identificación en el país de residencia | ||
4014 | 478 | text += self._formatNumber(invoice_investment.partner_id.vat_type, 1) | ||
4015 | 479 | # Número de identificación fiscal en el país de residencia. | ||
4016 | 480 | if invoice_investment.partner_country_code != 'ES': | ||
4017 | 481 | text += self._formatString(invoice_investment.partner_country_code, 2) | ||
4018 | 482 | text += self._formatString(invoice_investment.partner_vat, 15) | ||
4019 | 483 | else: text += 17 * ' ' | ||
4020 | 484 | # Blancos | ||
4021 | 485 | text += 3 * ' ' | ||
4022 | 486 | # Clave tipo de libro. 'I' o 'J' (IGIC), según impuesto. | ||
4023 | 487 | text += self._formatString(invoice_investment.ledger_key, 1) | ||
4024 | 488 | # Clave de operación | ||
4025 | 489 | if len(invoice_investment.tax_line_ids) > 1 and invoice_investment.operation_key not in ('P','I'): text += 'C' | ||
4026 | 490 | else: text += self._formatString(invoice_investment.operation_key, 1) | ||
4027 | 491 | |||
4028 | 492 | text += self._formatDate(invoice_investment.invoice_id.date_invoice) | ||
4029 | 493 | text += self._formatDate(invoice_investment.invoice_id.date_invoice) | ||
4030 | 494 | #Tipo impositivo | ||
4031 | 495 | text += self._formatNumber(tax_line.tax_percentage * 100, 3, 2) | ||
4032 | 496 | # Base imponible | ||
4033 | 497 | text += self._formatNumber(tax_line.base_amount, 11, 2, True) | ||
4034 | 498 | # Cuota del impuesto | ||
4035 | 499 | text += self._formatNumber(tax_line.tax_amount, 11, 2, True) | ||
4036 | 500 | # Importe total de la factura | ||
4037 | 501 | text += self._formatNumber(tax_line.tax_amount+ | ||
4038 | 502 | tax_line.base_amount, 11, 2, True) | ||
4039 | 503 | # Base imponible a coste. | ||
4040 | 504 | text += ' '+self._formatNumber(0, 11, 2) | ||
4041 | 505 | # Identificación de la factura | ||
4042 | 506 | text += self._formatString(invoice_investment.invoice_id.number, 40) | ||
4043 | 507 | # Número de registro | ||
4044 | 508 | sequence_obj = self.pool.get('ir.sequence') | ||
4045 | 509 | text += self._formatString(sequence_obj.get(cr, uid, 'mod340'), 18) | ||
4046 | 510 | #Prorrata anual definitiva | ||
4047 | 511 | text += self._formatNumber(invoice_investment.prorata, 3, 0) | ||
4048 | 512 | #Regularización anual de la deducción TODO | ||
4049 | 513 | text += ' ' + '0'*13 | ||
4050 | 514 | #Identificación de la entrega | ||
4051 | 515 | # Se consignarán la identificación de la factura que | ||
4052 | 516 | # corresponde en el LIBRO REGISTRO DE FACTURAS | ||
4053 | 517 | # EXPEDIDAS que recoge la entrega. | ||
4054 | 518 | # Esto qué es? la referencia del proveedor?? | ||
4055 | 519 | text += self._formatString(invoice_investment.invoice_id.reference, 40) | ||
4056 | 520 | #Regularización de la deducción efectuada (transmisiones) TODO | ||
4057 | 521 | text += ' ' + '0'*13 | ||
4058 | 522 | #Fecha de inicio de la utilización | ||
4059 | 523 | text += self._formatDate(invoice_investment.use_date) | ||
4060 | 524 | #Identificación del bien | ||
4061 | 525 | text += self._formatString(tax_line.goods_identification, 17) | ||
4062 | 526 | #Blancos | ||
4063 | 527 | text += ' '*169 | ||
4064 | 528 | text += '\r\n' | ||
4065 | 529 | assert len(text) == 502 * len(invoice_investment.tax_line_ids), _("The type 2 issued record must be 500 characters long for each Vat registry") | ||
4066 | 530 | return text | ||
4067 | 531 | |||
4068 | 532 | |||
4069 | 533 | |||
4070 | 409 | 534 | ||
4071 | 410 | def _get_formatted_other_records(self, cr, uid, report,context=None): | 535 | def _get_formatted_other_records(self, cr, uid, report,context=None): |
4072 | 411 | file_contents = '' | 536 | file_contents = '' |
4073 | @@ -413,10 +538,19 @@ | |||
4074 | 413 | for invoice_issued in report.issued: | 538 | for invoice_issued in report.issued: |
4075 | 414 | file_contents += self._get_formatted_invoice_issued(cr,uid,report, | 539 | file_contents += self._get_formatted_invoice_issued(cr,uid,report, |
4076 | 415 | invoice_issued) | 540 | invoice_issued) |
4078 | 416 | 541 | ||
4079 | 417 | for invoice_received in report.received: | 542 | for invoice_received in report.received: |
4080 | 418 | file_contents += self._get_formatted_invoice_received(cr,uid, | 543 | file_contents += self._get_formatted_invoice_received(cr,uid, |
4081 | 419 | report, invoice_received) | 544 | report, invoice_received) |
4082 | 545 | |||
4083 | 546 | if report.investment_goods_prorating: | ||
4084 | 547 | for invoice_investment in report.investment: | ||
4085 | 548 | file_contents += self._get_formatted_invoice_investment(cr,uid, | ||
4086 | 549 | report, invoice_investment) | ||
4087 | 550 | else: | ||
4088 | 551 | for invoice_investment in report.investment: | ||
4089 | 552 | file_contents += self._get_formatted_invoice_received(cr,uid, | ||
4090 | 553 | report, invoice_investment) | ||
4091 | 420 | 554 | ||
4092 | 421 | return file_contents | 555 | return file_contents |
4093 | 422 | 556 |
El proyecto está hospedado ahora en https:/ /github. com/OCA/ l10n-spain.
Mueve por favor tu propuesta allí. Esta guía puede ayudarte: https:/ /github. com/OCA/ maintainers- tools/wiki/ How-to- move-a- Merge-Proposal- to-GitHub
De todas formas, tal como hemos hablado en la lista, la propuesta requiere reelaboración que pasaremos a tratar en el code sprint.
Un saludo.