From a81822eaf39f51e31cf75224811c3c637e48bca3 Mon Sep 17 00:00:00 2001 From: francesca-bianchini Date: Tue, 6 Nov 2018 09:37:12 +0100 Subject: [PATCH] [MIG] l10n_it_fatturapa_in: Migration to 11.0 --- l10n_it_fatturapa_in/README.rst | 10 +++++----- l10n_it_fatturapa_in/__init__.py | 1 - l10n_it_fatturapa_in/__manifest__.py | 6 +++--- l10n_it_fatturapa_in/i18n/it.po | 4 ++-- l10n_it_fatturapa_in/i18n/l10n_it_fatturapa_in.pot | 2 +- l10n_it_fatturapa_in/models/__init__.py | 1 - l10n_it_fatturapa_in/models/account.py | 1 - l10n_it_fatturapa_in/models/attachment.py | 1 - l10n_it_fatturapa_in/models/company.py | 3 +-- l10n_it_fatturapa_in/models/partner.py | 1 - l10n_it_fatturapa_in/static/description/index.html | 6 +++--- l10n_it_fatturapa_in/tests/__init__.py | 1 - .../tests/test_import_fatturapa_xml.py | 11 +++++------ l10n_it_fatturapa_in/views/company_view.xml | 2 +- l10n_it_fatturapa_in/wizard/__init__.py | 1 - .../wizard/link_to_existing_invoice.py | 1 - .../wizard/wizard_import_fatturapa.py | 1 - 17 files changed, 21 insertions(+), 32 deletions(-) diff --git a/l10n_it_fatturapa_in/README.rst b/l10n_it_fatturapa_in/README.rst index 91656857baa3..f1945d2ae101 100644 --- a/l10n_it_fatturapa_in/README.rst +++ b/l10n_it_fatturapa_in/README.rst @@ -14,13 +14,13 @@ Italian Localization - Fattura Elettronica reception :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github - :target: https://github.com/OCA/l10n-italy/tree/10.0/l10n_it_fatturapa_in + :target: https://github.com/OCA/l10n-italy/tree/11.0/l10n_it_fatturapa_in :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-10-0/l10n-italy-10-0-l10n_it_fatturapa_in + :target: https://translation.odoo-community.org/projects/l10n-italy-11-0/l10n-italy-11-0-l10n_it_fatturapa_in :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/10.0 + :target: https://runbot.odoo-community.org/runbot/122/11.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -79,7 +79,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -112,6 +112,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 `_ project on GitHub. +This module is part of the `OCA/l10n-italy `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_it_fatturapa_in/__init__.py b/l10n_it_fatturapa_in/__init__.py index 574498c3b125..12a86766001a 100644 --- a/l10n_it_fatturapa_in/__init__.py +++ b/l10n_it_fatturapa_in/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from . import models from . import tests diff --git a/l10n_it_fatturapa_in/__manifest__.py b/l10n_it_fatturapa_in/__manifest__.py index aefa4aea40cc..9076714ff2fb 100644 --- a/l10n_it_fatturapa_in/__manifest__.py +++ b/l10n_it_fatturapa_in/__manifest__.py @@ -1,16 +1,16 @@ -# -*- coding: utf-8 -*- # Copyright 2015 AgileBG SAGL # Copyright 2015 innoviu Srl # Copyright 2018 Lorenzo Battistini { 'name': 'Italian Localization - Fattura Elettronica reception', - 'version': '10.0.1.2.0', + 'version': '11.0.1.0.0', + "development_status": "Beta", 'category': 'Localization/Italy', 'summary': 'Electronic invoices reception', 'author': 'Agile Business Group, Innoviu, ' 'Odoo Community Association (OCA)', - 'website': 'http://www.agilebg.com', + 'website': 'http://github.com/OCA/l10n-italy/', 'license': 'LGPL-3', "depends": [ 'l10n_it_fatturapa', diff --git a/l10n_it_fatturapa_in/i18n/it.po b/l10n_it_fatturapa_in/i18n/it.po index 7d1f2285a9d8..893fa7186d54 100644 --- a/l10n_it_fatturapa_in/i18n/it.po +++ b/l10n_it_fatturapa_in/i18n/it.po @@ -985,8 +985,8 @@ msgstr "È possibile selezionare solo un file XML da collegare" #. module: l10n_it_fatturapa_in #: model:ir.model,name:l10n_it_fatturapa_in.model_account_config_settings -msgid "account.config.settings" -msgstr "account.config.settings" +msgid "res.config.settings" +msgstr "res.config.settings" #. module: l10n_it_fatturapa_in #: model:ir.model,name:l10n_it_fatturapa_in.model_einvoice_line diff --git a/l10n_it_fatturapa_in/i18n/l10n_it_fatturapa_in.pot b/l10n_it_fatturapa_in/i18n/l10n_it_fatturapa_in.pot index a4cb094f7ee7..8592e63b85d2 100644 --- a/l10n_it_fatturapa_in/i18n/l10n_it_fatturapa_in.pot +++ b/l10n_it_fatturapa_in/i18n/l10n_it_fatturapa_in.pot @@ -872,7 +872,7 @@ msgstr "" #. module: l10n_it_fatturapa_in #: model:ir.model,name:l10n_it_fatturapa_in.model_account_config_settings -msgid "account.config.settings" +msgid "res.config.settings" msgstr "" #. module: l10n_it_fatturapa_in diff --git a/l10n_it_fatturapa_in/models/__init__.py b/l10n_it_fatturapa_in/models/__init__.py index aa731e35a87e..d9de15be6c73 100644 --- a/l10n_it_fatturapa_in/models/__init__.py +++ b/l10n_it_fatturapa_in/models/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from . import attachment from . import account diff --git a/l10n_it_fatturapa_in/models/account.py b/l10n_it_fatturapa_in/models/account.py index d7ebcf17edd4..360eeeb6e351 100644 --- a/l10n_it_fatturapa_in/models/account.py +++ b/l10n_it_fatturapa_in/models/account.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from odoo import fields, models, api import odoo.addons.decimal_precision as dp diff --git a/l10n_it_fatturapa_in/models/attachment.py b/l10n_it_fatturapa_in/models/attachment.py index 9b8613c6f6e2..7fa353b1e54f 100644 --- a/l10n_it_fatturapa_in/models/attachment.py +++ b/l10n_it_fatturapa_in/models/attachment.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from odoo import fields, models, api diff --git a/l10n_it_fatturapa_in/models/company.py b/l10n_it_fatturapa_in/models/company.py index d62e695d3595..0fdeb8871fcb 100644 --- a/l10n_it_fatturapa_in/models/company.py +++ b/l10n_it_fatturapa_in/models/company.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from odoo import fields, models, api @@ -24,7 +23,7 @@ class ResCompany(models.Model): class AccountConfigSettings(models.TransientModel): - _inherit = 'account.config.settings' + _inherit = 'res.config.settings' dati_bollo_product_id = fields.Many2one( related='company_id.dati_bollo_product_id', diff --git a/l10n_it_fatturapa_in/models/partner.py b/l10n_it_fatturapa_in/models/partner.py index 73bae4c66468..f1e765e4da80 100644 --- a/l10n_it_fatturapa_in/models/partner.py +++ b/l10n_it_fatturapa_in/models/partner.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from odoo import models, fields diff --git a/l10n_it_fatturapa_in/static/description/index.html b/l10n_it_fatturapa_in/static/description/index.html index 5b693059edef..84b58142da16 100644 --- a/l10n_it_fatturapa_in/static/description/index.html +++ b/l10n_it_fatturapa_in/static/description/index.html @@ -367,7 +367,7 @@

