Skip to content

Commit c07d810

Browse files
committed
[MIG] l10n_it_sepa_bonifici: Migration to 16.0
Use new standards Added namespace to pain descendants IBAN is mandatory Initiating party is mandatory FinInstd/Othr is not allowed ReqdExctnDt has new structure Added test Updated README
1 parent 21b63b8 commit c07d810

52 files changed

Lines changed: 3387 additions & 2463 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ exclude: |
2222
(LICENSE.*|COPYING.*)|
2323
# official goverment specs
2424
(l10n_it_account/tools/xsd)|
25+
(l10n_it_sct_cbi/data/standards)|
2526
# external stylesheets
2627
(l10n_it_fatturapa/data/Foglio_di_stile_fatturaordinaria_v1.2.2.xsl)|
2728
(l10n_it_fatturapa/data/fatturasemplificata_v1.0.xsl)|

l10n_it_sct_cbi/README.rst

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
======================================
2+
ITA - Banking SEPA Credit Transfer CBI
3+
======================================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:02902c5254c68bfbf56f4d27f656976d29ad127c532e85dbf1d965b337bb505f
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github
20+
:target: https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_sct_cbi
21+
:alt: OCA/l10n-italy
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_sct_cbi
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&target_branch=16.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module adds new payment export types to use in the payment order.
32+
For italian credit transfer, the format codes are
33+
34+
- CBIBdyPaymentRequest.00.04.01
35+
- CBIBdyCrossBorderPaymentRequest.00.01.01
36+
37+
The created XML follows the CBI standards in
38+
https://www.cbi-org.eu/My-Menu/Servizio-CBI-Documentazione/Servizio-CBI-Documentazione-Standard.
39+
40+
Note (ITA):
41+
42+
Le specifiche CBI del bonifico XML SEPA (versione 00.04.01) si basano
43+
sul messaggio ISO20022 pain.001.001.09 e sono compliant al Rulebook
44+
SEPA.
45+
46+
Ad esempio la presenza obbligatoria dell’ABI della banca di addebito
47+
contenuto nel campo “MmbId” che è invece facoltativo nel tracciato ISO.
48+
49+
**Table of contents**
50+
51+
.. contents::
52+
:local:
53+
54+
Configuration
55+
=============
56+
57+
In Invoicing / Configuration / Settings / SEPA/PAIN, set:
58+
59+
- the CUC code in field ``Initiating Party Identifier``
60+
- the ``Initiating Party Identifier`` (must be "CBI").
61+
62+
|company_setting|
63+
64+
--------------
65+
66+
In Invoicing / Configuration / Management / Payment Modes, create a new
67+
payment mode.
68+
69+
|payment_mode1|
70+
71+
--------------
72+
73+
In the new payment mode is important to set the Italian format SEPA CBI
74+
75+
|payment_mode2|
76+
77+
.. |company_setting| image:: https://raw.githubusercontent.com/OCA/l10n-italy/16.0/l10n_it_sct_cbi/static/company_setting.png
78+
.. |payment_mode1| image:: https://raw.githubusercontent.com/OCA/l10n-italy/16.0/l10n_it_sct_cbi/static/payment_mode1.png
79+
.. |payment_mode2| image:: https://raw.githubusercontent.com/OCA/l10n-italy/16.0/l10n_it_sct_cbi/static/payment_mode2.png
80+
81+
Usage
82+
=====
83+
84+
This module uses the grouped payments implemented by the OCA in
85+
``account_payment_order``, grouped payments are also implemented in Odoo
86+
EE.
87+
88+
When you create a new payment order, you must select the payment mode
89+
created during configuration
90+
91+
|order_payment|
92+
93+
In order to get the xml file:
94+
95+
1. click on "Confirm payments"
96+
2. click on "Generate payment file" |generate_payment|
97+
98+
--------------
99+
100+
Then you can download the generated file
101+
102+
|make_payment_download|
103+
104+
.. |order_payment| image:: https://raw.githubusercontent.com/OCA/l10n-italy/16.0/l10n_it_sct_cbi/static/order_payment.png
105+
.. |generate_payment| image:: https://raw.githubusercontent.com/OCA/l10n-italy/16.0/l10n_it_sct_cbi/static/generate_payment.png
106+
.. |make_payment_download| image:: https://raw.githubusercontent.com/OCA/l10n-italy/16.0/l10n_it_sct_cbi/static/make_payment_download.png
107+
108+
Bug Tracker
109+
===========
110+
111+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-italy/issues>`_.
112+
In case of trouble, please check there if your issue has already been reported.
113+
If you spotted it first, help us to smash it by providing a detailed and welcomed
114+
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_sct_cbi%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
115+
116+
Do not contact contributors directly about support or help with technical issues.
117+
118+
Credits
119+
=======
120+
121+
Authors
122+
-------
123+
124+
* Openforce di Alessandro Camilli
125+
126+
Contributors
127+
------------
128+
129+
- Alessandro Camilli <alessandro.camilli@openforce.it>
130+
- Andrea Colangelo <andrea.colangelo@openforce.it>
131+
- Lorenzo Battistini <lorenzo.battistini@agilebg.com>
132+
- Alex Comba <alex.comba@agilebg.com>
133+
- `Aion Tech <https://aiontech.company/>`__:
134+
135+
- Simone Rubino <simone.rubino@aion-tech.it>
136+
137+
Maintainers
138+
-----------
139+
140+
This module is maintained by the OCA.
141+
142+
.. image:: https://odoo-community.org/logo.png
143+
:alt: Odoo Community Association
144+
:target: https://odoo-community.org
145+
146+
OCA, or the Odoo Community Association, is a nonprofit organization whose
147+
mission is to support the collaborative development of Odoo features and
148+
promote its widespread use.
149+
150+
.. |maintainer-SirAionTech| image:: https://github.com/SirAionTech.png?size=40px
151+
:target: https://github.com/SirAionTech
152+
:alt: SirAionTech
153+
154+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
155+
156+
|maintainer-SirAionTech|
157+
158+
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_sct_cbi>`_ project on GitHub.
159+
160+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

l10n_it_sct_cbi/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
2+
3+
from . import models

l10n_it_sct_cbi/__manifest__.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright 2016 Alessandro Camilli <alessandro.camilli@openforce.it>
2+
# Copyright 2024 Simone Rubino - Aion Tech
3+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
4+
{
5+
"name": "ITA - Banking SEPA Credit Transfer CBI",
6+
"summary": "Usare gli standard CBI per SEPA Credit Transfer",
7+
"version": "16.0.1.0.0",
8+
"category": "Banking",
9+
"author": "Openforce di Alessandro Camilli, Odoo Community Association (OCA)",
10+
"website": "https://github.com/OCA/l10n-italy" "/tree/16.0/l10n_it_sct_cbi",
11+
"license": "AGPL-3",
12+
"maintainers": [
13+
"SirAionTech",
14+
],
15+
"depends": [
16+
"account_banking_pain_base",
17+
],
18+
"data": [
19+
"data/account_payment_method.xml",
20+
],
21+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!--
3+
~ Copyright 2024 Simone Rubino - Aion Tech
4+
~ License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
5+
-->
6+
<odoo noupdate="1">
7+
<record id="sepa_cbi_credit_transfer" model="account.payment.method">
8+
<field name="name">SEPA Credit Transfer Payment Request CBI</field>
9+
<field name="code">sepa_cbi_credit_transfer</field>
10+
<field name="payment_type">outbound</field>
11+
<field name="bank_account_required" eval="True" />
12+
<field name="pain_version">CBIBdyPaymentRequest.00.04.01</field>
13+
<field name="warn_not_sepa" eval="True" />
14+
</record>
15+
</odoo>

l10n_it_sepa_bonifici/data/CBIBdyCrossBorderPaymentRequest.00.01.01.xsd renamed to l10n_it_sct_cbi/data/standards/CBIBdyCrossBorderPaymentRequest.00.01.01.xsd

File renamed without changes.

l10n_it_sepa_bonifici/data/CBIBdyPaymentRequest.00.04.00.xsd renamed to l10n_it_sct_cbi/data/standards/CBIBdyPaymentRequest.00.04.01.xsd

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- edited with XMLSpy v2013 rel. 2 (x64) (http://www.altova.com) by Ivana Gargiulo (CONSORZIO CUSTOMER TO BUSINESS INTERACTION - CBI) -->
3-
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:PMRQ="urn:CBI:xsd:CBIPaymentRequest.00.04.00" xmlns:SGNT="urn:CBI:xsd:CBISgnInf.001.04" xmlns="urn:CBI:xsd:CBIBdyPaymentRequest.00.04.00" targetNamespace="urn:CBI:xsd:CBIBdyPaymentRequest.00.04.00" elementFormDefault="qualified">
3+
<!-- Entrata in vigore: 17/03/2024 -->
4+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:PMRQ="urn:CBI:xsd:CBIPaymentRequest.00.04.01" xmlns:SGNT="urn:CBI:xsd:CBISgnInf.001.04" xmlns="urn:CBI:xsd:CBIBdyPaymentRequest.00.04.01" targetNamespace="urn:CBI:xsd:CBIBdyPaymentRequest.00.04.01" elementFormDefault="qualified">
45
<!-- Namespace import -->
5-
<xs:import namespace="urn:CBI:xsd:CBIPaymentRequest.00.04.00" schemaLocation="CBIPaymentRequest.00.04.00.xsd"/>
6+
<xs:import namespace="urn:CBI:xsd:CBIPaymentRequest.00.04.01" schemaLocation="CBIPaymentRequest.00.04.01.xsd"/>
67
<xs:import namespace="urn:CBI:xsd:CBISgnInf.001.04" schemaLocation="CBISgnInf.001.04.xsd"/>
7-
<xs:element name="CBIBdyPaymentRequest" type="CBIBdyPaymentRequest.00.04.00"/>
8+
<xs:element name="CBIBdyPaymentRequest" type="CBIBdyPaymentRequest.00.04.01"/>
89
<!-- Message Body structure definition -->
9-
<xs:complexType name="CBIBdyPaymentRequest.00.04.00">
10+
<xs:complexType name="CBIBdyPaymentRequest.00.04.01">
1011
<xs:sequence>
11-
<xs:element name="CBIEnvelPaymentRequest" type="CBIEnvelPaymentRequest.00.04.00" maxOccurs="unbounded"/>
12+
<xs:element name="CBIEnvelPaymentRequest" type="CBIEnvelPaymentRequest.00.04.01" maxOccurs="unbounded"/>
1213
</xs:sequence>
1314
</xs:complexType>
1415
<!-- Envel Payment Status Report structure definition -->
15-
<xs:complexType name="CBIEnvelPaymentRequest.00.04.00">
16+
<xs:complexType name="CBIEnvelPaymentRequest.00.04.01">
1617
<xs:choice>
17-
<xs:element name="CBIPaymentRequest" type="PMRQ:CBIPaymentRequest.00.04.00"/>
18+
<xs:element name="CBIPaymentRequest" type="PMRQ:CBIPaymentRequest.00.04.01"/>
1819
<xs:element name="CBISgnInf" type="SGNT:CBISgnInf.001.04"/>
1920
</xs:choice>
2021
</xs:complexType>

0 commit comments

Comments
 (0)