odoo14-addon-l10n-it-fatturapa 14.0.2.3.6.dev3__py3-none-any.whl → 14.0.2.4.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.
@@ -1,3 +1,7 @@
1
+ .. image:: https://odoo-community.org/readme-banner-image
2
+ :target: https://odoo-community.org/get-involved?utm_source=readme
3
+ :alt: Odoo Community Association
4
+
1
5
  ================================
2
6
  ITA - Fattura elettronica - Base
3
7
  ================================
@@ -7,13 +11,13 @@ ITA - Fattura elettronica - Base
7
11
  !! This file is generated by oca-gen-addon-readme !!
8
12
  !! changes will be overwritten. !!
9
13
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:fb1762fcb11c5002e09387d8d0b5d0863e870878ea7df20525d8014bef281ae8
14
+ !! source digest: sha256:89b69c839fc089bf5e3fe2ad8b71b4c7158dcad8ac5dea8c63f270c47ed58b11
11
15
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
16
 
13
17
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14
18
  :target: https://odoo-community.org/page/development-status
15
19
  :alt: Beta
16
- .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
20
+ .. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
17
21
  :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18
22
  :alt: License: AGPL-3
19
23
  .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github
@@ -30,19 +34,35 @@ ITA - Fattura elettronica - Base
30
34
 
31
35
  **Italiano**
32
36
 
33
- Modulo base per gestire le fatture elettroniche.
37
+ Modulo base per la gestione delle fatture elettroniche.
38
+ Durante la creazione di una fattura cliente, viene eseguito un controllo sul modo di pagamento.
39
+ Se il modo di pagamento è RiBa e una banca ricevente è impostata, viene mostrato un messaggio di errore:
40
+ "Non è consentito impostare una banca ricevente per le fatture cliente con il modo di pagamento RiBa.
41
+ Rimuovere la banca ricevente o scegliere un metodo di pagamento diverso."
34
42
 
43
+ La seguente issue su GitHub spiega la motivazione del controllo riportato:
44
+ https://github.com/OCA/l10n-italy/issues/4814
45
+
46
+ Per ulteriori informazioni, consultare il sito ufficiale:
35
47
  https://www.fatturapa.gov.it
36
48
 
37
- Consultare anche i file README di l10n_it_fatturapa_out e l10n_it_fatturapa_in.
49
+ Si consiglia inoltre di consultare i file README dei moduli l10n_it_fatturapa_out e l10n_it_fatturapa_in.
38
50
 
39
51
  **English**
40
52
 
41
- Base module to handle Electronic Invoices.
53
+ Base module for managing electronic invoices.
54
+ When creating a customer invoice, a validation is performed on the payment method.
55
+ If the payment method is RiBa and a recipient bank is set, an error message is displayed:
56
+ "It is not allowed to set a recipient bank for customer invoices with the RiBa payment method.
57
+ Please remove the recipient bank or choose a different payment method."
58
+
59
+ The following GitHub issue explains the reason for this validation:
60
+ https://github.com/OCA/l10n-italy/issues/4814
42
61
 
62
+ For more information, visit the official website:
43
63
  https://www.fatturapa.gov.it
44
64
 
45
- See also l10n_it_fatturapa_out and l10n_it_fatturapa_in README files.
65
+ It is also recommended to review the README files of the l10n_it_fatturapa_out and l10n_it_fatturapa_in modules.
46
66
 
47
67
  **Table of contents**
48
68
 
@@ -3,3 +3,4 @@
3
3
 
4
4
  from . import models
5
5
  from . import controllers
6
+ from . import tests
@@ -6,7 +6,7 @@
6
6
 
