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

[MIG] l10n_ch_states: Migration to 16.0 #714

Closed
wants to merge 31 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
3216883
[ADD] Country States for Switzerland
Jun 22, 2015
d4827f5
[FIX] separate country states from l10n_ch_zip to l10n_ch_states
Jun 23, 2015
b7fc4f3
[ADD/FIX] little corrections and added post-migration to l10n_ch_zip
Jun 29, 2015
b52c9cd
OCA Transbot updated translations from Transifex
oca-transbot Sep 1, 2015
65ba7dc
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
c9e028b
OCA Transbot updated translations from Transifex
oca-transbot Oct 11, 2015
c3682e0
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
81394d8
Reactivate l10n_ch_states
yvaucher Oct 14, 2015
b4b8886
l10n_ch_states - update README.rst
yvaucher Oct 14, 2015
aa2a0a9
Update de.po
BT-ojossen Feb 2, 2016
2e931e7
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
9b00cd2
[MIG] l10n_ch_states: Migration to 10.0
yvaucher Jan 3, 2017
0b2c20e
OCA Transbot updated translations from Transifex
oca-transbot Jul 10, 2016
25a566e
[MIG] l10n_ch_states: Migration to 11.0
yvaucher Nov 14, 2017
e46f2b1
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
e4679df
[MIG] Make modules uninstallable
OCA-git-bot Sep 28, 2018
5696aae
Translated using Weblate (German)
chrispi-ch Nov 22, 2018
f2f2f04
[MIG] l10n_ch_states to v12
Feb 21, 2019
0e11d77
[MIG] 13.0 l10n_ch_states
pegonzalezspesol Oct 23, 2019
5303850
[UPD] README.rst
OCA-git-bot Oct 23, 2019
67cf95f
pre-commit update
OCA-git-bot Mar 14, 2020
bf965a4
[MIG] l10n_ch_states: Migration to 14.0
yvaucher Oct 29, 2020
e6a3400
[UPD] README.rst
OCA-git-bot Sep 14, 2021
49da2d6
Update translation files
oca-transbot Sep 14, 2021
db042b8
[15.0][MIG] l10n_ch_states: Migrate to version 15.0
Jul 5, 2022
54b46ae
[UPD] Update l10n_ch_states.pot
May 10, 2023
fcec113
[UPD] README.rst
OCA-git-bot May 10, 2023
20de3cc
Update translation files
weblate May 10, 2023
d725349
[UPD] README.rst
OCA-git-bot Sep 3, 2023
cb88d6f
[IMP] l10n_ch_states: pre-commit stuff
yvaucher Nov 2, 2023
638c9b1
[MIG] l10n_ch_states: Migration to 16.0
yvaucher Nov 2, 2023
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
93 changes: 93 additions & 0 deletions l10n_ch_states/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
==========================
Switzerland Country States
==========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:82b3aaba0c62d9136fb0178bb08f98eac0da8aecc43309047d55e0d5196e3ec1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
: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--switzerland-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-switzerland/tree/16.0/l10n_ch_states
:alt: OCA/l10n-switzerland
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-switzerland-16-0/l10n-switzerland-16-0-l10n_ch_states
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-switzerland&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends res.country.states for Switzerland. It brings states with
code and name for those who only want the states without cities.

For those who also want cities, please install *Switzerland - Postal codes (ZIP) list* (`l10n_ch_zip`).

**Table of contents**

.. contents::
:local:

Usage
=====

In order to use this module you just in to install it. It will add Switzerland
country states to your database

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-switzerland/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-switzerland/issues/new?body=module:%20l10n_ch_states%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.

Credits
=======

Authors
~~~~~~~

* copado MEDIA UG

Contributors
~~~~~~~~~~~~

* Mathias Neef <[email protected]>
* `Trobz <https://trobz.com>`_:

* Son Ho <[email protected]>

Other credits
~~~~~~~~~~~~~

The migration of this module from 14.0 to 15.0 was financially supported by Camptocamp

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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-switzerland <https://github.com/OCA/l10n-switzerland/tree/16.0/l10n_ch_states>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions l10n_ch_states/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
14 changes: 14 additions & 0 deletions l10n_ch_states/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2019-2020 Camptocamp SA
# Copyright 2015 Mathias Neef copadoMEDIA UG
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Switzerland Country States",
"category": "Localisation",
"summary": "",
"version": "16.0.1.0.0",
"author": "copado MEDIA UG," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-switzerland",
"license": "AGPL-3",
"depends": ["base"],
"data": ["data/res_country_states.xml"],
}
148 changes: 148 additions & 0 deletions l10n_ch_states/data/res_country_states.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="state_AG" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Argovia</field>
<field name="code">AG</field>
</record>
<record id="state_AR" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Appenzell Outher Rhodes</field>
<field name="code">AR</field>
</record>
<record id="state_AI" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Appenzell Inner Rhodes</field>
<field name="code">AI</field>
</record>
<record id="state_BL" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Basel-Country</field>
<field name="code">BL</field>
</record>
<record id="state_BS" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Basel-City</field>
<field name="code">BS</field>
</record>
<record id="state_BE" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Bern</field>
<field name="code">BE</field>
</record>
<record id="state_DE" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Germany</field>
<field name="code">DE</field>
</record>
<record id="state_FL" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Principality of Liechtenstein</field>
<field name="code">FL</field>
</record>
<record id="state_FR" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Fribourg</field>
<field name="code">FR</field>
</record>
<record id="state_GE" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Geneva</field>
<field name="code">GE</field>
</record>
<record id="state_GL" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Glarus</field>
<field name="code">GL</field>
</record>
<record id="state_GR" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Grisons</field>
<field name="code">GR</field>
</record>
<record id="state_IT" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Italy</field>
<field name="code">IT</field>
</record>
<record id="state_JU" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Jura</field>
<field name="code">JU</field>
</record>
<record id="state_LU" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Luzern</field>
<field name="code">LU</field>
</record>
<record id="state_NE" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Neuchâtel</field>
<field name="code">NE</field>
</record>
<record id="state_NW" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Nidwald</field>
<field name="code">NW</field>
</record>
<record id="state_OW" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Obwald</field>
<field name="code">OW</field>
</record>
<record id="state_SH" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Schaffhausen</field>
<field name="code">SH</field>
</record>
<record id="state_SZ" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Schwyz</field>
<field name="code">SZ</field>
</record>
<record id="state_SO" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Solothurn</field>
<field name="code">SO</field>
</record>
<record id="state_SG" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">St. Gallen</field>
<field name="code">SG</field>
</record>
<record id="state_TG" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Thurgovia</field>
<field name="code">TG</field>
</record>
<record id="state_TI" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Ticino</field>
<field name="code">TI</field>
</record>
<record id="state_UR" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Uri</field>
<field name="code">UR</field>
</record>
<record id="state_VS" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Valais</field>
<field name="code">VS</field>
</record>
<record id="state_VD" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Vaud</field>
<field name="code">VD</field>
</record>
<record id="state_ZG" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Zug</field>
<field name="code">ZG</field>
</record>
<record id="state_ZH" model="res.country.state">
<field model="res.country" name="country_id" search="[('code','=','CH')]" />
<field name="name">Zurich</field>
<field name="code">ZH</field>
</record>
</odoo>
Loading
Loading