Skip to content

Commit

Permalink
[MIG] l10n_de_toponyms: Migration to 13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hkapatel-initos committed Sep 17, 2021
1 parent 94da0a0 commit 9c39537
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion l10n_de_toponyms/__manifest__.py
Expand Up @@ -3,7 +3,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "German Toponyms",
"version": "12.0.1.0.0",
"version": "13.0.1.0.0",
"author": "IT IS AG Germany, " "initOS GmbH, " "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-germany",
"category": "Localization",
Expand Down
2 changes: 1 addition & 1 deletion l10n_de_toponyms/tests/test_l10n_de_toponyms.py
Expand Up @@ -9,7 +9,7 @@ class TestL10nDeToponyms(common.SavepointCase):
@classmethod
def setUpClass(cls):
super(TestL10nDeToponyms, cls).setUpClass()
cls.wizard = cls.env["config.de.toponyms"].create({"name": "",})
cls.wizard = cls.env["config.de.toponyms"].create({"name": ""})

def test_import(self):
self.wizard.with_context(max_import=10).execute()
Expand Down
4 changes: 2 additions & 2 deletions l10n_de_toponyms/wizard/l10n_de_toponyms_wizard.py
Expand Up @@ -3,16 +3,16 @@
# Copyright 2018 IT IS AG <oca@itis.de>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from odoo import api, fields, models
from odoo import fields, models


class ConfigDeToponyms(models.TransientModel):
_name = "config.de.toponyms"
_inherit = "res.config.installer"
_description = "config de toponyms"

name = fields.Char("Name", size=64)

@api.multi
def execute(self):
res = super(ConfigDeToponyms, self).execute()
wizard_obj = self.env["city.zip.geonames.import"]
Expand Down
1 change: 0 additions & 1 deletion l10n_de_toponyms/wizard/l10n_de_toponyms_wizard.xml
Expand Up @@ -32,7 +32,6 @@
<field name="name">German toponyms configuration</field>
<field name="res_model">config.de.toponyms</field>
<field name="view_id" ref="view_confirm_toponyms_de_form" />
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
Expand Down
1 change: 0 additions & 1 deletion oca_dependencies.txt

This file was deleted.

0 comments on commit 9c39537

Please sign in to comment.