Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

14.0 mig script base location geonames import #3

Open
wants to merge 2 commits into
base: 14.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion base_location_geonames_import/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{
"name": "Base Location Geonames Import",
"version": "14.0.1.0.1",
"version": "14.0.1.0.2",
Copy link

@tafaRU tafaRU Jul 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cosa succede se viene rilasciata una versione ufficiale con la stessa versione?
Hai forse previsto di rimettere la versione stabile a migrazione terminata tramite un task [POST-MIG]?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

si lo scopo è sfruttare queste PR per portare alla mig del DB. una volta finita rimetterei le versioni stabili.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non mi pare di vedere ancora il task. Non conviene forse già crearlo per evitare di scordarsene? Che ne pensi?

"category": "Partner Management",
"license": "AGPL-3",
"summary": "Import zip entries from Geonames",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="base.es" model="res.country">
<field name="geonames_state_code_column" eval="6" />
<field name="geonames_state_name_column" eval="5" />
</record>
<record id="base.it" model="res.country">
<field name="geonames_state_code_column" eval="6" />
<field name="geonames_state_name_column" eval="5" />
</record>
</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2020 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openupgradelib import openupgrade # pylint: disable=W7936


@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(
env.cr, "base_location_geonames_import",
"migrations/10.0.1.0.0/noupdate_changes.xml"
)