odoo-addon-l10n-es-aeat-sii-oca 17.0.1.1.0__py3-none-any.whl → 17.0.1.1.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.
- odoo/addons/l10n_es_aeat_sii_oca/README.rst +1 -1
- odoo/addons/l10n_es_aeat_sii_oca/__manifest__.py +1 -1
- odoo/addons/l10n_es_aeat_sii_oca/i18n/l10n_es_aeat_sii_oca.pot +6 -6
- odoo/addons/l10n_es_aeat_sii_oca/static/description/index.html +1 -1
- odoo/addons/l10n_es_aeat_sii_oca/tests/test_l10n_es_aeat_sii.py +29 -0
- odoo/addons/l10n_es_aeat_sii_oca/wizards/account_move_send_sii.py +8 -2
- odoo/addons/l10n_es_aeat_sii_oca/wizards/account_move_send_sii_views.xml +3 -3
- {odoo_addon_l10n_es_aeat_sii_oca-17.0.1.1.0.dist-info → odoo_addon_l10n_es_aeat_sii_oca-17.0.1.1.1.dist-info}/METADATA +2 -2
- {odoo_addon_l10n_es_aeat_sii_oca-17.0.1.1.0.dist-info → odoo_addon_l10n_es_aeat_sii_oca-17.0.1.1.1.dist-info}/RECORD +11 -11
- {odoo_addon_l10n_es_aeat_sii_oca-17.0.1.1.0.dist-info → odoo_addon_l10n_es_aeat_sii_oca-17.0.1.1.1.dist-info}/WHEEL +0 -0
- {odoo_addon_l10n_es_aeat_sii_oca-17.0.1.1.0.dist-info → odoo_addon_l10n_es_aeat_sii_oca-17.0.1.1.1.dist-info}/top_level.txt +0 -0
@@ -7,7 +7,7 @@ Suministro Inmediato de Información en el IVA
|
|
7
7
|
!! This file is generated by oca-gen-addon-readme !!
|
8
8
|
!! changes will be overwritten. !!
|
9
9
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
10
|
-
!! source digest: sha256:
|
10
|
+
!! source digest: sha256:e7ee59cb7caecaf7b73c801bcb787e78c27df6174d54d9e3b92721f7e864ba15
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
12
12
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
|
@@ -495,6 +495,11 @@ msgstr ""
|
|
495
495
|
msgid "Monthly"
|
496
496
|
msgstr ""
|
497
497
|
|
498
|
+
#. module: l10n_es_aeat_sii_oca
|
499
|
+
#: model:ir.model.fields,field_description:l10n_es_aeat_sii_oca.field_wizard_send_sii__moves_to_send
|
500
|
+
msgid "Moves To Send"
|
501
|
+
msgstr ""
|
502
|
+
|
498
503
|
#. module: l10n_es_aeat_sii_oca
|
499
504
|
#: model:ir.model.fields,field_description:l10n_es_aeat_sii_oca.field_aeat_sii_map_lines__name
|
500
505
|
#: model:ir.model.fields,field_description:l10n_es_aeat_sii_oca.field_aeat_sii_mapping_registration_keys__name
|
@@ -785,11 +790,6 @@ msgstr ""
|
|
785
790
|
msgid "Send to SII"
|
786
791
|
msgstr ""
|
787
792
|
|
788
|
-
#. module: l10n_es_aeat_sii_oca
|
789
|
-
#: model:ir.model.fields,field_description:l10n_es_aeat_sii_oca.field_wizard_send_sii__sending_number
|
790
|
-
msgid "Sending Number"
|
791
|
-
msgstr ""
|
792
|
-
|
793
793
|
#. module: l10n_es_aeat_sii_oca
|
794
794
|
#: model:ir.model.fields,field_description:l10n_es_aeat_sii_oca.field_res_company__sent_time
|
795
795
|
msgid "Sent Time"
|
@@ -1168,7 +1168,7 @@ msgstr ""
|
|
1168
1168
|
#: model_terms:ir.ui.view,arch_db:l10n_es_aeat_sii_oca.view_wizard_send_sii
|
1169
1169
|
msgid ""
|
1170
1170
|
"of the selected invoices are being processed to be sent to the SII. If you "
|
1171
|
-
"confirm, they will be
|
1171
|
+
"confirm, they will be sent."
|
1172
1172
|
msgstr ""
|
1173
1173
|
|
1174
1174
|
#. module: l10n_es_aeat_sii_oca
|
@@ -367,7 +367,7 @@ ul.auto-toc {
|
|
367
367
|
!! This file is generated by oca-gen-addon-readme !!
|
368
368
|
!! changes will be overwritten. !!
|
369
369
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
370
|
-
!! source digest: sha256:
|
370
|
+
!! source digest: sha256:e7ee59cb7caecaf7b73c801bcb787e78c27df6174d54d9e3b92721f7e864ba15
|
371
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
372
372
|
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.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/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-spain/tree/17.0/l10n_es_aeat_sii_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-17-0/l10n-spain-17-0-l10n_es_aeat_sii_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&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
373
373
|
<p>Módulo para la presentación inmediata del IVA
|
@@ -552,3 +552,32 @@ class TestL10nEsAeatSii(TestL10nEsAeatSiiBase):
|
|
552
552
|
}
|
553
553
|
)
|
554
554
|
self.assertFalse(invoice.sii_enabled)
|
555
|
+
|
556
|
+
def test_send_sii_wizard(self):
|
557
|
+
invoice = self._create_invoice("out_invoice")
|
558
|
+
invoice_sii_failed = self._create_invoice("out_invoice")
|
559
|
+
invoice_sii_modified = self._create_invoice("out_invoice")
|
560
|
+
(invoice + invoice_sii_failed + invoice_sii_modified).action_post()
|
561
|
+
(invoice + invoice_sii_failed + invoice_sii_modified).write(
|
562
|
+
{"sii_send_date": False}
|
563
|
+
)
|
564
|
+
invoice_sii_failed.write({"aeat_send_failed": True})
|
565
|
+
invoice_sii_modified.write({"aeat_state": "sent_modified"})
|
566
|
+
wizard = (
|
567
|
+
self.env["wizard.send.sii"]
|
568
|
+
.with_context(
|
569
|
+
active_model="account.move",
|
570
|
+
active_ids=[invoice_sii_failed.id, invoice_sii_modified.id, invoice.id],
|
571
|
+
)
|
572
|
+
.create({})
|
573
|
+
)
|
574
|
+
self.assertEqual(wizard.not_send_without_errors_number, 1)
|
575
|
+
self.assertEqual(wizard.with_errors_number, 1)
|
576
|
+
self.assertEqual(wizard.modified_number, 1)
|
577
|
+
self.assertFalse(invoice.sii_send_date)
|
578
|
+
self.assertFalse(invoice_sii_failed.sii_send_date)
|
579
|
+
self.assertFalse(invoice_sii_modified.sii_send_date)
|
580
|
+
wizard.action_confirm()
|
581
|
+
self.assertTrue(invoice.sii_send_date)
|
582
|
+
self.assertTrue(invoice_sii_failed.sii_send_date)
|
583
|
+
self.assertTrue(invoice_sii_modified.sii_send_date)
|
@@ -8,7 +8,7 @@ class SendSIIWizard(models.TransientModel):
|
|
8
8
|
_name = "wizard.send.sii"
|
9
9
|
_description = "Send SII Wizard"
|
10
10
|
|
11
|
-
|
11
|
+
moves_to_send = fields.Integer()
|
12
12
|
not_send_without_errors_number = fields.Integer()
|
13
13
|
with_errors_number = fields.Integer()
|
14
14
|
modified_number = fields.Integer()
|
@@ -26,9 +26,15 @@ class SendSIIWizard(models.TransientModel):
|
|
26
26
|
modified = account_moves.filtered(
|
27
27
|
lambda a: a.aeat_state in ["sent_modified", "cancelled_modified"]
|
28
28
|
)
|
29
|
+
moves_to_send = account_moves.filtered(
|
30
|
+
lambda a: a.sii_enabled
|
31
|
+
and a.state in a._get_valid_document_states()
|
32
|
+
and a.aeat_state not in ["sent", "cancelled"]
|
33
|
+
)
|
29
34
|
res.update(
|
30
35
|
{
|
31
|
-
"
|
36
|
+
"moves_to_send": len(moves_to_send),
|
37
|
+
"account_move_ids": moves_to_send.ids,
|
32
38
|
"not_send_without_errors_number": len(not_send_without_errors),
|
33
39
|
"with_errors_number": len(with_errors),
|
34
40
|
"modified_number": len(modified),
|
@@ -21,12 +21,12 @@
|
|
21
21
|
<p
|
22
22
|
class="alert alert-warning"
|
23
23
|
role="alert"
|
24
|
-
invisible="
|
24
|
+
invisible="moves_to_send == 0"
|
25
25
|
>
|
26
26
|
<field
|
27
|
-
name="
|
27
|
+
name="moves_to_send"
|
28
28
|
widget="statinfo"
|
29
|
-
string="of the selected invoices are being processed to be sent to the SII. If you confirm, they will be
|
29
|
+
string="of the selected invoices are being processed to be sent to the SII. If you confirm, they will be sent."
|
30
30
|
/>
|
31
31
|
</p>
|
32
32
|
<p
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: odoo-addon-l10n_es_aeat_sii_oca
|
3
|
-
Version: 17.0.1.1.
|
3
|
+
Version: 17.0.1.1.1
|
4
4
|
Requires-Python: >=3.10
|
5
5
|
Requires-Dist: odoo-addon-account_invoice_refund_link>=17.0dev,<17.1dev
|
6
6
|
Requires-Dist: odoo-addon-l10n_es_aeat>=17.0dev,<17.1dev
|
@@ -27,7 +27,7 @@ Suministro Inmediato de Información en el IVA
|
|
27
27
|
!! This file is generated by oca-gen-addon-readme !!
|
28
28
|
!! changes will be overwritten. !!
|
29
29
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
30
|
-
!! source digest: sha256:
|
30
|
+
!! source digest: sha256:e7ee59cb7caecaf7b73c801bcb787e78c27df6174d54d9e3b92721f7e864ba15
|
31
31
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
32
32
|
|
33
33
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
|
@@ -1,6 +1,6 @@
|
|
1
|
-
odoo/addons/l10n_es_aeat_sii_oca/README.rst,sha256=
|
1
|
+
odoo/addons/l10n_es_aeat_sii_oca/README.rst,sha256=eTsMIkx1KKwQfhWh-0vxNFrxA3yIQc7XH7czcz5Tnhg,6300
|
2
2
|
odoo/addons/l10n_es_aeat_sii_oca/__init__.py,sha256=9prAcIK97t2LFcopzb31X8maXyZXbonwZa8iVRH0VN4,157
|
3
|
-
odoo/addons/l10n_es_aeat_sii_oca/__manifest__.py,sha256=
|
3
|
+
odoo/addons/l10n_es_aeat_sii_oca/__manifest__.py,sha256=NvmMGvhAJ7mYKahimhiPFgYr-tzMF6tzE9I37LWuEvs,2586
|
4
4
|
odoo/addons/l10n_es_aeat_sii_oca/hooks.py,sha256=cQRnSq705F_gWi565nhBCUSgRxthOkbzgpJHwk1OXZM,1377
|
5
5
|
odoo/addons/l10n_es_aeat_sii_oca/data/aeat_sii_map_data.xml,sha256=Mz562bsz22nPDECTg8vZXjAuQ-xsb6SFLQpHJlaz92E,13306
|
6
6
|
odoo/addons/l10n_es_aeat_sii_oca/data/aeat_sii_mapping_registration_keys_data.xml,sha256=tI-kOHj-wgfnZrz_4gFAIi7jD4UrL79GoiO__nAtm_0,9553
|
@@ -20,7 +20,7 @@ odoo/addons/l10n_es_aeat_sii_oca/i18n/eu.po,sha256=z5fADPdK8ibA_309HCCU0ZlCmrxA_
|
|
20
20
|
odoo/addons/l10n_es_aeat_sii_oca/i18n/fr.po,sha256=8hm6OYccNWpcZcVJnApbyE9G1IrtduStT4KYzLhk70E,48349
|
21
21
|
odoo/addons/l10n_es_aeat_sii_oca/i18n/gl.po,sha256=IlXBxQCpxtbuX9rcatK0u9au5OfwT4nhEjPi2-DsXoQ,48577
|
22
22
|
odoo/addons/l10n_es_aeat_sii_oca/i18n/hr.po,sha256=uty6Qz3xRwW_zcXKUm1at8Dx3V1Hm514p3zN0AjoqRs,48361
|
23
|
-
odoo/addons/l10n_es_aeat_sii_oca/i18n/l10n_es_aeat_sii_oca.pot,sha256=
|
23
|
+
odoo/addons/l10n_es_aeat_sii_oca/i18n/l10n_es_aeat_sii_oca.pot,sha256=lV5o6sbH4HxXQ1WQBMOMKsSpEUdoLAvBSMcP3wSBCbg,49044
|
24
24
|
odoo/addons/l10n_es_aeat_sii_oca/i18n/nl.po,sha256=Ba-RFWSU8-6q5KX-wVrQrs3L86XzfGG013rqVwZeKFg,48154
|
25
25
|
odoo/addons/l10n_es_aeat_sii_oca/i18n/pl.po,sha256=2-TNSk6_zYT7Mumux-YY5VkSexIWOXo0KsKquOcF0ME,48399
|
26
26
|
odoo/addons/l10n_es_aeat_sii_oca/i18n/pt.po,sha256=mFZaXwtcay_8MI-TH4RQwunS4mIzFmQZ8Ai145V-eas,48273
|
@@ -51,9 +51,9 @@ odoo/addons/l10n_es_aeat_sii_oca/security/ir.model.access.csv,sha256=K6PSPYaRUZm
|
|
51
51
|
odoo/addons/l10n_es_aeat_sii_oca/static/description/SII_1.jpg,sha256=8w4L5ayayAWEv6Evbixr6rVFCfOkY0yA44cUu-5UQlg,42849
|
52
52
|
odoo/addons/l10n_es_aeat_sii_oca/static/description/icon.png,sha256=OUuKU4891uuwmWQMF4fKyKvCqWuQ3yc4Wg-EfL-x_SM,6100
|
53
53
|
odoo/addons/l10n_es_aeat_sii_oca/static/description/icon.svg,sha256=Q9kGyveMGAwEpGR8y8YpoAJN7dcnxtDKRl7T19LUKg8,5244
|
54
|
-
odoo/addons/l10n_es_aeat_sii_oca/static/description/index.html,sha256=
|
54
|
+
odoo/addons/l10n_es_aeat_sii_oca/static/description/index.html,sha256=8ExGsIttLXXU0JskdNdGAAthtXY9MI9b4uyxDZVfKnQ,18635
|
55
55
|
odoo/addons/l10n_es_aeat_sii_oca/tests/__init__.py,sha256=BCroN6OlmUqvJ8CticoWzBKkWZ7GmC7GOgGILiMuqKA,36
|
56
|
-
odoo/addons/l10n_es_aeat_sii_oca/tests/test_l10n_es_aeat_sii.py,sha256=
|
56
|
+
odoo/addons/l10n_es_aeat_sii_oca/tests/test_l10n_es_aeat_sii.py,sha256=rU969x9TS395hdXucQkmOU-AiF8s8WaOfqzmRJMtOOY,22717
|
57
57
|
odoo/addons/l10n_es_aeat_sii_oca/tests/json/sii_in_invoice_p_iva0_ns_p_iva10_bc_dict.json,sha256=aNTCIW9A0aPnUX9Qd5kR00EbMaVswzYJFGis0QvHQsI,737
|
58
58
|
odoo/addons/l10n_es_aeat_sii_oca/tests/json/sii_in_invoice_p_iva10_bc_dict.json,sha256=PMiptUsqc9lvzEQaXtHDWRciGleYwa9OJnqxSSGrC0Y,701
|
59
59
|
odoo/addons/l10n_es_aeat_sii_oca/tests/json/sii_in_invoice_p_iva10_bc_p_irpf19_p_iva21_sc_p_irpf19_dict.json,sha256=akbMRqHKJ72TyfBeLJz4neKa6vqusva9Ee3Nee-VfBs,787
|
@@ -85,9 +85,9 @@ odoo/addons/l10n_es_aeat_sii_oca/views/res_partner_views.xml,sha256=42CGeeDaTo7A
|
|
85
85
|
odoo/addons/l10n_es_aeat_sii_oca/wizards/__init__.py,sha256=zM7nei9tRLYBQyWDg-iGt8Ws6mKm2cGlbw2RaIVYrRE,138
|
86
86
|
odoo/addons/l10n_es_aeat_sii_oca/wizards/account_move_reversal.py,sha256=3czrGJUN4q3b-2TwBpDWi9fxOEHyaMvQgb3v3v5oS1M,2422
|
87
87
|
odoo/addons/l10n_es_aeat_sii_oca/wizards/account_move_reversal_views.xml,sha256=hTOaExwXIKyiISclttaxLqjZm-XRINa6hLYwPX-2P-c,1123
|
88
|
-
odoo/addons/l10n_es_aeat_sii_oca/wizards/account_move_send_sii.py,sha256=
|
89
|
-
odoo/addons/l10n_es_aeat_sii_oca/wizards/account_move_send_sii_views.xml,sha256=
|
90
|
-
odoo_addon_l10n_es_aeat_sii_oca-17.0.1.1.
|
91
|
-
odoo_addon_l10n_es_aeat_sii_oca-17.0.1.1.
|
92
|
-
odoo_addon_l10n_es_aeat_sii_oca-17.0.1.1.
|
93
|
-
odoo_addon_l10n_es_aeat_sii_oca-17.0.1.1.
|
88
|
+
odoo/addons/l10n_es_aeat_sii_oca/wizards/account_move_send_sii.py,sha256=mt4EBIocQFPQLDRGO3F8ii_EYFmqbY50hSGA0TatY40,1772
|
89
|
+
odoo/addons/l10n_es_aeat_sii_oca/wizards/account_move_send_sii_views.xml,sha256=GrG6eWoww6Y8CW17zfWpKxmwZcNTcLkOuOKETzwR2oA,3167
|
90
|
+
odoo_addon_l10n_es_aeat_sii_oca-17.0.1.1.1.dist-info/METADATA,sha256=CYMbgCT_e1Sx2pS5HCkagiEZ_3QX04PntKKLRGAD7-s,7160
|
91
|
+
odoo_addon_l10n_es_aeat_sii_oca-17.0.1.1.1.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
92
|
+
odoo_addon_l10n_es_aeat_sii_oca-17.0.1.1.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
93
|
+
odoo_addon_l10n_es_aeat_sii_oca-17.0.1.1.1.dist-info/RECORD,,
|
File without changes
|