Skip to content

Commit

Permalink
[MIG] l10n_it_sct_cbi: Migration to 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
toita86 committed Oct 21, 2024
1 parent 3faed3b commit f05f170
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 27 deletions.
22 changes: 11 additions & 11 deletions l10n_it_sct_cbi/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ ITA - Banking SEPA Credit Transfer CBI
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_sct_cbi
:target: https://github.com/OCA/l10n-italy/tree/14.0/l10n_it_sct_cbi
:alt: OCA/l10n-italy
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_sct_cbi
:target: https://translation.odoo-community.org/projects/l10n-italy-14-0/l10n-italy-14-0-l10n_it_sct_cbi
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&target_branch=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&target_branch=14.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand Down Expand Up @@ -74,9 +74,9 @@ In the new payment mode is important to set the Italian format SEPA CBI

|payment_mode2|

.. |company_setting| image:: https://raw.githubusercontent.com/OCA/l10n-italy/16.0/l10n_it_sct_cbi/static/company_setting.png
.. |payment_mode1| image:: https://raw.githubusercontent.com/OCA/l10n-italy/16.0/l10n_it_sct_cbi/static/payment_mode1.png
.. |payment_mode2| image:: https://raw.githubusercontent.com/OCA/l10n-italy/16.0/l10n_it_sct_cbi/static/payment_mode2.png
.. |company_setting| image:: https://raw.githubusercontent.com/OCA/l10n-italy/14.0/l10n_it_sct_cbi/static/company_setting.png
.. |payment_mode1| image:: https://raw.githubusercontent.com/OCA/l10n-italy/14.0/l10n_it_sct_cbi/static/payment_mode1.png
.. |payment_mode2| image:: https://raw.githubusercontent.com/OCA/l10n-italy/14.0/l10n_it_sct_cbi/static/payment_mode2.png

Usage
=====
Expand All @@ -101,17 +101,17 @@ Then you can download the generated file

|make_payment_download|

