-
-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] l10n_it_fatturapa_pec: Migration to 16.0
- Loading branch information
Showing
17 changed files
with
96 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,14 +14,14 @@ ITA - Fattura elettronica - Supporto PEC | |
: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/14.0/l10n_it_fatturapa_pec | ||
:target: https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_fatturapa_pec | ||
: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-14-0/l10n-italy-14-0-l10n_it_fatturapa_pec | ||
:target: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_fatturapa_pec | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png | ||
:target: https://runbot.odoo-community.org/runbot/122/14.0 | ||
:alt: Try me on Runbot | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/l10n-italy&target_branch=16.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
|
@@ -128,7 +128,7 @@ 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 smashing it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_fatturapa_pec%0Aversion:%2014.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_fatturapa_pec%0Aversion:%2016.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. | ||
|
||
|
@@ -155,6 +155,7 @@ Contributors | |
* `Ooops <https://www.ooops404.com>`_: | ||
|
||
* Giovanni Serra <[email protected]> | ||
* Giuseppe Borruso <[email protected]> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
@@ -169,6 +170,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose | |
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/14.0/l10n_it_fatturapa_pec>`_ project on GitHub. | ||
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_fatturapa_pec>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<data noupdate="1"> | ||
<record id="sdi_pec_first_address" model="ir.config_parameter"> | ||
<field name="key">sdi.pec.first.address</field> | ||
<field name="value">[email protected]</field> | ||
</record> | ||
</data> | ||
<odoo noupdate="1"> | ||
|
||
<record id="sdi_pec_first_address" model="ir.config_parameter"> | ||
<field name="key">sdi.pec.first.address</field> | ||
<field name="value">[email protected]</field> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<data noupdate="1"> | ||
<record id="fetchmail_pec_max_retry" model="ir.config_parameter"> | ||
<field name="key">fetchmail.pec.max.retry</field> | ||
<field name="value">5</field> | ||
</record> | ||
</data> | ||
<odoo noupdate="1"> | ||
|
||
<record id="fetchmail_pec_max_retry" model="ir.config_parameter"> | ||
<field name="key">fetchmail.pec.max.retry</field> | ||
<field name="value">5</field> | ||
</record> | ||
|
||
</odoo> |
18 changes: 0 additions & 18 deletions
18
l10n_it_fatturapa_pec/migrations/14.0.1.0.4/pre-migration.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ | |
* `Ooops <https://www.ooops404.com>`_: | ||
|
||
* Giovanni Serra <[email protected]> | ||
* Giuseppe Borruso <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# Copyright 2018 Simone Rubino - Agile Business Group | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from odoo.tests import Form | ||
|
||
from odoo.addons.l10n_it_fatturapa_out.tests.fatturapa_common import FatturaPACommon | ||
|
||
|
||
|
@@ -29,32 +31,33 @@ def setUp(self): | |
dict( | ||
code="REC", | ||
name="Receivable", | ||
user_type_id=self.ref("account.data_account_type_receivable"), | ||
account_type="asset_receivable", | ||
reconcile=True, | ||
) | ||
) | ||
self.account_income_id = self.account_model.create( | ||
dict( | ||
code="INC", | ||
name="Income", | ||
user_type_id=self.ref("account.data_account_type_revenue"), | ||
account_type="income", | ||
reconcile=True, | ||
) | ||
) | ||
self.partner = self.env.ref("l10n_it_fatturapa.res_partner_fatturapa_2") | ||
self.product = self.env.ref("product.product_product_5") | ||
self.env.company.sdi_channel_id = self.env.ref( | ||
"l10n_it_fatturapa_pec.sdi_channel_pec" | ||
) | ||
self.env.company.sdi_channel_id.pec_server_id = self.env[ | ||
"ir.mail_server" | ||
].create( | ||
sdi_channel_form = Form(self.env["sdi.channel"]) | ||
sdi_channel_form.name = "PEC" | ||
sdi_channel_form.channel_type = "pec" | ||
sdi_channel_form.pec_server_id = self.env["ir.mail_server"].create( | ||
{ | ||
"name": "dummy", | ||
"smtp_host": "smtp_host", | ||
"email_from_for_fatturaPA": "[email protected]", | ||
} | ||
) | ||
sdi_channel_form.fetch_pec_server_id = self._create_fetchmail_pec_server() | ||
self.sdi_channel_id = sdi_channel_form.save() | ||
self.env.company.sdi_channel_id = self.sdi_channel_id.id | ||
|
||
def _create_invoice(self): | ||
tax = self.tax_model.create( | ||
|
@@ -84,7 +87,7 @@ def _create_invoice(self): | |
|
||
def _get_export_wizard(self, invoice): | ||
wizard = self.wizard_model.create({}) | ||
return wizard.with_context({"active_ids": [invoice.id]}) | ||
return wizard.with_context(active_ids=[invoice.id]) | ||
|
||
def _create_e_invoice(self): | ||
invoice = self._create_invoice() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
asn1crypto | ||
codicefiscale | ||
elementpath | ||
mock | ||
unidecode | ||
xmlschema |