odoo-addon-l10n-es-verifactu-oca 18.0.1.2.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. odoo/addons/l10n_es_verifactu_oca/README.rst +195 -0
  2. odoo/addons/l10n_es_verifactu_oca/__init__.py +3 -0
  3. odoo/addons/l10n_es_verifactu_oca/__manifest__.py +50 -0
  4. odoo/addons/l10n_es_verifactu_oca/data/ir_config_parameter.xml +9 -0
  5. odoo/addons/l10n_es_verifactu_oca/data/ir_cron.xml +13 -0
  6. odoo/addons/l10n_es_verifactu_oca/data/l10n.es.aeat.map.tax.line.tax.csv +50 -0
  7. odoo/addons/l10n_es_verifactu_oca/data/mail_activity_data.xml +11 -0
  8. odoo/addons/l10n_es_verifactu_oca/data/neutralize.sql +2 -0
  9. odoo/addons/l10n_es_verifactu_oca/data/template/account.fiscal.position-es_common.csv +27 -0
  10. odoo/addons/l10n_es_verifactu_oca/data/verifactu.map.csv +2 -0
  11. odoo/addons/l10n_es_verifactu_oca/data/verifactu.map.line.csv +8 -0
  12. odoo/addons/l10n_es_verifactu_oca/data/verifactu_registration_key_data.xml +205 -0
  13. odoo/addons/l10n_es_verifactu_oca/data/verifactu_tax_agency_data.xml +19 -0
  14. odoo/addons/l10n_es_verifactu_oca/hooks.py +43 -0
  15. odoo/addons/l10n_es_verifactu_oca/i18n/es.po +1682 -0
  16. odoo/addons/l10n_es_verifactu_oca/i18n/l10n_es_verifactu_oca.pot +1640 -0
  17. odoo/addons/l10n_es_verifactu_oca/migrations/18.0.1.1.0/pre-migration.py +25 -0
  18. odoo/addons/l10n_es_verifactu_oca/models/__init__.py +15 -0
  19. odoo/addons/l10n_es_verifactu_oca/models/account_chart_template.py +17 -0
  20. odoo/addons/l10n_es_verifactu_oca/models/account_fiscal_position.py +34 -0
  21. odoo/addons/l10n_es_verifactu_oca/models/account_journal.py +64 -0
  22. odoo/addons/l10n_es_verifactu_oca/models/account_move.py +631 -0
  23. odoo/addons/l10n_es_verifactu_oca/models/aeat_tax_agency.py +30 -0
  24. odoo/addons/l10n_es_verifactu_oca/models/res_company.py +48 -0
  25. odoo/addons/l10n_es_verifactu_oca/models/res_partner.py +26 -0
  26. odoo/addons/l10n_es_verifactu_oca/models/verifactu_chaining.py +37 -0
  27. odoo/addons/l10n_es_verifactu_oca/models/verifactu_developer.py +16 -0
  28. odoo/addons/l10n_es_verifactu_oca/models/verifactu_invoice_entry.py +398 -0
  29. odoo/addons/l10n_es_verifactu_oca/models/verifactu_invoice_entry_response.py +116 -0
  30. odoo/addons/l10n_es_verifactu_oca/models/verifactu_invoice_entry_response_line.py +47 -0
  31. odoo/addons/l10n_es_verifactu_oca/models/verifactu_map.py +68 -0
  32. odoo/addons/l10n_es_verifactu_oca/models/verifactu_mixin.py +485 -0
  33. odoo/addons/l10n_es_verifactu_oca/models/verifactu_registration_key.py +26 -0
  34. odoo/addons/l10n_es_verifactu_oca/readme/CONFIGURE.md +27 -0
  35. odoo/addons/l10n_es_verifactu_oca/readme/CONTRIBUTORS.md +18 -0
  36. odoo/addons/l10n_es_verifactu_oca/readme/DESCRIPTION.md +1 -0
  37. odoo/addons/l10n_es_verifactu_oca/readme/INSTALL.md +6 -0
  38. odoo/addons/l10n_es_verifactu_oca/readme/ROADMAP.md +30 -0
  39. odoo/addons/l10n_es_verifactu_oca/readme/USAGE.md +3 -0
  40. odoo/addons/l10n_es_verifactu_oca/security/ir.model.access.csv +23 -0
  41. odoo/addons/l10n_es_verifactu_oca/security/verifactu_security.xml +6 -0
  42. odoo/addons/l10n_es_verifactu_oca/static/description/icon.png +0 -0
  43. odoo/addons/l10n_es_verifactu_oca/static/description/index.html +551 -0
  44. odoo/addons/l10n_es_verifactu_oca/tests/__init__.py +2 -0
  45. odoo/addons/l10n_es_verifactu_oca/tests/common.py +281 -0
  46. odoo/addons/l10n_es_verifactu_oca/tests/json/verifactu_mocked_response_accepted_with_errors.json +35 -0
  47. odoo/addons/l10n_es_verifactu_oca/tests/json/verifactu_mocked_response_cancel.json +35 -0
  48. odoo/addons/l10n_es_verifactu_oca/tests/json/verifactu_mocked_response_cancel_incorrect.json +37 -0
  49. odoo/addons/l10n_es_verifactu_oca/tests/json/verifactu_mocked_response_cancel_with_errors.json +35 -0
  50. odoo/addons/l10n_es_verifactu_oca/tests/json/verifactu_mocked_response_correct.json +35 -0
  51. odoo/addons/l10n_es_verifactu_oca/tests/json/verifactu_mocked_response_duplicated.json +43 -0
  52. odoo/addons/l10n_es_verifactu_oca/tests/json/verifactu_mocked_response_incorrect.json +37 -0
  53. odoo/addons/l10n_es_verifactu_oca/tests/json/verifactu_out_invoice_s_iva10b_s_iva21s_dict.json +59 -0
  54. odoo/addons/l10n_es_verifactu_oca/tests/json/verifactu_out_invoice_s_iva21s_s_req52_dict.json +58 -0
  55. odoo/addons/l10n_es_verifactu_oca/tests/json/verifactu_out_refund_s_iva10b_s_iva10b_s_iva21s_dict.json +66 -0
  56. odoo/addons/l10n_es_verifactu_oca/tests/test_10n_es_verifactu.py +506 -0
  57. odoo/addons/l10n_es_verifactu_oca/tests/test_verifactu_invoice.py +348 -0
  58. odoo/addons/l10n_es_verifactu_oca/views/account_fiscal_position_view.xml +29 -0
  59. odoo/addons/l10n_es_verifactu_oca/views/account_journal_view.xml +22 -0
  60. odoo/addons/l10n_es_verifactu_oca/views/account_move_view.xml +237 -0
  61. odoo/addons/l10n_es_verifactu_oca/views/aeat_tax_agency_view.xml +31 -0
  62. odoo/addons/l10n_es_verifactu_oca/views/report_invoice.xml +53 -0
  63. odoo/addons/l10n_es_verifactu_oca/views/res_company_view.xml +50 -0
  64. odoo/addons/l10n_es_verifactu_oca/views/verifactu_chaining_view.xml +45 -0
  65. odoo/addons/l10n_es_verifactu_oca/views/verifactu_developer_view.xml +46 -0
  66. odoo/addons/l10n_es_verifactu_oca/views/verifactu_invoice_entry_response_view.xml +134 -0
  67. odoo/addons/l10n_es_verifactu_oca/views/verifactu_invoice_entry_view.xml +127 -0
  68. odoo/addons/l10n_es_verifactu_oca/views/verifactu_map_lines_view.xml +16 -0
  69. odoo/addons/l10n_es_verifactu_oca/views/verifactu_map_view.xml +54 -0
  70. odoo/addons/l10n_es_verifactu_oca/views/verifactu_registration_keys_view.xml +43 -0
  71. odoo/addons/l10n_es_verifactu_oca/wizards/__init__.py +2 -0
  72. odoo/addons/l10n_es_verifactu_oca/wizards/account_move_reversal.py +16 -0
  73. odoo/addons/l10n_es_verifactu_oca/wizards/verifactu_cancel_invoice_wizard.py +24 -0
  74. odoo/addons/l10n_es_verifactu_oca/wizards/verifactu_cancel_invoice_wizard_view.xml +35 -0
  75. odoo_addon_l10n_es_verifactu_oca-18.0.1.2.1.dist-info/METADATA +213 -0
  76. odoo_addon_l10n_es_verifactu_oca-18.0.1.2.1.dist-info/RECORD +78 -0
  77. odoo_addon_l10n_es_verifactu_oca-18.0.1.2.1.dist-info/WHEEL +5 -0
  78. odoo_addon_l10n_es_verifactu_oca-18.0.1.2.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,30 @@