.. |order_payment| image:: https://raw.githubusercontent.com/OCA/l10n-italy/16.0/l10n_it_sct_cbi/static/order_payment.png
.. |generate_payment| image:: https://raw.githubusercontent.com/OCA/l10n-italy/16.0/l10n_it_sct_cbi/static/generate_payment.png
.. |make_payment_download| image:: https://raw.githubusercontent.com/OCA/l10n-italy/16.0/l10n_it_sct_cbi/static/make_payment_download.png
.. |order_payment| image:: https://raw.githubusercontent.com/OCA/l10n-italy/14.0/l10n_it_sct_cbi/static/order_payment.png
.. |generate_payment| image:: https://raw.githubusercontent.com/OCA/l10n-italy/14.0/l10n_it_sct_cbi/static/generate_payment.png
.. |make_payment_download| image:: https://raw.githubusercontent.com/OCA/l10n-italy/14.0/l10n_it_sct_cbi/static/make_payment_download.png

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-italy/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`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**>`_.
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_sct_cbi%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Expand Down Expand Up @@ -155,6 +155,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-SirAionTech|

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.
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/14.0/l10n_it_sct_cbi>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 2 additions & 2 deletions l10n_it_sct_cbi/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
{
"name": "ITA - Banking SEPA Credit Transfer CBI",
"summary": "Usare gli standard CBI per SEPA Credit Transfer",
"version": "16.0.1.0.0",
"version": "14.0.1.0.0",
"category": "Banking",
"author": "Openforce di Alessandro Camilli, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-italy" "/tree/16.0/l10n_it_sct_cbi",
"website": "https://github.com/OCA/l10n-italy" "/tree/14.0/l10n_it_sct_cbi",
"license": "AGPL-3",
"maintainers": [
"SirAionTech",
Expand Down
3 changes: 0 additions & 3 deletions l10n_it_sct_cbi/pyproject.toml

This file was deleted.

18 changes: 9 additions & 9 deletions l10n_it_sct_cbi/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ <h1 class="title">ITA - Banking SEPA Credit Transfer CBI</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:694cb200e41949b59d6db167f47ad037c47e0970c568837740dfce177309f3a0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/16.0/l10n_it_sct_cbi"><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-16-0/l10n-italy-16-0-l10n_it_sct_cbi"><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=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<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_sct_cbi"><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_sct_cbi"><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>
<p>This module adds new payment export types to use in the payment order.
For italian credit transfer, the format codes are</p>
<ul class="simple">
Expand Down Expand Up @@ -405,14 +405,14 @@ <h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
<li>the CUC code in field <tt class="docutils literal">Initiating Party Identifier</tt></li>
<li>the <tt class="docutils literal">Initiating Party Identifier</tt> (must be “CBI”).</li>
</ul>
<p><img alt="company_setting" src="https://raw.githubusercontent.com/OCA/l10n-italy/16.0/l10n_it_sct_cbi/static/company_setting.png" /></p>
<p><img alt="company_setting" src="https://raw.githubusercontent.com/OCA/l10n-italy/14.0/l10n_it_sct_cbi/static/company_setting.png" /></p>
<hr class="docutils" />
<p>In Invoicing / Configuration / Management / Payment Modes, create a new
payment mode.</p>
<p><img alt="payment_mode1" src="https://raw.githubusercontent.com/OCA/l10n-italy/16.0/l10n_it_sct_cbi/static/payment_mode1.png" /></p>
<p><img alt="payment_mode1" src="https://raw.githubusercontent.com/OCA/l10n-italy/14.0/l10n_it_sct_cbi/static/payment_mode1.png" /></p>
<hr class="docutils" />
<p>In the new payment mode is important to set the Italian format SEPA CBI</p>
<p><img alt="payment_mode2" src="https://raw.githubusercontent.com/OCA/l10n-italy/16.0/l10n_it_sct_cbi/static/payment_mode2.png" /></p>
<p><img alt="payment_mode2" src="https://raw.githubusercontent.com/OCA/l10n-italy/14.0/l10n_it_sct_cbi/static/payment_mode2.png" /></p>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
Expand All @@ -421,22 +421,22 @@ <h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
EE.</p>
<p>When you create a new payment order, you must select the payment mode
created during configuration</p>
<p><img alt="order_payment" src="https://raw.githubusercontent.com/OCA/l10n-italy/16.0/l10n_it_sct_cbi/static/order_payment.png" /></p>
<p><img alt="order_payment" src="https://raw.githubusercontent.com/OCA/l10n-italy/14.0/l10n_it_sct_cbi/static/order_payment.png" /></p>
<p>In order to get the xml file:</p>
<ol class="arabic simple">
<li>click on “Confirm payments”</li>
<li>click on “Generate payment file” <img alt="generate_payment" src="https://raw.githubusercontent.com/OCA/l10n-italy/16.0/l10n_it_sct_cbi/static/generate_payment.png" /></li>
<li>click on “Generate payment file” <img alt="generate_payment" src="https://raw.githubusercontent.com/OCA/l10n-italy/14.0/l10n_it_sct_cbi/static/generate_payment.png" /></li>
</ol>
<hr class="docutils" />
<p>Then you can download the generated file</p>
<p><img alt="make_payment_download" src="https://raw.githubusercontent.com/OCA/l10n-italy/16.0/l10n_it_sct_cbi/static/make_payment_download.png" /></p>
<p><img alt="make_payment_download" src="https://raw.githubusercontent.com/OCA/l10n-italy/14.0/l10n_it_sct_cbi/static/make_payment_download.png" /></p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-italy/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="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**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_sct_cbi%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -471,7 +471,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/SirAionTech"><img alt="SirAionTech" src="https://github.com/SirAionTech.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_sct_cbi">OCA/l10n-italy</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-italy/tree/14.0/l10n_it_sct_cbi">OCA/l10n-italy</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
10 changes: 8 additions & 2 deletions l10n_it_sct_cbi/tests/test_generate_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ def setUpClass(cls, chart_template_ref=None):
{
"name": "Test supplier",
"bank_ids": [
Command.create(
(
0,
0,
{
"acc_number": "IT48N0300203280543765183341",
"bank_id": cls.supplier_bank.id,
}
},
),
],
}
Expand Down Expand Up @@ -108,6 +110,8 @@ def test_2_bills(self):
# Assert
payment_tree = etree.fromstring(base64.b64decode(payment_att.datas))
namespaces = payment_tree.nsmap
if None in namespaces:
namespaces["default"] = namespaces.pop(None)
bills_refs_node = payment_tree.find(
".//PMRQ:RmtInf//PMRQ:Ustrd",
namespaces=namespaces,
Expand Down Expand Up @@ -157,6 +161,8 @@ def test_multiple_payment_priority(self):
# Assert
payment_tree = etree.fromstring(base64.b64decode(payment_att.datas))
namespaces = payment_tree.nsmap
if None in namespaces:
namespaces["default"] = namespaces.pop(None)
bills_refs_node = payment_tree.find(
".//PMRQ:RmtInf//PMRQ:Ustrd",
namespaces=namespaces,
Expand Down

0 comments on commit f05f170

Please sign in to comment.