Italian Localization - Fattura Elettronica reception

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: LGPL-3 OCA/l10n-italy Translate me on Weblate Try me on Runbot

+

Beta License: LGPL-3 OCA/l10n-italy Translate me on Weblate Try me on Runbot

This module allows to import XML files of electronic invoices, version 1.2

http://www.fatturapa.gov.it/export/fatturazione/it/normativa/f-2.htm

received through the exchange system (SDI)

@@ -424,7 +424,7 @@

Bug Tracker

Bugs are tracked on GitHub 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.

+feedback.

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

@@ -451,7 +451,7 @@

Maintainers

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 project on GitHub.

+

This module is part of the OCA/l10n-italy project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/l10n_it_fatturapa_in/tests/__init__.py b/l10n_it_fatturapa_in/tests/__init__.py index 2d2485f34333..82c21f57eb22 100644 --- a/l10n_it_fatturapa_in/tests/__init__.py +++ b/l10n_it_fatturapa_in/tests/__init__.py @@ -1,3 +1,2 @@ -# -*- coding: utf-8 -*- from . import test_import_fatturapa_xml diff --git a/l10n_it_fatturapa_in/tests/test_import_fatturapa_xml.py b/l10n_it_fatturapa_in/tests/test_import_fatturapa_xml.py index b1be1d7a6468..a6c992d36198 100644 --- a/l10n_it_fatturapa_in/tests/test_import_fatturapa_xml.py +++ b/l10n_it_fatturapa_in/tests/test_import_fatturapa_xml.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import base64 import tempfile @@ -200,7 +199,7 @@ def test_04_xml_import(self): e_line.cod_article_ids[0].code_val, '12345') self.assertEqual( invoice.inconsistencies, - u'DatiAnagrafici.Anagrafica.Denominazione contains "Societa\' ' + 'DatiAnagrafici.Anagrafica.Denominazione contains "Societa\' ' 'Alpha SRL". Your System contains "SOCIETA\' ALPHA SRL"\n\n') def test_05_xml_import(self): @@ -330,11 +329,11 @@ def test_13_xml_import(self): invoice2 = self.invoice_model.browse(invoice2_id) self.assertEqual( invoice1.inconsistencies, - u'DatiAnagrafici.Anagrafica.Denominazione contains "Societa\' ' + 'DatiAnagrafici.Anagrafica.Denominazione contains "Societa\' ' 'Alpha SRL". Your System contains "SOCIETA\' ALPHA SRL"\n\n') self.assertEqual( invoice2.inconsistencies, - u'DatiAnagrafici.Anagrafica.Denominazione contains "Societa\' ' + 'DatiAnagrafici.Anagrafica.Denominazione contains "Societa\' ' 'Alpha SRL". Your System contains "SOCIETA\' ALPHA SRL"\n\n') def test_14_xml_import(self): @@ -349,9 +348,9 @@ def test_14_xml_import(self): self.assertEqual(invoice.amount_tax, 0.0) self.assertEqual( invoice.inconsistencies, - u'DatiAnagrafici.Anagrafica.Denominazione contains "Societa\' ' + 'DatiAnagrafici.Anagrafica.Denominazione contains "Societa\' ' 'Alpha SRL". Your System contains "SOCIETA\' ALPHA SRL"\n\n' - u'XML contains tax with percentage "15.55"' + 'XML contains tax with percentage "15.55"' ' but it does not exist in your system\n' 'XML contains tax with percentage "15.55"' ' but it does not exist in your system') diff --git a/l10n_it_fatturapa_in/views/company_view.xml b/l10n_it_fatturapa_in/views/company_view.xml index 964a412864d0..90521695f1cf 100644 --- a/l10n_it_fatturapa_in/views/company_view.xml +++ b/l10n_it_fatturapa_in/views/company_view.xml @@ -3,7 +3,7 @@ view_account_config_settings_ftpa_in - account.config.settings + res.config.settings diff --git a/l10n_it_fatturapa_in/wizard/__init__.py b/l10n_it_fatturapa_in/wizard/__init__.py index 313c912d6f15..5c51653af645 100644 --- a/l10n_it_fatturapa_in/wizard/__init__.py +++ b/l10n_it_fatturapa_in/wizard/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from . import wizard_import_fatturapa from . import link_to_existing_invoice diff --git a/l10n_it_fatturapa_in/wizard/link_to_existing_invoice.py b/l10n_it_fatturapa_in/wizard/link_to_existing_invoice.py index 879f7943e3fe..070fd1159f62 100644 --- a/l10n_it_fatturapa_in/wizard/link_to_existing_invoice.py +++ b/l10n_it_fatturapa_in/wizard/link_to_existing_invoice.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from odoo import models, api, fields from odoo.tools.translate import _ diff --git a/l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py b/l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py index 2045ba3528b7..102d0c2b4c1c 100644 --- a/l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py +++ b/l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import base64 import logging