1
+ > - Refactorización SII-VERI\*FACTU en l10nes_aeat de los métodos que
2
+ > sean comunes.
3
+ > - Envío separado de la confirmación de la factura
4
+ > (cron.trigger/queque.job)
5
+ > - Control de errores del sistema, generar avisos. (caída de aeat,
6
+ > errores de conexión, etc.)
7
+ > - Posibilidad de consultar el estado de las facturas enviadas.
8
+ > - Operaciones exentas y causas de exención.
9
+ > - Crear un selection con todos los valores posibles de codigos de
10
+ > error, para poder guardarlo y agrupar las facturas por ese código.
11
+ > - Contemplar el tiempo de espera entre envíos de registros cuando AEAT
12
+ > devuelve un tiempo superior a 60 segundos.
13
+ > - Facturación de terceros o de destinatarios (autofacturación), con los
14
+ > datos de los mismos.
15
+
16
+ CASOS NO CUBIERTOS: 1 - Modificación de facturas enviadas (AEAT
17
+ recomienda generar rectificativa). Según AEAT: Si los errores detectados
18
+ tras la emisión NO están contemplados en el ROF, pero afectan a campos
19
+ del registro de facturación (RF) generado al emitir la factura (que,
20
+ digamos, “no se ven” en la factura impresa, es decir, son campos
21
+ “internos”, como ciertas codificaciones tributarias), se debe corregir
22
+ la factura original (esos datos “internos” de la misma) y se debe
23
+ generar un RF de alta de subsanación de esa factura donde conste ya la
24
+ nueva información que proceda. Estos casos deberían ser MUY POCO
25
+ FRECUENTES. 2 - Anulación de facturas enviadas (AEAT recomienda generar
26
+ rectificativa). Según AEAT: "Si se considera que "toda la factura" en sí
27
+ misma está mal o no debería haberse emitido, siempre que para
28
+ solucionarlo no deba emplearse algún procedimiento (de rectificativa u
29
+ otro) previsto en el ROF, se podrá "anular" generando para ello un RF de
30
+ anulación. Estos casos deberían ser MUY POCO FRECUENTES."
@@ -0,0 +1,3 @@
1
+ Cuando se valida una factura, automáticamente genera el registro de
2
+ envío para verifactu. Cada minuto se enviarán todos aquellos registros
3
+ pendientes de enviar mediante un cron.
@@ -0,0 +1,23 @@
1
+ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
2
+ access_model_verifactu_map_admin,verifactu.map admin,model_verifactu_map,base.group_system,1,1,1,1
3
+ access_model_verifactu_map_aeat,verifactu.map aeat,model_verifactu_map,l10n_es_aeat.group_account_aeat,1,0,0,0
4
+ access_model_verifactu_map_lines_admin,verifactu.map.line admin,model_verifactu_map_line,base.group_system,1,1,1,1
5
+ access_model_verifactu_map_lines_aeat,verifactu.map.line aeat,model_verifactu_map_line,l10n_es_aeat.group_account_aeat,1,0,0,0
6
+ access_model_verifactu_registration_keys_admin,verifactu.registration.key admin,model_verifactu_registration_key,base.group_system,1,1,1,1
7
+ access_model_verifactu_registration_keys_aeat,verifactu.registration.key aeat,model_verifactu_registration_key,l10n_es_aeat.group_account_aeat,1,0,0,0
8
+ access_model_verifactu_registration_keys_aeat_account,verifactu.registration.key aeat,model_verifactu_registration_key,account.group_account_invoice,1,0,0,0
9
+ access_model_verifactu_developer_aeat,verifactu.developer aeat,model_verifactu_developer,l10n_es_aeat.group_account_aeat,1,1,1,1
10
+ access_model_verifactu_developer_aeat_account,verifactu.developer aeat,model_verifactu_developer,account.group_account_invoice,1,0,0,0
11
+ access_model_verifactu_invoice_admin,verifactu.invoice.entry admin,model_verifactu_invoice_entry,base.group_system,1,1,1,1
12
+ access_model_verifactu_invoice_aeat,verifactu.invoice.entry aeat,model_verifactu_invoice_entry,l10n_es_aeat.group_account_aeat,1,1,1,0
13
+ access_model_verifactu_invoice_aeat_account,verifactu.invoice.entry aeat,model_verifactu_invoice_entry,account.group_account_invoice,1,1,1,0
14
+ access_model_verifactu_invoice_entry_response_invoice_user,verifactu.invoice.entry.response invoice,model_verifactu_invoice_entry_response,account.group_account_invoice,1,0,0,0
15
+ access_model_verifactu_invoice_entry_response_system,verifactu.invoice_entry.response system,model_verifactu_invoice_entry_response,base.group_system,1,1,1,1
16
+ access_model_verifactu_invoice_entry_response_line_invoice_user,verifactu.invoice_entry.response.line invoice user,model_verifactu_invoice_entry_response_line,account.group_account_invoice,1,0,0,0
17
+ access_model_verifactu_invoice_entry_response_line_system,verifactu.invoice_entry.response.line system,model_verifactu_invoice_entry_response_line,base.group_system,1,1,1,1
18
+ access_model_verifactu_invoice_entry_response_line_responsible,verifactu.invoice_entry.response verifactu,model_verifactu_invoice_entry_response,group_verifactu_responsible,1,1,0,0
19
+ access_model_verifactu_chaining_admin,verifactu.chaining.admin,model_verifactu_chaining,base.group_system,1,1,1,1
20
+ access_model_verifactu_chaining_aeat,verifactu.chaining.aeat,model_verifactu_chaining,l10n_es_aeat.group_account_aeat,1,0,0,0
21
+ access_model_verifactu_chaining_responsible,verifactu.chaining.responsible,model_verifactu_chaining,group_verifactu_responsible,1,1,0,0
22
+ access_model_verifactu_chaining_user,verifactu.chaining.user,model_verifactu_chaining,account.group_account_invoice,1,0,0,0
23
+ access_model_verifactu_cancel_invoice_wizard_user,verifactu.cancel_invoice_wizard.user,model_verifactu_cancel_invoice_wizard,account.group_account_invoice,1,1,1,0
@@ -0,0 +1,6 @@
1
+ <odoo>
2
+ <record id="group_verifactu_responsible" model="res.groups">
3
+ <field name="name">VERI*FACTU Responsible</field>
4
+ <field name="category_id" ref="base.module_category_accounting" />
5
+ </record>
6
+ </odoo>
@@ -0,0 +1,551 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6
+ <title>README.rst</title>
7
+ <style type="text/css">
8
+
9
+ /*
10
+ :Author: David Goodger (goodger@python.org)
11
+ :Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
12
+ :Copyright: This stylesheet has been placed in the public domain.
13
+
14
+ Default cascading style sheet for the HTML output of Docutils.
15
+ Despite the name, some widely supported CSS2 features are used.
16
+
17
+ See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
18
+ customize this style sheet.
19
+ */
20
+
21
+ /* used to remove borders from tables and images */
22
+ .borderless, table.borderless td, table.borderless th {
23
+ border: 0 }
24
+
25
+ table.borderless td, table.borderless th {
26
+ /* Override padding for "table.docutils td" with "! important".
27
+ The right padding separates the table cells. */
28
+ padding: 0 0.5em 0 0 ! important }
29
+
30
+ .first {
31
+ /* Override more specific margin styles with "! important". */
32
+ margin-top: 0 ! important }
33
+
34
+ .last, .with-subtitle {
35
+ margin-bottom: 0 ! important }
36
+
37
+ .hidden {
38
+ display: none }
39
+
40
+ .subscript {
41
+ vertical-align: sub;
42
+ font-size: smaller }
43
+
44
+ .superscript {
45
+ vertical-align: super;
46
+ font-size: smaller }
47
+
48
+ a.toc-backref {
49
+ text-decoration: none ;
50
+ color: black }
51
+
52
+ blockquote.epigraph {
53
+ margin: 2em 5em ; }
54
+
55
+ dl.docutils dd {
56
+ margin-bottom: 0.5em }
57
+
58
+ object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
59
+ overflow: hidden;
60
+ }
61
+
62
+ /* Uncomment (and remove this text!) to get bold-faced definition list terms
63
+ dl.docutils dt {
64
+ font-weight: bold }
65
+ */
66
+
67
+ div.abstract {
68
+ margin: 2em 5em }
69
+
70
+ div.abstract p.topic-title {
71
+ font-weight: bold ;
72
+ text-align: center }
73
+
74
+ div.admonition, div.attention, div.caution, div.danger, div.error,
75
+ div.hint, div.important, div.note, div.tip, div.warning {
76
+ margin: 2em ;
77
+ border: medium outset ;
78
+ padding: 1em }
79
+
80
+ div.admonition p.admonition-title, div.hint p.admonition-title,
81
+ div.important p.admonition-title, div.note p.admonition-title,
82
+ div.tip p.admonition-title {
83
+ font-weight: bold ;
84
+ font-family: sans-serif }
85
+
86
+ div.attention p.admonition-title, div.caution p.admonition-title,
87
+ div.danger p.admonition-title, div.error p.admonition-title,
88
+ div.warning p.admonition-title, .code .error {
89
+ color: red ;
90
+ font-weight: bold ;
91
+ font-family: sans-serif }
92
+
93
+ /* Uncomment (and remove this text!) to get reduced vertical space in
94
+ compound paragraphs.
95
+ div.compound .compound-first, div.compound .compound-middle {
96
+ margin-bottom: 0.5em }
97
+
98
+ div.compound .compound-last, div.compound .compound-middle {
99
+ margin-top: 0.5em }
100
+ */
101
+
102
+ div.dedication {
103
+ margin: 2em 5em ;
104
+ text-align: center ;
105
+ font-style: italic }
106
+
107
+ div.dedication p.topic-title {
108
+ font-weight: bold ;
109
+ font-style: normal }
110
+
111
+ div.figure {
112
+ margin-left: 2em ;
113
+ margin-right: 2em }
114
+
115
+ div.footer, div.header {
116
+ clear: both;
117
+ font-size: smaller }
118
+
119
+ div.line-block {
120
+ display: block ;
121
+ margin-top: 1em ;
122
+ margin-bottom: 1em }
123
+
124
+ div.line-block div.line-block {
125
+ margin-top: 0 ;
126
+ margin-bottom: 0 ;
127
+ margin-left: 1.5em }
128
+
129
+ div.sidebar {
130
+ margin: 0 0 0.5em 1em ;
131
+ border: medium outset ;
132
+ padding: 1em ;
133
+ background-color: #ffffee ;
134
+ width: 40% ;
135
+ float: right ;
136
+ clear: right }
137
+
138
+ div.sidebar p.rubric {
139
+ font-family: sans-serif ;
140
+ font-size: medium }
141
+
142
+ div.system-messages {
143
+ margin: 5em }
144
+
145
+ div.system-messages h1 {
146
+ color: red }
147
+
148
+ div.system-message {
149
+ border: medium outset ;
150
+ padding: 1em }
151
+
152
+ div.system-message p.system-message-title {
153
+ color: red ;
154
+ font-weight: bold }
155
+
156
+ div.topic {
157
+ margin: 2em }
158
+
159
+ h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
160
+ h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
161
+ margin-top: 0.4em }
162
+
163
+ h1.title {
164
+ text-align: center }
165
+
166
+ h2.subtitle {
167
+ text-align: center }
168
+
169
+ hr.docutils {
170
+ width: 75% }
171
+
172
+ img.align-left, .figure.align-left, object.align-left, table.align-left {
173
+ clear: left ;
174
+ float: left ;
175
+ margin-right: 1em }
176
+
177
+ img.align-right, .figure.align-right, object.align-right, table.align-right {
178
+ clear: right ;
179
+ float: right ;
180
+ margin-left: 1em }
181
+
182
+ img.align-center, .figure.align-center, object.align-center {
183
+ display: block;
184
+ margin-left: auto;
185
+ margin-right: auto;
186
+ }
187
+
188
+ table.align-center {
189
+ margin-left: auto;
190
+ margin-right: auto;
191
+ }
192
+
193
+ .align-left {
194
+ text-align: left }
195
+
196
+ .align-center {
197
+ clear: both ;
198
+ text-align: center }
199
+
200
+ .align-right {
201
+ text-align: right }
202
+
203
+ /* reset inner alignment in figures */
204
+ div.align-right {
205
+ text-align: inherit }
206
+
207
+ /* div.align-center * { */
208
+ /* text-align: left } */
209
+
210
+ .align-top {
211
+ vertical-align: top }
212
+
213
+ .align-middle {
214
+ vertical-align: middle }
215
+
216
+ .align-bottom {
217
+ vertical-align: bottom }
218
+
219
+ ol.simple, ul.simple {
220
+ margin-bottom: 1em }
221
+
222
+ ol.arabic {
223
+ list-style: decimal }
224
+
225
+ ol.loweralpha {
226
+ list-style: lower-alpha }
227
+
228
+ ol.upperalpha {
229
+ list-style: upper-alpha }
230
+
231
+ ol.lowerroman {
232
+ list-style: lower-roman }
233
+
234
+ ol.upperroman {
235
+ list-style: upper-roman }
236
+
237
+ p.attribution {
238
+ text-align: right ;
239
+ margin-left: 50% }
240
+
241
+ p.caption {
242
+ font-style: italic }
243
+
244
+ p.credits {
245
+ font-style: italic ;
246
+ font-size: smaller }
247
+
248
+ p.label {
249
+ white-space: nowrap }
250
+
251
+ p.rubric {
252
+ font-weight: bold ;
253
+ font-size: larger ;
254
+ color: maroon ;
255
+ text-align: center }
256
+
257
+ p.sidebar-title {
258
+ font-family: sans-serif ;
259
+ font-weight: bold ;
260
+ font-size: larger }
261
+
262
+ p.sidebar-subtitle {
263
+ font-family: sans-serif ;
264
+ font-weight: bold }
265
+
266
+ p.topic-title {
267
+ font-weight: bold }
268
+
269
+ pre.address {
270
+ margin-bottom: 0 ;
271
+ margin-top: 0 ;
272
+ font: inherit }
273
+
274
+ pre.literal-block, pre.doctest-block, pre.math, pre.code {
275
+ margin-left: 2em ;
276
+ margin-right: 2em }
277
+
278
+ pre.code .ln { color: gray; } /* line numbers */
279
+ pre.code, code { background-color: #eeeeee }
280
+ pre.code .comment, code .comment { color: #5C6576 }
281
+ pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
282
+ pre.code .literal.string, code .literal.string { color: #0C5404 }
283
+ pre.code .name.builtin, code .name.builtin { color: #352B84 }
284
+ pre.code .deleted, code .deleted { background-color: #DEB0A1}
285
+ pre.code .inserted, code .inserted { background-color: #A3D289}
286
+
287
+ span.classifier {
288
+ font-family: sans-serif ;
289
+ font-style: oblique }
290
+
291
+ span.classifier-delimiter {
292
+ font-family: sans-serif ;
293
+ font-weight: bold }
294
+
295
+ span.interpreted {
296
+ font-family: sans-serif }
297
+
298
+ span.option {
299
+ white-space: nowrap }
300
+
301
+ span.pre {
302
+ white-space: pre }
303
+
304
+ span.problematic, pre.problematic {
305
+ color: red }
306
+
307
+ span.section-subtitle {
308
+ /* font-size relative to parent (h1..h6 element) */
309
+ font-size: 80% }
310
+
311
+ table.citation {
312
+ border-left: solid 1px gray;
313
+ margin-left: 1px }
314
+
315
+ table.docinfo {
316
+ margin: 2em 4em }
317
+
318
+ table.docutils {
319
+ margin-top: 0.5em ;
320
+ margin-bottom: 0.5em }
321
+
322
+ table.footnote {
323
+ border-left: solid 1px black;
324
+ margin-left: 1px }
325
+
326
+ table.docutils td, table.docutils th,
327
+ table.docinfo td, table.docinfo th {
328
+ padding-left: 0.5em ;
329
+ padding-right: 0.5em ;
330
+ vertical-align: top }
331
+
332
+ table.docutils th.field-name, table.docinfo th.docinfo-name {
333
+ font-weight: bold ;
334
+ text-align: left ;
335
+ white-space: nowrap ;
336
+ padding-left: 0 }
337
+
338
+ /* "booktabs" style (no vertical lines) */
339
+ table.docutils.booktabs {
340
+ border: 0px;
341
+ border-top: 2px solid;
342
+ border-bottom: 2px solid;
343
+ border-collapse: collapse;
344
+ }
345
+ table.docutils.booktabs * {
346
+ border: 0px;
347
+ }
348
+ table.docutils.booktabs th {
349
+ border-bottom: thin solid;
350
+ text-align: left;
351
+ }
352
+
353
+ h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
354
+ h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
355
+ font-size: 100% }
356
+
357
+ ul.auto-toc {
358
+ list-style-type: none }
359
+
360
+ </style>
361
+ </head>
362
+ <body>
363
+ <div class="document">
364
+
365
+
366
+ <a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367
+ <img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368
+ </a>
369
+ <div class="section" id="comunicacion-veri-factu">
370
+ <h1>Comunicación VERI*FACTU</h1>
371
+ <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
372
+ !! This file is generated by oca-gen-addon-readme !!
373
+ !! changes will be overwritten. !!
374
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375
+ !! source digest: sha256:c3c2f451254cc2c78b8c6084c2aa5dcaf61491b6bcb95eedcf40dcc3a990fd0f
376
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377
+ <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-spain/tree/18.0/l10n_es_verifactu_oca"><img alt="OCA/l10n-spain" src="https://img.shields.io/badge/github-OCA%2Fl10n--spain-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_verifactu_oca"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-spain&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378
+ <p>Módulo para la presentación inmediata de la facturación.</p>
379
+ <p><strong>Table of contents</strong></p>
380
+ <div class="contents local topic" id="contents">
381
+ <ul class="simple">
382
+ <li><a class="reference internal" href="#installation" id="toc-entry-1">Installation</a></li>
383
+ <li><a class="reference internal" href="#configuration" id="toc-entry-2">Configuration</a></li>
384
+ <li><a class="reference internal" href="#usage" id="toc-entry-3">Usage</a></li>
385
+ <li><a class="reference internal" href="#known-issues-roadmap" id="toc-entry-4">Known issues / Roadmap</a></li>
386
+ <li><a class="reference internal" href="#bug-tracker" id="toc-entry-5">Bug Tracker</a></li>
387
+ <li><a class="reference internal" href="#credits" id="toc-entry-6">Credits</a><ul>
388
+ <li><a class="reference internal" href="#authors" id="toc-entry-7">Authors</a></li>
389
+ <li><a class="reference internal" href="#contributors" id="toc-entry-8">Contributors</a></li>
390
+ <li><a class="reference internal" href="#maintainers" id="toc-entry-9">Maintainers</a></li>
391
+ </ul>
392
+ </li>
393
+ </ul>
394
+ </div>
395
+ <div class="section" id="installation">
396
+ <h2><a class="toc-backref" href="#toc-entry-1">Installation</a></h2>
397
+ <p>Para instalar esté módulo necesita:</p>
398
+ <ol class="arabic simple">
399
+ <li>Libreria Python Zeep, se puede instalar con el comando ‘pip install
400
+ zeep’</li>
401
+ <li>Libreria Python Requests, se puede instalar con el comando ‘pip
402
+ install requests’</li>
403
+ </ol>
404
+ </div>
405
+ <div class="section" id="configuration">
406
+ <h2><a class="toc-backref" href="#toc-entry-2">Configuration</a></h2>
407
+ <p>Para configurar este módulo es necesario:</p>
408
+ <ol class="arabic simple">
409
+ <li>Acceder a Facturación/Contabilidad -&gt; Configuración -&gt; AEAT -&gt;
410
+ Agencia Tributaria, podrás consultar las URLs del servicio SOAP de
411
+ Hacienda. Estas URLs pueden cambiar según comunidades</li>
412
+ <li>El certificado enviado por la FMNT es en formato p12, este
413
+ certificado no se puede usar directamente con Zeep. Accede a
414
+ Facturación/Contabilidad -&gt; Configuración -&gt; AEAT -&gt; Certificados
415
+ AEAT, y allí podrás: Subir el certificado p12 y extraer las claves
416
+ públicas y privadas con el botón “Obtener claves”</li>
417
+ <li>Debes tener en cuenta que los certificados se alojan en una carpeta
418
+ accesible por la instalación de Odoo.</li>
419
+ <li>Completar los datos de desarrollador y del encadenamiento a nivel de
420
+ compañía en la pestaña de VERI*FACTU.</li>
421
+ </ol>
422
+ <p>En caso de que la obtención de claves no funcione y uses Linux, cuentas
423
+ con los siguientes comandos para tratar de solucionarlo:</p>
424
+ <ul class="simple">
425
+ <li>Clave pública: “openssl pkcs12 -in Certificado.p12 -nokeys -out
426
+ publicCert.crt -nodes”</li>
427
+ <li>Clave privada: “openssl pkcs12 -in Certificado.p12 -nocerts -out
428
+ privateKey.pem -nodes”</li>
429
+ </ul>
430
+ <ol class="arabic simple">
431
+ <li>Establecer en las posiciones fiscales la clave de impuestos y la
432
+ clave de registro VERI*FACTU.</li>
433
+ <li>Para aplicar las claves ejecute el asistente de actualización del
434
+ módulo accountchart_update.</li>
435
+ </ol>
436
+ </div>
437
+ <div class="section" id="usage">
438
+ <h2><a class="toc-backref" href="#toc-entry-3">Usage</a></h2>
439
+ <p>Cuando se valida una factura, automáticamente genera el registro de
440
+ envío para verifactu. Cada minuto se enviarán todos aquellos registros
441
+ pendientes de enviar mediante un cron.</p>
442
+ </div>
443
+ <div class="section" id="known-issues-roadmap">
444
+ <h2><a class="toc-backref" href="#toc-entry-4">Known issues / Roadmap</a></h2>
445
+ <blockquote>
446
+ <ul class="simple">
447
+ <li>Refactorización SII-VERI*FACTU en l10nes_aeat de los métodos que
448
+ sean comunes.</li>
449
+ <li>Envío separado de la confirmación de la factura
450
+ (cron.trigger/queque.job)</li>
451
+ <li>Control de errores del sistema, generar avisos. (caída de aeat,
452
+ errores de conexión, etc.)</li>
453
+ <li>Posibilidad de consultar el estado de las facturas enviadas.</li>
454
+ <li>Operaciones exentas y causas de exención.</li>
455
+ <li>Crear un selection con todos los valores posibles de codigos de
456
+ error, para poder guardarlo y agrupar las facturas por ese código.</li>
457
+ <li>Contemplar el tiempo de espera entre envíos de registros cuando
458
+ AEAT devuelve un tiempo superior a 60 segundos.</li>
459
+ <li>Facturación de terceros o de destinatarios (autofacturación), con
460
+ los datos de los mismos.</li>
461
+ </ul>
462
+ </blockquote>
463
+ <p>CASOS NO CUBIERTOS: 1 - Modificación de facturas enviadas (AEAT
464
+ recomienda generar rectificativa). Según AEAT: Si los errores detectados
465
+ tras la emisión NO están contemplados en el ROF, pero afectan a campos
466
+ del registro de facturación (RF) generado al emitir la factura (que,
467
+ digamos, “no se ven” en la factura impresa, es decir, son campos
468
+ “internos”, como ciertas codificaciones tributarias), se debe corregir
469
+ la factura original (esos datos “internos” de la misma) y se debe
470
+ generar un RF de alta de subsanación de esa factura donde conste ya la
471
+ nueva información que proceda. Estos casos deberían ser MUY POCO
472
+ FRECUENTES. 2 - Anulación de facturas enviadas (AEAT recomienda generar
473
+ rectificativa). Según AEAT: “Si se considera que “toda la factura” en sí
474
+ misma está mal o no debería haberse emitido, siempre que para
475
+ solucionarlo no deba emplearse algún procedimiento (de rectificativa u
476
+ otro) previsto en el ROF, se podrá “anular” generando para ello un RF de
477
+ anulación. Estos casos deberían ser MUY POCO FRECUENTES.”</p>
478
+ </div>
479
+ <div class="section" id="bug-tracker">
480
+ <h2><a class="toc-backref" href="#toc-entry-5">Bug Tracker</a></h2>
481
+ <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-spain/issues">GitHub Issues</a>.
482
+ In case of trouble, please check there if your issue has already been reported.
483
+ If you spotted it first, help us to smash it by providing a detailed and welcomed
484
+ <a class="reference external" href="https://github.com/OCA/l10n-spain/issues/new?body=module:%20l10n_es_verifactu_oca%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
485
+ <p>Do not contact contributors directly about support or help with technical issues.</p>
486
+ </div>
487
+ <div class="section" id="credits">
488
+ <h2><a class="toc-backref" href="#toc-entry-6">Credits</a></h2>
489
+ <div class="section" id="authors">
490
+ <h3><a class="toc-backref" href="#toc-entry-7">Authors</a></h3>
491
+ <ul class="simple">
492
+ <li>Aures Tic</li>
493
+ <li>ForgeFlow</li>
494
+ <li>Tecnativa</li>
495
+ <li>Factor Libre</li>
496
+ </ul>
497
+ </div>
498
+ <div class="section" id="contributors">
499
+ <h3><a class="toc-backref" href="#toc-entry-8">Contributors</a></h3>
500
+ <ul class="simple">
501
+ <li>Aures TIC:<ul>
502
+ <li>Jose Zambudio</li>
503
+ <li>Almudena de La Puente</li>
504
+ <li>Anna Martínez</li>
505
+ </ul>
506
+ </li>
507
+ <li>ForgeFlow S.L.:<ul>
508
+ <li>Laura Cazorla</li>
509
+ <li>Andreu Orensanz</li>
510
+ <li>Jordi Ballester</li>
511
+ </ul>
512
+ </li>
513
+ <li>Ozono multimedia:<ul>
514
+ <li>Iván Antón</li>
515
+ </ul>
516
+ </li>
517
+ <li>SDi:<ul>
518
+ <li>Fernando La Chica</li>
519
+ </ul>
520
+ </li>
521
+ <li>Process control:<ul>
522
+ <li>Jorge Luis López</li>
523
+ </ul>
524
+ </li>
525
+ <li>Tecnativa:<ul>
526
+ <li>Pedro M. Baeza</li>
527
+ </ul>
528
+ </li>
529
+ <li>Factor Libre S.L.:<ul>
530
+ <li>Luis J. Salvatierra</li>
531
+ </ul>
532
+ </li>
533
+ </ul>
534
+ </div>
535
+ <div class="section" id="maintainers">
536
+ <h3><a class="toc-backref" href="#toc-entry-9">Maintainers</a></h3>
537
+ <p>This module is maintained by the OCA.</p>
538
+ <a class="reference external image-reference" href="https://odoo-community.org">
539
+ <img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
540
+ </a>
541
+ <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
542
+ mission is to support the collaborative development of Odoo features and
543
+ promote its widespread use.</p>
544
+ <p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-spain/tree/18.0/l10n_es_verifactu_oca">OCA/l10n-spain</a> project on GitHub.</p>
545
+ <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
546
+ </div>
547
+ </div>
548
+ </div>
549
+ </div>
550
+ </body>
551
+ </html>
@@ -0,0 +1,2 @@
1
+ from . import test_10n_es_verifactu
2
+ from . import test_verifactu_invoice