odoo-addon-l10n-es-aeat-sii-oca 16.0.1.8.3__py3-none-any.whl → 16.0.1.8.5__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.
@@ -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:63561da0b3b7e528e554dc67a4a94451c6da42829a772cbc89e41fa6a65c6689
10
+ !! source digest: sha256:86d695960bc6ec21d8e704e119dc663acfaa8ce909155d0334ae2d4510ad88d5
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
@@ -18,7 +18,7 @@
18
18
 
19
19
  {
20
20
  "name": "Suministro Inmediato de Información en el IVA",
21
- "version": "16.0.1.8.3",
21
+ "version": "16.0.1.8.5",
22
22
  "category": "Accounting & Finance",
23
23
  "website": "https://github.com/OCA/l10n-spain",
24
24
  "author": "Acysos S.L.,"
@@ -1095,15 +1095,6 @@ msgid ""
1095
1095
  "because there is a job running!"
1096
1096
  msgstr ""
1097
1097
 
1098
- #. module: l10n_es_aeat_sii_oca
1099
- #. odoo-python
1100
- #: code:addons/l10n_es_aeat_sii_oca/models/sii_mixin.py:0
1101
- #, python-format
1102
- msgid ""
1103
- "You can not communicate this document at this moment because there is a job "
1104
- "running!"
1105
- msgstr ""
1106
-
1107
1098
  #. module: l10n_es_aeat_sii_oca
1108
1099
  #. odoo-python
1109
1100
  #: code:addons/l10n_es_aeat_sii_oca/models/account_move.py:0
@@ -301,21 +301,28 @@ class SiiMixin(models.AbstractModel):
301
301
  raise NotImplementedError()
302
302
 
303
303
  def send_sii(self):
304
- documents = self.filtered(
305
- lambda document: (
306
- document.sii_enabled
307
- and document.state in self._get_valid_document_states()
308
- and document.sii_state not in ["sent", "cancelled"]
309
- )
310
- )
311
- if not documents._cancel_sii_jobs():
312
- raise UserError(
313
- _(
314
- "You can not communicate this document at this moment "
315
- "because there is a job running!"
316
- )
317
- )
318
- documents._process_sii_send()
304
+ """General public method for filtering out of the starting recordset the records
305
+ that shouldn't be sent to the SII:
306
+
307
+ - Documents of companies with SII not enabled (through sii_enabled).
308
+ - Documents not applicable to be sent to SII (through sii_enabled).
309
+ - Documents in non applicable states (for example, cancelled invoices).
310
+ - Documents already sent to the SII.
311
+ - Documents with sending jobs pending to be executed.
312
+ """
313
+ valid_states = self._get_valid_document_states()
314
+ jobs_field_name = self._get_sii_jobs_field_name()
315
+ for document in self:
316
+ if (
317
+ not document.sii_enabled
318
+ or document.state not in valid_states
319
+ or document.sii_state in ["sent", "cancelled"]
320
+ ):
321
+ continue
322
+ job_states = document.sudo().mapped(jobs_field_name).mapped("state")
323
+ if any([x in ("started", "pending", "enqueued") for x in job_states]):
324
+ continue
325
+ document._process_sii_send()
319
326
 
320
327
  def _process_sii_send(self):
321
328
  """Process document sending to the SII. Adds general checks from
@@ -8,10 +8,11 @@
8
8
 
9
9
  /*
10
10
  :Author: David Goodger (goodger@python.org)
11
- :Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11
+ :Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
12
12
  :Copyright: This stylesheet has been placed in the public domain.
13
13
 
14
14
  Default cascading style sheet for the HTML output of Docutils.
15
+ Despite the name, some widely supported CSS2 features are used.
15
16
 
16
17
  See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
17
18
  customize this style sheet.
@@ -274,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
274
275
  margin-left: 2em ;
275
276
  margin-right: 2em }
276
277
 
277
- pre.code .ln { color: grey; } /* line numbers */
278
+ pre.code .ln { color: gray; } /* line numbers */
278
279
  pre.code, code { background-color: #eeeeee }
279
280
  pre.code .comment, code .comment { color: #5C6576 }
280
281
  pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -300,7 +301,7 @@ span.option {
300
301
  span.pre {
301
302
  white-space: pre }
302
303
 
303
- span.problematic {
304
+ span.problematic, pre.problematic {
304
305
  color: red }
305
306
 
306
307
  span.section-subtitle {
@@ -366,7 +367,7 @@ ul.auto-toc {
366
367
  !! This file is generated by oca-gen-addon-readme !!
367
368
  !! changes will be overwritten. !!
368
369
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369
- !! source digest: sha256:63561da0b3b7e528e554dc67a4a94451c6da42829a772cbc89e41fa6a65c6689
370
+ !! source digest: sha256:86d695960bc6ec21d8e704e119dc663acfaa8ce909155d0334ae2d4510ad88d5
370
371
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
371
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/16.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-16-0/l10n-spain-16-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&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372
373
  <p>Módulo para la presentación inmediata del IVA
@@ -518,7 +519,9 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
518
519
  <div class="section" id="maintainers">
519
520
  <h2><a class="toc-backref" href="#toc-entry-9">Maintainers</a></h2>
520
521
  <p>This module is maintained by the OCA.</p>
521
- <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
522
+ <a class="reference external image-reference" href="https://odoo-community.org">
523
+ <img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
524
+ </a>
522
525
  <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
523
526
  mission is to support the collaborative development of Odoo features and
524
527
  promote its widespread use.</p>
@@ -118,7 +118,7 @@ class TestL10nEsAeatSiiBase(TestL10nEsAeatModBase, TestL10nEsAeatCertificateBase
118
118
  return invoice
119
119
 
120
120
  @classmethod
121
- def _create_invoice(cls, move_type):
121
+ def _create_invoice_for_sii(cls, move_type):
122
122
  return cls.env["account.move"].create(
123
123
  {
124
124
  "company_id": cls.company.id,
@@ -154,7 +154,7 @@ class TestL10nEsAeatSiiBase(TestL10nEsAeatModBase, TestL10nEsAeatCertificateBase
154
154
  cls.account_expense = cls.env.ref(
155
155
  "l10n_es.%s_account_common_600" % cls.company.id
156
156
  )
157
- cls.invoice = cls._create_invoice("out_invoice")
157
+ cls.invoice = cls._create_invoice_for_sii("out_invoice")
158
158
  cls.company.write(
159
159
  {
160
160
  "sii_enabled": True,
@@ -336,7 +336,7 @@ class TestL10nEsAeatSii(TestL10nEsAeatSiiBase):
336
336
  self.invoice.sii_description,
337
337
  "Test customer header | Test description",
338
338
  )
339
- invoice_temp = self._create_invoice("in_invoice")
339
+ invoice_temp = self._create_invoice_for_sii("in_invoice")
340
340
  self.assertEqual(
341
341
  invoice_temp.sii_description,
342
342
  "Test supplier header | Test description",
@@ -388,7 +388,7 @@ class TestL10nEsAeatSii(TestL10nEsAeatSiiBase):
388
388
  self._activate_certificate()
389
389
  self.invoice.company_id.sii_test = True
390
390
  self._check_tax_agencies(self.invoice)
391
- in_invoice = self._create_invoice("in_invoice")
391
+ in_invoice = self._create_invoice_for_sii("in_invoice")
392
392
  self._check_tax_agencies(in_invoice)
393
393
 
394
394
  def test_tax_agencies_production(self):
@@ -396,7 +396,7 @@ class TestL10nEsAeatSii(TestL10nEsAeatSiiBase):
396
396
  self._activate_certificate()
397
397
  self.invoice.company_id.sii_test = False
398
398
  self._check_tax_agencies(self.invoice)
399
- in_invoice = self._create_invoice("in_invoice")
399
+ in_invoice = self._create_invoice_for_sii("in_invoice")
400
400
  self._check_tax_agencies(in_invoice)
401
401
 
402
402
  def test_refund_sii_refund_type(self):
@@ -486,7 +486,7 @@ class TestL10nEsAeatSii(TestL10nEsAeatSiiBase):
486
486
  with self.assertRaises(exceptions.UserError):
487
487
  self.invoice.write({"thirdparty_number": "CUSTOM"})
488
488
  # in_invoice
489
- in_invoice = self._create_invoice("in_invoice")
489
+ in_invoice = self._create_invoice_for_sii("in_invoice")
490
490
  in_invoice.ref = "REF"
491
491
  in_invoice.sii_state = "sent"
492
492
  partner = self.partner.copy()
@@ -1,12 +1,11 @@
1
1
  Metadata-Version: 2.1
2
- Name: odoo-addon-l10n-es-aeat-sii-oca
3
- Version: 16.0.1.8.3
2
+ Name: odoo-addon-l10n_es_aeat_sii_oca
3
+ Version: 16.0.1.8.5
4
4
  Summary: Suministro Inmediato de Información en el IVA
5
5
  Home-page: https://github.com/OCA/l10n-spain
6
6
  Author: Acysos S.L.,Diagram,Minorisa,Studio73,FactorLibre,Comunitea,Otherway,Tecnativa,Javi Melendez,Odoo Community Association (OCA)
7
7
  Author-email: support@odoo-community.org
8
8
  License: AGPL-3
9
- Platform: UNKNOWN
10
9
  Classifier: Programming Language :: Python
11
10
  Classifier: Framework :: Odoo
12
11
  Classifier: Framework :: Odoo :: 16.0
@@ -29,7 +28,7 @@ Suministro Inmediato de Información en el IVA
29
28
  !! This file is generated by oca-gen-addon-readme !!
30
29
  !! changes will be overwritten. !!
31
30
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
32
- !! source digest: sha256:63561da0b3b7e528e554dc67a4a94451c6da42829a772cbc89e41fa6a65c6689
31
+ !! source digest: sha256:86d695960bc6ec21d8e704e119dc663acfaa8ce909155d0334ae2d4510ad88d5
33
32
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
34
33
 
35
34
  .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
@@ -211,5 +210,3 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
211
210
  This module is part of the `OCA/l10n-spain <https://github.com/OCA/l10n-spain/tree/16.0/l10n_es_aeat_sii_oca>`_ project on GitHub.
212
211
 
213
212
  You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
214
-
215
-
@@ -1,6 +1,6 @@
1
- odoo/addons/l10n_es_aeat_sii_oca/README.rst,sha256=GDAyWNHFZ4Z4-e2cXVFRGri4BZs6V8vQBvvyga1rKD0,6715
1
+ odoo/addons/l10n_es_aeat_sii_oca/README.rst,sha256=8_kPfw6B_gasFu840o-TTyvVmo_zxePw3V-4l2O21DE,6715
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=mOHCBHZoblqDHtVCXqDJCxFr23Abm_ZvB1W28o7Zy2Y,2541
3
+ odoo/addons/l10n_es_aeat_sii_oca/__manifest__.py,sha256=gJ--Uned0gGCIGZl0u7b6T08vqXpE-Vham55yguY56k,2541
4
4
  odoo/addons/l10n_es_aeat_sii_oca/hooks.py,sha256=X176kbtTWO6KsU06EvjLa6eBkDzJqlAeb02-hPw-4VY,1462
5
5
  odoo/addons/l10n_es_aeat_sii_oca/data/aeat_sii_map_data.xml,sha256=N3gb7XNR_QCotieXfsI_1SfoAWW1V5mUWDHANWUwf10,15493
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
@@ -18,7 +18,7 @@ odoo/addons/l10n_es_aeat_sii_oca/i18n/eu.po,sha256=UD8GyNHGWxF_X2bAnKgiitROyaE93
18
18
  odoo/addons/l10n_es_aeat_sii_oca/i18n/fr.po,sha256=4Zw2B61o-S2ip5gffeCIjE4Bd06rlE_OdBMBPy_EvJk,52088
19
19
  odoo/addons/l10n_es_aeat_sii_oca/i18n/gl.po,sha256=26gatbGmxc1cPLt8QGsPRVU_XJkZOI0ttBtQ0w2bLsw,52286
20
20
  odoo/addons/l10n_es_aeat_sii_oca/i18n/hr.po,sha256=Q0dL2bdSNg61G8AGyLN3PsZGy7avB7dU2wkZClXeXMw,52100
21
- odoo/addons/l10n_es_aeat_sii_oca/i18n/l10n_es_aeat_sii_oca.pot,sha256=kA08mecU_WXrpPO2y2rtVg3dNzwrx_hCFKXLcFsQdrA,51463
21
+ odoo/addons/l10n_es_aeat_sii_oca/i18n/l10n_es_aeat_sii_oca.pot,sha256=Wjnlxc2dJlcI49kPke7HcauJ4DYwUfXY9R5RbrTrUJ8,51231
22
22
  odoo/addons/l10n_es_aeat_sii_oca/i18n/nl.po,sha256=1TCAGe_NeUoecoEyqWbcRiqZWt3NRHB_hL0MJ__FIz4,51893
23
23
  odoo/addons/l10n_es_aeat_sii_oca/i18n/pl.po,sha256=7RaEis7eT6ZGQKWKo1_8j4Zu_9Ktx7xoqJtVgCASi1M,52138
24
24
  odoo/addons/l10n_es_aeat_sii_oca/i18n/pt.po,sha256=Pg2xWyskGvQbWRtXKybRBkwEdzFkncxNQOR6epS8PXo,52012
@@ -39,7 +39,7 @@ odoo/addons/l10n_es_aeat_sii_oca/models/product_product.py,sha256=NuQv2mrrikYb8s
39
39
  odoo/addons/l10n_es_aeat_sii_oca/models/queue_job.py,sha256=dD32OHqJOX8dom5lrXKE-U0OBDiIye4h4mBPBy56crk,428
40
40
  odoo/addons/l10n_es_aeat_sii_oca/models/res_company.py,sha256=QXeD0q86Macr0oSBYcFlUueRhn-HrzgJQKEdonrTWrQ,3477
41
41
  odoo/addons/l10n_es_aeat_sii_oca/models/res_partner.py,sha256=eVMUJXTF2EQz5uI_q2F3XzcqyuxONLzpEm-X_XqqGno,814
42
- odoo/addons/l10n_es_aeat_sii_oca/models/sii_mixin.py,sha256=SV5TrhGZf8cFZhUKprC2U2EtW-sg_rTQ2eV43pjrNT0,37257
42
+ odoo/addons/l10n_es_aeat_sii_oca/models/sii_mixin.py,sha256=F2rYG2poDl-VFVj0Jn8g3G2l0NUl_a7O9-uK5R4q4VE,37772
43
43
  odoo/addons/l10n_es_aeat_sii_oca/readme/CONFIGURE.rst,sha256=X8xbRpYekjBV6qeEqv9mLg2qk-oBWUxqFlbLuIK0-a8,1337
44
44
  odoo/addons/l10n_es_aeat_sii_oca/readme/CONTRIBUTORS.rst,sha256=4tLiNxhJPhKj-DDKGIjzubMNGE1hd992-FAaTT8zFa0,941
45
45
  odoo/addons/l10n_es_aeat_sii_oca/readme/DESCRIPTION.rst,sha256=GljVsASrEJHQDafzQM-YxTtI_BzTQUZJ0iaebJVNzB0,258
@@ -51,9 +51,9 @@ odoo/addons/l10n_es_aeat_sii_oca/security/ir.model.access.csv,sha256=LdymJhMCNF0
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=rx3Nre5BxiPFI507EgMtSIiRKmQmm8vE8BETq01Hdlc,19292
54
+ odoo/addons/l10n_es_aeat_sii_oca/static/description/index.html,sha256=iKflpNXo9medwhxRxiE_qlbCEx5qC3zF5SmoBh_zu74,19375
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=w4akpA7YrIG_G0kahpCNRqnINwv2F4s-TLoLa2vBTQo,19850
56
+ odoo/addons/l10n_es_aeat_sii_oca/tests/test_l10n_es_aeat_sii.py,sha256=GPRdmsA29qkAmXCvTxQtNP5IFBBb0QZwQaf7q0U9HUQ,19898
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
@@ -87,7 +87,7 @@ odoo/addons/l10n_es_aeat_sii_oca/wizards/account_move_reversal.py,sha256=IQq2Lfo
87
87
  odoo/addons/l10n_es_aeat_sii_oca/wizards/account_move_reversal_views.xml,sha256=MXnqlB1XexFE9JZPHeyx8i53NWGAgemauBcMr8vLJms,1171
88
88
  odoo/addons/l10n_es_aeat_sii_oca/wizards/account_move_send_sii.py,sha256=ogseg3nNz5pBrvcok-jkaQz0htQEIbTgR2K7jr5yUZg,1788
89
89
  odoo/addons/l10n_es_aeat_sii_oca/wizards/account_move_send_sii_views.xml,sha256=DCo1j5-mepYdHDUQFUv-jHiPn7hG1iGNWsZc2rIOvDI,1770
90
- odoo_addon_l10n_es_aeat_sii_oca-16.0.1.8.3.dist-info/METADATA,sha256=Ink8McYf-mccZvGLnMkDyXgjIO-nHHGGRZZbrQiBRWc,7631
91
- odoo_addon_l10n_es_aeat_sii_oca-16.0.1.8.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
92
- odoo_addon_l10n_es_aeat_sii_oca-16.0.1.8.3.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
93
- odoo_addon_l10n_es_aeat_sii_oca-16.0.1.8.3.dist-info/RECORD,,
90
+ odoo_addon_l10n_es_aeat_sii_oca-16.0.1.8.5.dist-info/METADATA,sha256=ZqH7Tbt17GX0XN1Uhm1WdCY8KKgp_GrHoR4jR97k9Do,7611
91
+ odoo_addon_l10n_es_aeat_sii_oca-16.0.1.8.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
92
+ odoo_addon_l10n_es_aeat_sii_oca-16.0.1.8.5.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
93
+ odoo_addon_l10n_es_aeat_sii_oca-16.0.1.8.5.dist-info/RECORD,,