odoo-addon-l10n-es-aeat-sii-oca 16.0.1.4.0.3__py3-none-any.whl → 16.0.1.5.0__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:892a248e016fcb925cab4971b027ed32319c8fe24d55fb351759797303fc79bb
10
+ !! source digest: sha256:0b3c3f0a1c738efe023f61aa80c36f047b761cfaf01d48875a582dd772e1ffac
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.4.0",
21
+ "version": "16.0.1.5.0",
22
22
  "category": "Accounting & Finance",
23
23
  "website": "https://github.com/OCA/l10n-spain",
24
24
  "author": "Acysos S.L.,"
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8" ?>
2
2
  <odoo>
3
3
  <record id="invoice_validate_sii" model="queue.job.channel">
4
- <field name="name">root.invoice_validate_sii</field>
4
+ <field name="name">invoice_validate_sii</field>
5
5
  <field name="parent_id" ref="queue_job.channel_root" />
6
6
  </record>
7
7
  <record id="job_function_confirm_one_document" model="queue.job.function">
@@ -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:892a248e016fcb925cab4971b027ed32319c8fe24d55fb351759797303fc79bb
370
+ !! source digest: sha256:0b3c3f0a1c738efe023f61aa80c36f047b761cfaf01d48875a582dd772e1ffac
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/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>
373
373
  <p>Módulo para la presentación inmediata del IVA