7
7
  {
8
8
  "name": "ITA - Fattura elettronica - Base",
9
- "version": "14.0.2.3.5",
9
+ "version": "14.0.2.4.0",
10
10
  "category": "Localization/Italy",
11
11
  "summary": "Fatture elettroniche",
12
12
  "author": "Davide Corio, Agile Business Group, Innoviu, "
@@ -7,15 +7,15 @@ msgstr ""
7
7
  "Project-Id-Version: Odoo Server 14.0\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
9
  "POT-Creation-Date: 2021-04-09 12:26+0000\n"
10
- "PO-Revision-Date: 2025-02-28 02:06+0000\n"
11
- "Last-Translator: Nicola Clemente <nickdellaclemodoo@gmail.com>\n"
10
+ "PO-Revision-Date: 2025-03-18 16:06+0000\n"
11
+ "Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
12
12
  "Language-Team: \n"
13
13
  "Language: it\n"
14
14
  "MIME-Version: 1.0\n"
15
15
  "Content-Type: text/plain; charset=UTF-8\n"
16
16
  "Content-Transfer-Encoding: \n"
17
17
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
18
- "X-Generator: Weblate 5.6.2\n"
18
+ "X-Generator: Weblate 5.10.2\n"
19
19
 
20
20
  #. module: l10n_it_fatturapa
21
21
  #: model_terms:ir.ui.view,arch_db:l10n_it_fatturapa.view_account_config_settings
@@ -1670,7 +1670,7 @@ msgstr "Tipo"
1670
1670
  #. module: l10n_it_fatturapa
1671
1671
  #: model:ir.model.fields,help:l10n_it_fatturapa.field_fatturapa_attachment__activity_exception_decoration
1672
1672
  msgid "Type of the exception activity on record."
1673
- msgstr "Tipo di attività di eccezione registrata."
1673
+ msgstr "Tipo di attività eccezione sul record."
1674
1674
 
1675
1675
  #. module: l10n_it_fatturapa
1676
1676
  #: code:addons/l10n_it_fatturapa/models/ir_attachment.py:0
@@ -778,6 +778,14 @@ msgstr ""
778
778
  msgid "Is public document"
779
779
  msgstr ""
780
780
 
781
+ #. module: l10n_it_fatturapa
782
+ #: code:addons/l10n_it_fatturapa/models/account.py:0
783
+ #, python-format
784
+ msgid ""
785
+ "It is not possible to set a partner bank with RIBA payment mode for customer"
786
+ " invoices. Please remove the partner bank or change the payment mode."
787
+ msgstr ""
788
+
781
789
  #. module: l10n_it_fatturapa
782
790
  #: code:addons/l10n_it_fatturapa/models/partner.py:0
783
791
  #, python-format
@@ -1,6 +1,7 @@
1
1
  # Copyright 2014 Davide Corio <davide.corio@abstract.it>
2
2
 
3
- from odoo import api, fields, models
3
+ from odoo import _, api, fields, models
4
+ from odoo.exceptions import ValidationError
4
5
 
5
6
  RELATED_DOCUMENT_TYPES = {
6
7
  "order": "DatiOrdineAcquisto",
@@ -459,3 +460,25 @@ class AccountInvoice(models.Model):
459
460
  "res_id": self.id,
460
461
  "target": "current",
461
462
  }
463
+
464
+ @api.constrains("move_type", "invoice_payment_term_id", "partner_bank_id")
465
+ def _check_riba_partner_bank(self):
466
+ """
467
+ Ensure that for customer invoices with RiBa (MP12) payment mode,
468
+ no recipient bank is set. This avoids misleading the customer,
469
+ as the recipient bank for RiBa is decided at a later stage.
470
+ """
471
+ for move in self:
472
+ if move.move_type == "out_invoice" and move.invoice_payment_term_id:
473
+ # MP12 refers to RIBA payment mode
474
+ if (
475
+ move.invoice_payment_term_id.fatturapa_pm_id.code == "MP12"
476
+ and move.partner_bank_id
477
+ ):
478
+ raise ValidationError(
479
+ _(
480
+ "It is not possible to set a partner "
481
+ "bank with RIBA payment mode for customer invoices."
482
+ " Please remove the partner bank or change the payment mode."
483
+ )
484
+ )
@@ -1,15 +1,31 @@
1
1
  **Italiano**
2
2
 
3
- Modulo base per gestire le fatture elettroniche.
3
+ Modulo base per la gestione delle fatture elettroniche.
4
+ Durante la creazione di una fattura cliente, viene eseguito un controllo sul modo di pagamento.
5
+ Se il modo di pagamento è RiBa e una banca ricevente è impostata, viene mostrato un messaggio di errore:
6
+ "Non è consentito impostare una banca ricevente per le fatture cliente con il modo di pagamento RiBa.
7
+ Rimuovere la banca ricevente o scegliere un metodo di pagamento diverso."
4
8
 
9
+ La seguente issue su GitHub spiega la motivazione del controllo riportato:
10
+ https://github.com/OCA/l10n-italy/issues/4814
11
+
12
+ Per ulteriori informazioni, consultare il sito ufficiale:
5
13
  https://www.fatturapa.gov.it
6
14
 
7
- Consultare anche i file README di l10n_it_fatturapa_out e l10n_it_fatturapa_in.
15
+ Si consiglia inoltre di consultare i file README dei moduli l10n_it_fatturapa_out e l10n_it_fatturapa_in.
8
16
 
9
17
  **English**
10
18
 
11
- Base module to handle Electronic Invoices.
19
+ Base module for managing electronic invoices.
20
+ When creating a customer invoice, a validation is performed on the payment method.
21
+ If the payment method is RiBa and a recipient bank is set, an error message is displayed:
22
+ "It is not allowed to set a recipient bank for customer invoices with the RiBa payment method.
23
+ Please remove the recipient bank or choose a different payment method."
24
+
25
+ The following GitHub issue explains the reason for this validation:
26
+ https://github.com/OCA/l10n-italy/issues/4814
12
27
 
28
+ For more information, visit the official website:
13
29
  https://www.fatturapa.gov.it
14
30
 
15
- See also l10n_it_fatturapa_out and l10n_it_fatturapa_in README files.
31
+ It is also recommended to review the README files of the l10n_it_fatturapa_out and l10n_it_fatturapa_in modules.
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
5
  <meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6
- <title>ITA - Fattura elettronica - Base</title>
6
+ <title>README.rst</title>
7
7
  <style type="text/css">
8
8
 
9
9
  /*
@@ -360,24 +360,43 @@ ul.auto-toc {
360
360
  </style>
361
361
  </head>
362
362
  <body>
363
- <div class="document" id="ita-fattura-elettronica-base">
364
- <h1 class="title">ITA - Fattura elettronica - Base</h1>
363
+ <div class="document">
365
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="ita-fattura-elettronica-base">
370
+ <h1>ITA - Fattura elettronica - Base</h1>
366
371
  <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367
372
  !! This file is generated by oca-gen-addon-readme !!
368
373
  !! changes will be overwritten. !!
369
374
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370
- !! source digest: sha256:fb1762fcb11c5002e09387d8d0b5d0863e870878ea7df20525d8014bef281ae8
375
+ !! source digest: sha256:89b69c839fc089bf5e3fe2ad8b71b4c7158dcad8ac5dea8c63f270c47ed58b11
371
376
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372
- <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/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-italy/tree/14.0/l10n_it_fatturapa"><img alt="OCA/l10n-italy" src="https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-italy-14-0/l10n-italy-14-0-l10n_it_fatturapa"><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-italy&amp;target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
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-italy/tree/14.0/l10n_it_fatturapa"><img alt="OCA/l10n-italy" src="https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-italy-14-0/l10n-italy-14-0-l10n_it_fatturapa"><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-italy&amp;target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373
378
  <p><strong>Italiano</strong></p>
374
- <p>Modulo base per gestire le fatture elettroniche.</p>
375
- <p><a class="reference external" href="https://www.fatturapa.gov.it">https://www.fatturapa.gov.it</a></p>
376
- <p>Consultare anche i file README di l10n_it_fatturapa_out e l10n_it_fatturapa_in.</p>
379
+ <p>Modulo base per la gestione delle fatture elettroniche.
380
+ Durante la creazione di una fattura cliente, viene eseguito un controllo sul modo di pagamento.
381
+ Se il modo di pagamento è RiBa e una banca ricevente è impostata, viene mostrato un messaggio di errore:
382
+ “Non è consentito impostare una banca ricevente per le fatture cliente con il modo di pagamento RiBa.
383
+ Rimuovere la banca ricevente o scegliere un metodo di pagamento diverso.”</p>
384
+ <p>La seguente issue su GitHub spiega la motivazione del controllo riportato:
385
+ <a class="reference external" href="https://github.com/OCA/l10n-italy/issues/4814">https://github.com/OCA/l10n-italy/issues/4814</a></p>
386
+ <p>Per ulteriori informazioni, consultare il sito ufficiale:
387
+ <a class="reference external" href="https://www.fatturapa.gov.it">https://www.fatturapa.gov.it</a></p>
388
+ <p>Si consiglia inoltre di consultare i file README dei moduli l10n_it_fatturapa_out e l10n_it_fatturapa_in.</p>
377
389
  <p><strong>English</strong></p>
378
- <p>Base module to handle Electronic Invoices.</p>
379
- <p><a class="reference external" href="https://www.fatturapa.gov.it">https://www.fatturapa.gov.it</a></p>
380
- <p>See also l10n_it_fatturapa_out and l10n_it_fatturapa_in README files.</p>
390
+ <p>Base module for managing electronic invoices.
391
+ When creating a customer invoice, a validation is performed on the payment method.
392
+ If the payment method is RiBa and a recipient bank is set, an error message is displayed:
393
+ “It is not allowed to set a recipient bank for customer invoices with the RiBa payment method.
394
+ Please remove the recipient bank or choose a different payment method.”</p>
395
+ <p>The following GitHub issue explains the reason for this validation:
396
+ <a class="reference external" href="https://github.com/OCA/l10n-italy/issues/4814">https://github.com/OCA/l10n-italy/issues/4814</a></p>
397
+ <p>For more information, visit the official website:
398
+ <a class="reference external" href="https://www.fatturapa.gov.it">https://www.fatturapa.gov.it</a></p>
399
+ <p>It is also recommended to review the README files of the l10n_it_fatturapa_out and l10n_it_fatturapa_in modules.</p>
381
400
  <p><strong>Table of contents</strong></p>
382
401
  <div class="contents local topic" id="contents">
383
402
  <ul class="simple">
@@ -394,7 +413,7 @@ ul.auto-toc {
394
413
  </ul>
395
414
  </div>
396
415
  <div class="section" id="installation">
397
- <h1><a class="toc-backref" href="#toc-entry-1">Installation</a></h1>
416
+ <h2><a class="toc-backref" href="#toc-entry-1">Installation</a></h2>
398
417
  <p><strong>Italiano</strong></p>
399
418
  <p>Se non viene usato Openupgrade per effettuare l’aggiornamento del database,
400
419
  le fatture in stato bozza o annullate non vengono migrate in modo corretto.
@@ -417,7 +436,7 @@ before proceeding.</p>
417
436
  </ol>
418
437
  </div>
419
438
  <div class="section" id="configuration">
420
- <h1><a class="toc-backref" href="#toc-entry-2">Configuration</a></h1>
439
+ <h2><a class="toc-backref" href="#toc-entry-2">Configuration</a></h2>
421
440
  <p><strong>Italiano</strong></p>
422
441
  <ul class="simple">
423
442
  <li>Nella scheda “Fattura elettronica” del partner, selezionare “Abilitare fatturazione
@@ -453,14 +472,14 @@ Settings → Electronic Invoices</em>, where needed.</li>
453
472
  </ul>
454
473
  </div>
455
474
  <div class="section" id="usage">
456
- <h1><a class="toc-backref" href="#toc-entry-3">Usage</a></h1>
475
+ <h2><a class="toc-backref" href="#toc-entry-3">Usage</a></h2>
457
476
  <p><strong>Italiano</strong></p>
458
477
  <p>Il modulo NON È compatibile con il modulo standard l10n_it_edi.</p>
459
478
  <p><strong>English</strong></p>
460
479
  <p>The module is NOT compatible with the standard l10n_it_edi module.</p>
461
480
  </div>
462
481
  <div class="section" id="bug-tracker">
463
- <h1><a class="toc-backref" href="#toc-entry-4">Bug Tracker</a></h1>
482
+ <h2><a class="toc-backref" href="#toc-entry-4">Bug Tracker</a></h2>
464
483
  <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-italy/issues">GitHub Issues</a>.
465
484
  In case of trouble, please check there if your issue has already been reported.
466
485
  If you spotted it first, help us to smash it by providing a detailed and welcomed
@@ -468,9 +487,9 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
468
487
  <p>Do not contact contributors directly about support or help with technical issues.</p>
469
488
  </div>
470
489
  <div class="section" id="credits">
471
- <h1><a class="toc-backref" href="#toc-entry-5">Credits</a></h1>
490
+ <h2><a class="toc-backref" href="#toc-entry-5">Credits</a></h2>
472
491
  <div class="section" id="authors">
473
- <h2><a class="toc-backref" href="#toc-entry-6">Authors</a></h2>
492
+ <h3><a class="toc-backref" href="#toc-entry-6">Authors</a></h3>
474
493
  <ul class="simple">
475
494
  <li>Davide Corio</li>
476
495
  <li>Agile Business Group</li>
@@ -479,7 +498,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
479
498
  </ul>
480
499
  </div>
481
500
  <div class="section" id="contributors">
482
- <h2><a class="toc-backref" href="#toc-entry-7">Contributors</a></h2>
501
+ <h3><a class="toc-backref" href="#toc-entry-7">Contributors</a></h3>
483
502
  <ul>
484
503
  <li><p class="first">Davide Corio</p>
485
504
  </li>
@@ -517,7 +536,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
517
536
  </ul>
518
537
  </div>
519
538
  <div class="section" id="maintainers">
520
- <h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
539
+ <h3><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h3>
521
540
  <p>This module is maintained by the OCA.</p>
522
541
  <a class="reference external image-reference" href="https://odoo-community.org">
523
542
  <img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -530,5 +549,6 @@ promote its widespread use.</p>
530
549
  </div>
531
550
  </div>
532
551
  </div>
552
+ </div>
533
553
  </body>
534
554
  </html>
@@ -0,0 +1 @@
1
+ from . import test_fatturapa
@@ -0,0 +1,111 @@
1
+ from odoo.exceptions import ValidationError
2
+ from odoo.tests.common import SavepointCase
3
+
4
+
5
+ class TestFatturapa(SavepointCase):
6
+ @classmethod
7
+ def setUpClass(cls):
8
+ super(TestFatturapa, cls).setUpClass()
9
+ cls.invoice_model = cls.env["account.move"]
10
+ cls.partner = cls.env.ref("base.res_partner_2")
11
+ cls.product = cls.env.ref("product.product_product_4")
12
+ cls.fatturapa_payment_method = cls.env.ref(
13
+ "l10n_it_fiscal_payment_term.fatturapa_mp12"
14
+ )
15
+ cls.payment_term = cls.env["account.payment.term"].create(
16
+ {
17
+ "name": "RiBa",
18
+ "line_ids": [
19
+ (
20
+ 0,
21
+ 0,
22
+ {
23
+ "value": "balance",
24
+ "value_amount": 0.0,
25
+ "sequence": 10,
26
+ "days": 0,
27
+ "option": "after_invoice_month",
28
+ },
29
+ ),
30
+ ],
31
+ "fatturapa_pm_id": cls.fatturapa_payment_method.id,
32
+ }
33
+ )
34
+ cls.bank = cls.env["res.bank"].create(
35
+ {
36
+ "name": "Bank",
37
+ }
38
+ )
39
+ cls.partner_bank = cls.env["res.partner.bank"].create(
40
+ {
41
+ "acc_number": "IT49 A000 0123 4567 0000 0000 0000",
42
+ "sanitized_acc_number": "IT49A000012345670000000000000000",
43
+ "partner_id": cls.partner.id,
44
+ "bank_id": cls.bank.id,
45
+ }
46
+ )
47
+
48
+ def test_create_invoice_with_riba_validation_error(self):
49
+ # Create an invoice with partner bank and RiBa payment mode
50
+ with self.assertRaises(ValidationError) as ve:
51
+ self.invoice_model.create(
52
+ {
53
+ "move_type": "out_invoice",
54
+ "partner_bank_id": self.partner_bank.id,
55
+ "invoice_payment_term_id": self.payment_term.id,
56
+ "partner_id": self.partner.id,
57
+ "invoice_line_ids": [
58
+ (
59
+ 0,
60
+ 0,
61
+ {
62
+ "product_id": self.product.id,
63
+ "quantity": 1,
64
+ "price_unit": 100,
65
+ },
66
+ )
67
+ ],
68
+ }
69
+ )
70
+ exc_message = ve.exception.args[0]
71
+ self.assertEqual(
72
+ exc_message,
73
+ "It is not possible to set a partner "
74
+ "bank with RIBA payment mode for customer invoices."
75
+ " Please remove the partner bank or change the payment mode.",
76
+ )
77
+
78
+ def test_write_invoice_with_riba_validation_error(self):
79
+ # Create an invoice withut Riba ValidationError
80
+ invoice = self.invoice_model.create(
81
+ {
82
+ "move_type": "out_invoice",
83
+ "invoice_payment_term_id": self.payment_term.id,
84
+ "partner_id": self.partner.id,
85
+ "invoice_line_ids": [
86
+ (
87
+ 0,
88
+ 0,
89
+ {
90
+ "product_id": self.product.id,
91
+ "quantity": 1,
92
+ "price_unit": 100,
93
+ },
94
+ )
95
+ ],
96
+ }
97
+ )
98
+ # Add a partner bank to check if the ValidationError is raised
99
+ with self.assertRaises(ValidationError) as ve:
100
+ invoice.write(
101
+ {
102
+ "partner_bank_id": self.partner_bank.id,
103
+ }
104
+ )
105
+ exc_message = ve.exception.args[0]
106
+ self.assertEqual(
107
+ exc_message,
108
+ "It is not possible to set a partner "
109
+ "bank with RIBA payment mode for customer invoices."
110
+ " Please remove the partner bank or change the payment mode.",
111
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo14-addon-l10n_it_fatturapa
3
- Version: 14.0.2.3.6.dev3
3
+ Version: 14.0.2.4.0
4
4
  Summary: Fatture elettroniche
5
5
  Home-page: https://github.com/OCA/l10n-italy
6
6
  Author: Davide Corio, Agile Business Group, Innoviu, Odoo Italia Network, Odoo Community Association (OCA)
@@ -23,6 +23,10 @@ Requires-Dist: odoo14-addon-l10n-it-vat-payability
23
23
  Requires-Dist: odoo14-addon-partner-firstname
24
24
  Requires-Dist: odoo<14.1dev,>=14.0a
25
25
 
26
+ .. image:: https://odoo-community.org/readme-banner-image
27
+ :target: https://odoo-community.org/get-involved?utm_source=readme
28
+ :alt: Odoo Community Association
29
+
26
30
  ================================
27
31
  ITA - Fattura elettronica - Base
28
32
  ================================
@@ -32,13 +36,13 @@ ITA - Fattura elettronica - Base
32
36
  !! This file is generated by oca-gen-addon-readme !!
33
37
  !! changes will be overwritten. !!
34
38
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
35
- !! source digest: sha256:fb1762fcb11c5002e09387d8d0b5d0863e870878ea7df20525d8014bef281ae8
39
+ !! source digest: sha256:89b69c839fc089bf5e3fe2ad8b71b4c7158dcad8ac5dea8c63f270c47ed58b11
36
40
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
37
41
 
38
42
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
39
43
  :target: https://odoo-community.org/page/development-status
40
44
  :alt: Beta
41
- .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
45
+ .. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
42
46
  :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
43
47
  :alt: License: AGPL-3
44
48
  .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github
@@ -55,19 +59,35 @@ ITA - Fattura elettronica - Base
55
59
 
56
60
  **Italiano**
57
61
 
58
- Modulo base per gestire le fatture elettroniche.
62
+ Modulo base per la gestione delle fatture elettroniche.
63
+ Durante la creazione di una fattura cliente, viene eseguito un controllo sul modo di pagamento.
64
+ Se il modo di pagamento è RiBa e una banca ricevente è impostata, viene mostrato un messaggio di errore:
65
+ "Non è consentito impostare una banca ricevente per le fatture cliente con il modo di pagamento RiBa.
66
+ Rimuovere la banca ricevente o scegliere un metodo di pagamento diverso."
59
67
 
68
+ La seguente issue su GitHub spiega la motivazione del controllo riportato:
69
+ https://github.com/OCA/l10n-italy/issues/4814
70
+
71
+ Per ulteriori informazioni, consultare il sito ufficiale:
60
72
  https://www.fatturapa.gov.it
61
73
 
62
- Consultare anche i file README di l10n_it_fatturapa_out e l10n_it_fatturapa_in.
74
+ Si consiglia inoltre di consultare i file README dei moduli l10n_it_fatturapa_out e l10n_it_fatturapa_in.
63
75
 
64
76
  **English**
65
77
 
66
- Base module to handle Electronic Invoices.
78
+ Base module for managing electronic invoices.
79
+ When creating a customer invoice, a validation is performed on the payment method.
80
+ If the payment method is RiBa and a recipient bank is set, an error message is displayed:
81
+ "It is not allowed to set a recipient bank for customer invoices with the RiBa payment method.
82
+ Please remove the recipient bank or choose a different payment method."
83
+
84
+ The following GitHub issue explains the reason for this validation:
85
+ https://github.com/OCA/l10n-italy/issues/4814
67
86
 
87
+ For more information, visit the official website:
68
88
  https://www.fatturapa.gov.it
69
89
 
70
- See also l10n_it_fatturapa_out and l10n_it_fatturapa_in README files.
90
+ It is also recommended to review the README files of the l10n_it_fatturapa_out and l10n_it_fatturapa_in modules.
71
91
 
72
92
  **Table of contents**
73
93
 
@@ -1,6 +1,6 @@
1
- odoo/addons/l10n_it_fatturapa/README.rst,sha256=OUE2Af04uXuCYC-4yQORF4ajhs31fIJtWm7NfQjVtrs,6439
2
- odoo/addons/l10n_it_fatturapa/__init__.py,sha256=_8dODvLq10agxGoV4n97NCtiN_5DFrKHU5Cw7QJuQa8,169
3
- odoo/addons/l10n_it_fatturapa/__manifest__.py,sha256=RsdOrMLRdkkIgSmY-eGr-bzk8zOIB9PzRYmKrEz6YlY,1536
1
+ odoo/addons/l10n_it_fatturapa/README.rst,sha256=JC712v9SxLno_QpHO8KOMuaeMzgfR9T3tVmPnDq1Vpc,7750
2
+ odoo/addons/l10n_it_fatturapa/__init__.py,sha256=JqPOKg8zgu0SqaJxkneZnfOtC7peDk-XLfdwXCkpoHY,189
3
+ odoo/addons/l10n_it_fatturapa/__manifest__.py,sha256=y-BcYPUdEnh2dNqWFVWEBbhtsTAvps9dhmm0uMREajA,1536
4
4
  odoo/addons/l10n_it_fatturapa/controllers/__init__.py,sha256=4KFqEP2QHFbPN66eQJMdGsmNz2v7ywWv_FR1pW_kkLk,19
5
5
  odoo/addons/l10n_it_fatturapa/controllers/main.py,sha256=x0Dkf93MpRwSEg92FqwZJnRDY-54HBCmq8ki84i65UI,797
6
6
  odoo/addons/l10n_it_fatturapa/data/FoglioStileAssoSoftware.xsl,sha256=Szw2Z-f2ZTPM10Mqzlum9dJlwoFLo9yKL6hA6pQs3Qg,114546
@@ -47,10 +47,10 @@ odoo/addons/l10n_it_fatturapa/i18n/hr.po,sha256=IzzB-KpFu9B-oiFPceR1Wo1gWnE2uxiY
47
47
  odoo/addons/l10n_it_fatturapa/i18n/hr_HR.po,sha256=YkoFD_p7DnDCgS3Hy_T_Ts8hG8hUeIMy9hzA2oTjagg,79864
48
48
  odoo/addons/l10n_it_fatturapa/i18n/hu.po,sha256=2Ze4-ip4L_c949-t7znVxF45ZeX3hlwBt75jYCr88ko,79834
49
49
  odoo/addons/l10n_it_fatturapa/i18n/id.po,sha256=gt27HgXTNMAupxIqh3ZXCX28CLAn2BQ_180dL1eBS2o,79776
50
- odoo/addons/l10n_it_fatturapa/i18n/it.po,sha256=sXBSNbpm2i6kVHW4xeme0e5sMf7uPSbmqntx8QjlcCw,87911
50
+ odoo/addons/l10n_it_fatturapa/i18n/it.po,sha256=fcsgjLM83Dr4hlkPQyREPZaaPRNzzB-F-SP1K8H422o,87900
51
51
  odoo/addons/l10n_it_fatturapa/i18n/ja.po,sha256=bPaxGEMWUWr0_TJ3a0ZFNodUghnfx_4yNAKIfgnntD4,79784
52
52
  odoo/addons/l10n_it_fatturapa/i18n/ko.po,sha256=HzaaprGJU_iN4_FoxNrzqRbG5rrA0LDYzF7ZuI8L15Q,79695
53
- odoo/addons/l10n_it_fatturapa/i18n/l10n_it_fatturapa.pot,sha256=_Vg0LM-7G6v_nRBn6I9Q5E81VTdbSwbJWJY277LrwJk,79300
53
+ odoo/addons/l10n_it_fatturapa/i18n/l10n_it_fatturapa.pot,sha256=ifY-n3Y2V5bqvIpA2QfwIinRv-mJ7cWd954znnZaDi4,79570
54
54
  odoo/addons/l10n_it_fatturapa/i18n/lt.po,sha256=qvR_0Lvj_Gd7NsfkpHWuQ2QSB4z2kIM5-uavWaDMgjY,79923
55
55
  odoo/addons/l10n_it_fatturapa/i18n/lt_LT.po,sha256=o3k8Fe1dBgUoiqApnFpqXPTYGu-1DMXm5IYqcPpFRMw,79764
56
56
  odoo/addons/l10n_it_fatturapa/i18n/lv.po,sha256=IHA_fub9Nr7GuTlBX-bVMSAHoVosywdvqa9gmzqVYRI,79732
@@ -85,25 +85,27 @@ odoo/addons/l10n_it_fatturapa/migrations/14.0.1.0.0/pre-migrate.py,sha256=wvkYpz
85
85
  odoo/addons/l10n_it_fatturapa/migrations/14.0.1.2.1/post-migration.py,sha256=ZsFAk6uGXFJhrhDq_cFVRRMUbpXiBpRryPgPw3w8V7s,598
86
86
  odoo/addons/l10n_it_fatturapa/migrations/14.0.2.3.3/post-migrate.py,sha256=QGeI2r1p4yjOhdrA8BfV46iOA0_sgwIzGSuWupNero8,338
87
87
  odoo/addons/l10n_it_fatturapa/models/__init__.py,sha256=zrHnD3NwkYFxYC9HyhzO17w_X-GKC5sOV0YKOIEIH7M,195
88
- odoo/addons/l10n_it_fatturapa/models/account.py,sha256=nM7jD_aXf8RBSOIb9NIFm1qKV-w353WdbWeUbV5BGg4,16205
88
+ odoo/addons/l10n_it_fatturapa/models/account.py,sha256=AjtFrJuUnpTQsKrc-X0MiiTlwAjze8IpgnRiOJi8Ohw,17287
89
89
  odoo/addons/l10n_it_fatturapa/models/company.py,sha256=Sfx4iMArAau8rOkKNU7JplK0xQuQKqtoeyYUrQkWecw,7430
90
90
  odoo/addons/l10n_it_fatturapa/models/ir_attachment.py,sha256=ynHW5uU6A6kwp2B9dB-ru00k7gEAIiIotvZAdjIVNBo,5569
91
91
  odoo/addons/l10n_it_fatturapa/models/link_e_invoice_ir_attachment.py,sha256=3eoivS9YvGf09odeJttg56yhNdRAyj2iMqliYPS833s,1120
92
92
  odoo/addons/l10n_it_fatturapa/models/partner.py,sha256=QB8FSS9z5siPoCl-4F2MIlwXqZLQ8_YkhUQ0YMurKuM,7738
93
93
  odoo/addons/l10n_it_fatturapa/readme/CONFIGURE.rst,sha256=cdsyu-dX_fwu2apgmozZMHMYEW1v_3_-yMjBH7mnduw,1521
94
94
  odoo/addons/l10n_it_fatturapa/readme/CONTRIBUTORS.rst,sha256=XYJqszZvXfRo6IDZxwqyvTNzsrGCePQci1c0Mptxwf0,615
95
- odoo/addons/l10n_it_fatturapa/readme/DESCRIPTION.rst,sha256=BUnOVvnxFnE0QaFZ0hu29_alpElAeMyaGXYxWO45oSE,332
95
+ odoo/addons/l10n_it_fatturapa/readme/DESCRIPTION.rst,sha256=lhGEk5LXxw0e12SL4lyqaqqXXjeuLTSEvLCIZiQgHhA,1478
96
96
  odoo/addons/l10n_it_fatturapa/readme/INSTALL.rst,sha256=Mffx1Z3jIQmJhYIR5FSf_AkB95bZ1G_ecG2UlRVcLkI,930
97
97
  odoo/addons/l10n_it_fatturapa/readme/USAGE.rst,sha256=NZWzSrL2BHornFTM1MmH7Q8Fx-SLyj9I7nVomNuVEaM,160
98
98
  odoo/addons/l10n_it_fatturapa/security/ir.model.access.csv,sha256=b8K1_sFjRBpYeZ423ZwmXdm_0SfNTgJqXxVd2DYR6lM,3225
99
99
  odoo/addons/l10n_it_fatturapa/static/description/icon.png,sha256=_NDgbxF3ta8ijPcvP_MPNmjN8w4hlN218cE3omw8EGM,4829
100
- odoo/addons/l10n_it_fatturapa/static/description/index.html,sha256=2REU0nqyVExSZEDEBIwrTLQ2oDfRHt-Mjn70kWSYdO0,18204
100
+ odoo/addons/l10n_it_fatturapa/static/description/index.html,sha256=x1nCiZJqM22V6ItRCfdIfeTxDsfGe3rKDP9bAz77v00,19747
101
+ odoo/addons/l10n_it_fatturapa/tests/__init__.py,sha256=Dic1bZacPlUZ73s3ukucl2njYx0Jc1-qbkAagQxDhVM,29
102
+ odoo/addons/l10n_it_fatturapa/tests/test_fatturapa.py,sha256=Ex_ugHCVHWIQM74Ky2vHXl3V96z0Lpk1MxPgB-LZYlI,4073
101
103
  odoo/addons/l10n_it_fatturapa/views/account_view.xml,sha256=P_9exXk8kafN35kbQj99ZIVGVrXGZeQo4QLwPtDI6QE,1682
102
104
  odoo/addons/l10n_it_fatturapa/views/company_view.xml,sha256=N0-iBtjWtrn9THqLYKzGSSBFHqqI2WsheYRJdqFKhN8,8170
103
105
  odoo/addons/l10n_it_fatturapa/views/fatturapa_attachment_views.xml,sha256=qNcMpyTrUmGf91V9F-JQYhGCGP_i5cm57fkHVry9zzk,2563
104
106
  odoo/addons/l10n_it_fatturapa/views/partner_view.xml,sha256=KOSmFEOrMy0tYNaEZGr2XjXniBF9Gu5w5q6TZiJuiCU,4700
105
107
  odoo/addons/l10n_it_fatturapa/views/related_document_type_views.xml,sha256=o_afszEJ86q7KKKKf3C39XtnL3CqlTw2_9cPtIDVtJ0,3188
106
- odoo14_addon_l10n_it_fatturapa-14.0.2.3.6.dev3.dist-info/METADATA,sha256=z-4QNmzWh4Wlx2Y2U19H40EC8IPIos7u_On5o15xOyY,7455
107
- odoo14_addon_l10n_it_fatturapa-14.0.2.3.6.dev3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
108
- odoo14_addon_l10n_it_fatturapa-14.0.2.3.6.dev3.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
109
- odoo14_addon_l10n_it_fatturapa-14.0.2.3.6.dev3.dist-info/RECORD,,
108
+ odoo14_addon_l10n_it_fatturapa-14.0.2.4.0.dist-info/METADATA,sha256=vxmvCbt5_YePC6z91koVstokhLKZ0VilkCj_bahV0Ls,8761
109
+ odoo14_addon_l10n_it_fatturapa-14.0.2.4.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
110
+ odoo14_addon_l10n_it_fatturapa-14.0.2.4.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
111
+ odoo14_addon_l10n_it_fatturapa-14.0.2.4.0.dist-info/RECORD,,