Skip to content

Commit

Permalink
[MIG] l10n_it_fatturapa_in: Migration to 11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
francesca-bianchini authored and TheMule71 committed Jun 9, 2021
1 parent 53ea0b3 commit a81822e
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 32 deletions.
10 changes: 5 additions & 5 deletions l10n_it_fatturapa_in/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down Expand Up @@ -79,7 +79,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_in%0Aversion:%2010.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_in%0Aversion:%2011.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 @@ -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 <https://github.com/OCA/l10n-italy/tree/10.0/l10n_it_fatturapa_in>`_ project on GitHub.
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/11.0/l10n_it_fatturapa_in>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 0 additions & 1 deletion l10n_it_fatturapa_in/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-

from . import models
from . import tests
Expand Down
6 changes: 3 additions & 3 deletions l10n_it_fatturapa_in/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright 2015 AgileBG SAGL <http://www.agilebg.com>
# Copyright 2015 innoviu Srl <http://www.innoviu.com>
# 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',
Expand Down
4 changes: 2 additions & 2 deletions l10n_it_fatturapa_in/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion l10n_it_fatturapa_in/i18n/l10n_it_fatturapa_in.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion l10n_it_fatturapa_in/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-

from . import attachment
from . import account
Expand Down
1 change: 0 additions & 1 deletion l10n_it_fatturapa_in/models/account.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-

from odoo import fields, models, api
import odoo.addons.decimal_precision as dp
Expand Down
1 change: 0 additions & 1 deletion l10n_it_fatturapa_in/models/attachment.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-

from odoo import fields, models, api

Expand Down
3 changes: 1 addition & 2 deletions l10n_it_fatturapa_in/models/company.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-

from odoo import fields, models, api

Expand All @@ -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',
Expand Down
1 change: 0 additions & 1 deletion l10n_it_fatturapa_in/models/partner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-

from odoo import models, fields

Expand Down
6 changes: 3 additions & 3 deletions l10n_it_fatturapa_in/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Italian Localization - Fattura Elettronica reception</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" 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" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/l10n-italy/tree/10.0/l10n_it_fatturapa_in"><img alt="OCA/l10n-italy" src="https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/l10n-italy-10-0/l10n-italy-10-0-l10n_it_fatturapa_in"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/122/10.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external" 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" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/l10n-italy/tree/11.0/l10n_it_fatturapa_in"><img alt="OCA/l10n-italy" src="https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/l10n-italy-11-0/l10n-italy-11-0-l10n_it_fatturapa_in"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/122/11.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module allows to import XML files of electronic invoices, version 1.2</p>
<p><a class="reference external" href="http://www.fatturapa.gov.it/export/fatturazione/it/normativa/f-2.htm">http://www.fatturapa.gov.it/export/fatturazione/it/normativa/f-2.htm</a></p>
<p>received through the exchange system (SDI)</p>
Expand Down Expand Up @@ -424,7 +424,7 @@ <h1><a class="toc-backref" href="#id4">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 smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_fatturapa_in%0Aversion:%2010.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_fatturapa_in%0Aversion:%2011.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 All @@ -451,7 +451,7 @@ <h2><a class="toc-backref" href="#id8">Maintainers</a></h2>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-italy/tree/10.0/l10n_it_fatturapa_in">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/11.0/l10n_it_fatturapa_in">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
1 change: 0 additions & 1 deletion l10n_it_fatturapa_in/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# -*- coding: utf-8 -*-

from . import test_import_fatturapa_xml
11 changes: 5 additions & 6 deletions l10n_it_fatturapa_in/tests/test_import_fatturapa_xml.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-

import base64
import tempfile
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand All @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion l10n_it_fatturapa_in/views/company_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<record id="view_account_config_settings_ftpa_in" model="ir.ui.view">
<field name="name">view_account_config_settings_ftpa_in</field>
<field name="model">account.config.settings</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="l10n_it_fatturapa.view_account_config_settings"/>
<field name="arch" type="xml">
<xpath expr="//div[@id='fatturapa_settings']" position="inside">
Expand Down
1 change: 0 additions & 1 deletion l10n_it_fatturapa_in/wizard/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-

from . import wizard_import_fatturapa
from . import link_to_existing_invoice
1 change: 0 additions & 1 deletion l10n_it_fatturapa_in/wizard/link_to_existing_invoice.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-

from odoo import models, api, fields
from odoo.tools.translate import _
Expand Down
1 change: 0 additions & 1 deletion l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-

import base64
import logging
Expand Down

0 comments on commit a81822e

Please sign in to comment.