@@ -117,24 +117,13 @@ class TestL10nEsAeatSiiBase(TestL10nEsAeatModBase, TestL10nEsAeatCertificateBase
117
117
  return invoice
118
118
 
119
119
  @classmethod
120
- def setUpClass(cls):
121
- super().setUpClass()
122
- cls.maxDiff = None # needed for the dict comparison
123
- cls.partner = cls.env["res.partner"].create(
124
- {"name": "Test partner", "vat": "ESF35999705"}
125
- )
126
- cls.product = cls.env["product.product"].create(
127
- {"name": "Test product", "sii_exempt_cause": "E5"}
128
- )
129
- cls.account_expense = cls.env.ref(
130
- "l10n_es.%s_account_common_600" % cls.company.id
131
- )
132
- cls.invoice = cls.env["account.move"].create(
120
+ def _create_invoice(cls, move_type):
121
+ return cls.env["account.move"].create(
133
122
  {
134
123
  "company_id": cls.company.id,
135
124
  "partner_id": cls.partner.id,
136
125
  "invoice_date": "2018-02-01",
137
- "move_type": "out_invoice",
126
+ "move_type": move_type,
138
127
  "invoice_line_ids": [
139
128
  (
140
129
  0,
@@ -150,6 +139,21 @@ class TestL10nEsAeatSiiBase(TestL10nEsAeatModBase, TestL10nEsAeatCertificateBase
150
139
  ],
151
140
  }
152
141
  )
142
+
143
+ @classmethod
144
+ def setUpClass(cls):
145
+ super().setUpClass()
146
+ cls.maxDiff = None # needed for the dict comparison
147
+ cls.partner = cls.env["res.partner"].create(
148
+ {"name": "Test partner", "vat": "ESF35999705"}
149
+ )
150
+ cls.product = cls.env["product.product"].create(
151
+ {"name": "Test product", "sii_exempt_cause": "E5"}
152
+ )
153
+ cls.account_expense = cls.env.ref(
154
+ "l10n_es.%s_account_common_600" % cls.company.id
155
+ )
156
+ cls.invoice = cls._create_invoice("out_invoice")
153
157
  cls.company.write(
154
158
  {
155
159
  "sii_enabled": True,
@@ -326,33 +330,27 @@ class TestL10nEsAeatSii(TestL10nEsAeatSiiBase):
326
330
  "sii_description_method": "fixed",
327
331
  }
328
332
  )
329
- invoice_temp = self.invoice.copy()
330
- # FIXME: Can we auto-trigger the compute method?
331
- invoice_temp._compute_sii_description()
333
+ self.invoice._compute_sii_description()
332
334
  self.assertEqual(
333
- invoice_temp.sii_description,
335
+ self.invoice.sii_description,
334
336
  "Test customer header | Test description",
335
337
  )
336
- invoice_temp = self.invoice.copy(
337
- {"move_type": "in_invoice", "journal_id": self.journal_purchase.id}
338
- )
339
- invoice_temp._compute_sii_description()
338
+ invoice_temp = self._create_invoice("in_invoice")
340
339
  self.assertEqual(
341
340
  invoice_temp.sii_description,
342
341
  "Test supplier header | Test description",
343
342
  )
344
343
  company.sii_description = False
345
344
  company.sii_description_method = "manual"
346
- invoice_temp = self.invoice.copy()
347
- invoice_temp._compute_sii_description()
348
- self.assertEqual(invoice_temp.sii_description, "Test customer header")
349
- invoice_temp.sii_description = "Other thing"
350
- self.assertEqual(invoice_temp.sii_description, "Other thing")
345
+ self.invoice.sii_description = "/"
346
+ self.invoice._compute_sii_description()
347
+ self.assertEqual(self.invoice.sii_description, "Test customer header")
348
+ self.invoice.sii_description = "Other thing"
349
+ self.assertEqual(self.invoice.sii_description, "Other thing")
351
350
  company.sii_description_method = "auto"
352
- invoice_temp = self.invoice.copy()
353
- invoice_temp._compute_sii_description()
351
+ self.invoice._compute_sii_description()
354
352
  self.assertEqual(
355
- invoice_temp.sii_description,
353
+ self.invoice.sii_description,
356
354
  "Test customer header | Test line",
357
355
  )
358
356
 
@@ -389,9 +387,7 @@ class TestL10nEsAeatSii(TestL10nEsAeatSiiBase):
389
387
  self._activate_certificate()
390
388
  self.invoice.company_id.sii_test = True
391
389
  self._check_tax_agencies(self.invoice)
392
- in_invoice = self.invoice.copy(
393
- {"move_type": "in_invoice", "journal_id": self.journal_purchase.id}
394
- )
390
+ in_invoice = self._create_invoice("in_invoice")
395
391
  self._check_tax_agencies(in_invoice)
396
392
 
397
393
  def test_tax_agencies_production(self):
@@ -399,9 +395,7 @@ class TestL10nEsAeatSii(TestL10nEsAeatSiiBase):
399
395
  self._activate_certificate()
400
396
  self.invoice.company_id.sii_test = False
401
397
  self._check_tax_agencies(self.invoice)
402
- in_invoice = self.invoice.copy(
403
- {"move_type": "in_invoice", "journal_id": self.journal_purchase.id}
404
- )
398
+ in_invoice = self._create_invoice("in_invoice")
405
399
  self._check_tax_agencies(in_invoice)
406
400
 
407
401
  def test_refund_sii_refund_type(self):
@@ -462,13 +456,8 @@ class TestL10nEsAeatSii(TestL10nEsAeatSiiBase):
462
456
  with self.assertRaises(exceptions.UserError):
463
457
  self.invoice.write({"thirdparty_number": "CUSTOM"})
464
458
  # in_invoice
465
- in_invoice = self.invoice.copy(
466
- {
467
- "move_type": "in_invoice",
468
- "journal_id": self.journal_purchase.id,
469
- "ref": "REF",
470
- }
471
- )
459
+ in_invoice = self._create_invoice("in_invoice")
460
+ in_invoice.ref = "REF"
472
461
  in_invoice.sii_state = "sent"
473
462
  partner = self.partner.copy()
474
463
  with self.assertRaises(exceptions.UserError):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-l10n-es-aeat-sii-oca
3
- Version: 16.0.1.4.0.3
3
+ Version: 16.0.1.5.0
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)
@@ -29,7 +29,7 @@ Suministro Inmediato de Información en el IVA
29
29
  !! This file is generated by oca-gen-addon-readme !!
30
30
  !! changes will be overwritten. !!
31
31
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
32
- !! source digest: sha256:892a248e016fcb925cab4971b027ed32319c8fe24d55fb351759797303fc79bb
32
+ !! source digest: sha256:0b3c3f0a1c738efe023f61aa80c36f047b761cfaf01d48875a582dd772e1ffac
33
33
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
34
34
 
35
35
  .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
@@ -1,10 +1,10 @@
1
- odoo/addons/l10n_es_aeat_sii_oca/README.rst,sha256=u-w1iOlVr7GLZ91c32hMEGHfqIDpYfG8MKboXdiHZYg,6715
1
+ odoo/addons/l10n_es_aeat_sii_oca/README.rst,sha256=AbwR81FKixGcKmpgCsTlrJ39FVJ7GJxEInQ0VJyHlf0,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=FsNbqQxCiPL5YiKmqSmh37nKtNlkXUO4QE-bM4uErnw,2541
3
+ odoo/addons/l10n_es_aeat_sii_oca/__manifest__.py,sha256=KOanIFS3dP5WkU4OdYyPwKSqcSzJiPprG9U0cmSlY1Y,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
7
- odoo/addons/l10n_es_aeat_sii_oca/data/aeat_sii_queue_job.xml,sha256=pD6yLCWLxAF6BsGEO3u00hZwmsqaipEMTdNwTb3O4pg,817
7
+ odoo/addons/l10n_es_aeat_sii_oca/data/aeat_sii_queue_job.xml,sha256=F3aLrDGnSPaHQ4qpiaiRpvmr8UL1rdxolG1k85IOLR0,812
8
8
  odoo/addons/l10n_es_aeat_sii_oca/data/aeat_sii_tax_agency_data.xml,sha256=qMCMe9Z4UofpzsoLL9oJuOrE9Aw6C2oXhmizljvNCi4,12044
9
9
  odoo/addons/l10n_es_aeat_sii_oca/i18n/bg.po,sha256=qnBOOl8JL1Cn0J5fBGr5-9ja65WhNFr5brZbnZYlb8Q,52100
10
10
  odoo/addons/l10n_es_aeat_sii_oca/i18n/ca.po,sha256=Ap9jX2Nkpz9o5wOwKT6GnM1f45M6JJNqYAsk-QpWTDY,63379
@@ -50,9 +50,9 @@ odoo/addons/l10n_es_aeat_sii_oca/security/ir.model.access.csv,sha256=LdymJhMCNF0
50
50
  odoo/addons/l10n_es_aeat_sii_oca/static/description/SII_1.jpg,sha256=8w4L5ayayAWEv6Evbixr6rVFCfOkY0yA44cUu-5UQlg,42849
51
51
  odoo/addons/l10n_es_aeat_sii_oca/static/description/icon.png,sha256=OUuKU4891uuwmWQMF4fKyKvCqWuQ3yc4Wg-EfL-x_SM,6100
52
52
  odoo/addons/l10n_es_aeat_sii_oca/static/description/icon.svg,sha256=Q9kGyveMGAwEpGR8y8YpoAJN7dcnxtDKRl7T19LUKg8,5244
53
- odoo/addons/l10n_es_aeat_sii_oca/static/description/index.html,sha256=tFHe6ac_IwH4nh8P45TlEKFiISNdJLehxMTMRPTQMHo,19331
53
+ odoo/addons/l10n_es_aeat_sii_oca/static/description/index.html,sha256=c08UgkxJnbh5V9QJoqIYg5HdGSdoANHZkltS8hsNpZg,19331
54
54
  odoo/addons/l10n_es_aeat_sii_oca/tests/__init__.py,sha256=BCroN6OlmUqvJ8CticoWzBKkWZ7GmC7GOgGILiMuqKA,36
55
- odoo/addons/l10n_es_aeat_sii_oca/tests/test_l10n_es_aeat_sii.py,sha256=ZRRpi6d_LujdHB5L2X0FifoXxfYflo0-wP-VktzoETw,19169
55
+ odoo/addons/l10n_es_aeat_sii_oca/tests/test_l10n_es_aeat_sii.py,sha256=o9RbfH6ndTp5GMzCnmig80CQ-JdLr-4QC2phR0Tl9fM,18741
56
56
  odoo/addons/l10n_es_aeat_sii_oca/tests/json/sii_in_invoice_p_iva0_ns_p_iva10_bc_dict.json,sha256=aNTCIW9A0aPnUX9Qd5kR00EbMaVswzYJFGis0QvHQsI,737
57
57
  odoo/addons/l10n_es_aeat_sii_oca/tests/json/sii_in_invoice_p_iva10_bc_dict.json,sha256=PMiptUsqc9lvzEQaXtHDWRciGleYwa9OJnqxSSGrC0Y,701
58
58
  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
@@ -86,7 +86,7 @@ odoo/addons/l10n_es_aeat_sii_oca/wizards/account_move_reversal.py,sha256=MePCDHH
86
86
  odoo/addons/l10n_es_aeat_sii_oca/wizards/account_move_reversal_views.xml,sha256=MXnqlB1XexFE9JZPHeyx8i53NWGAgemauBcMr8vLJms,1171
87
87
  odoo/addons/l10n_es_aeat_sii_oca/wizards/account_move_send_sii.py,sha256=ogseg3nNz5pBrvcok-jkaQz0htQEIbTgR2K7jr5yUZg,1788
88
88
  odoo/addons/l10n_es_aeat_sii_oca/wizards/account_move_send_sii_views.xml,sha256=DCo1j5-mepYdHDUQFUv-jHiPn7hG1iGNWsZc2rIOvDI,1770
89
- odoo_addon_l10n_es_aeat_sii_oca-16.0.1.4.0.3.dist-info/METADATA,sha256=cF5fVeTNs91bnQ9XnuTo4REsvypJ_vhkjDpnzz-juJo,7633
90
- odoo_addon_l10n_es_aeat_sii_oca-16.0.1.4.0.3.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
91
- odoo_addon_l10n_es_aeat_sii_oca-16.0.1.4.0.3.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
92
- odoo_addon_l10n_es_aeat_sii_oca-16.0.1.4.0.3.dist-info/RECORD,,
89
+ odoo_addon_l10n_es_aeat_sii_oca-16.0.1.5.0.dist-info/METADATA,sha256=Vg5aVL2FibnX1PJxEHprXhKeIUWgFm7T6FnizP8Phf0,7631
90
+ odoo_addon_l10n_es_aeat_sii_oca-16.0.1.5.0.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
91
+ odoo_addon_l10n_es_aeat_sii_oca-16.0.1.5.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
92
+ odoo_addon_l10n_es_aeat_sii_oca-16.0.1.5.0.dist-info/RECORD,,