From c18ac140a2649a9a6b1a1ebdd77a533841755d23 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 8 Oct 2016 20:09:50 -0400 Subject: [PATCH 1/2] OCA Transbot updated translations from Transifex --- base_location/i18n/bg.po | 154 ++++++++++++++++++++++++++++++++++++ base_location/i18n/hr.po | 154 ++++++++++++++++++++++++++++++++++++ base_location/i18n/pt_BR.po | 10 ++- base_location/i18n/tr.po | 4 +- base_location/i18n/zh_CN.po | 154 ++++++++++++++++++++++++++++++++++++ 5 files changed, 471 insertions(+), 5 deletions(-) create mode 100644 base_location/i18n/bg.po create mode 100644 base_location/i18n/hr.po create mode 100644 base_location/i18n/zh_CN.po diff --git a/base_location/i18n/bg.po b/base_location/i18n/bg.po new file mode 100644 index 000000000..228e03ab2 --- /dev/null +++ b/base_location/i18n/bg.po @@ -0,0 +1,154 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_location +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: partner-contact (9.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-10-06 12:09+0000\n" +"PO-Revision-Date: 2015-12-15 11:17+0000\n" +"Last-Translator: <>\n" +"Language-Team: Bulgarian (http://www.transifex.com/oca/OCA-partner-contact-9-0/language/bg/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: bg\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: base_location +#: model:ir.actions.act_window,name:base_location.action_zip_tree +msgid "Cites/locations Management" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_country_state_better_zip_ids +msgid "Cities" +msgstr "" + +#. module: base_location +#: model:ir.ui.menu,name:base_location.zip_base +msgid "Cities/Locations Management" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_city +msgid "City" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_code +msgid "City Code" +msgstr "" + +#. module: base_location +#: model:ir.ui.view,arch_db:base_location.view_company_form_city +#: model:ir.ui.view,arch_db:base_location.view_partner_form +msgid "City completion" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_partner_zip_id +msgid "City/Location" +msgstr "" + +#. module: base_location +#: model:ir.model,name:base_location.model_res_better_zip +msgid "City/locations completion object" +msgstr "" + +#. module: base_location +#: model:ir.model,name:base_location.model_res_company +msgid "Companies" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_country_id +#: model:ir.ui.view,arch_db:base_location.view_better_zip_filter +#: model:ir.ui.view,arch_db:base_location.view_country_search +msgid "Country" +msgstr "" + +#. module: base_location +#: model:ir.model,name:base_location.model_res_country_state +msgid "Country state" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_create_uid +msgid "Created by" +msgstr "Създадено от" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_create_date +msgid "Created on" +msgstr "Създадено на" + +#. module: base_location +#: model:ir.ui.view,arch_db:base_location.view_better_zip_filter +msgid "Group By" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_id +msgid "ID" +msgstr "ID" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip___last_update +msgid "Last Modified on" +msgstr "Последно обновено на" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_write_uid +msgid "Last Updated by" +msgstr "Последно обновено от" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_write_date +msgid "Last Updated on" +msgstr "Последно обновено на" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_company_better_zip_id +msgid "Location" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_display_name +msgid "Name" +msgstr "Име" + +#. module: base_location +#: model:ir.model,name:base_location.model_res_partner +msgid "Partner" +msgstr "Партньор" + +#. module: base_location +#: model:ir.ui.view,arch_db:base_location.view_better_zip_filter +msgid "Search city" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_state_id +#: model:ir.ui.view,arch_db:base_location.view_better_zip_filter +msgid "State" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,help:base_location.field_res_better_zip_code +msgid "The official code for the city" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,help:base_location.field_res_company_better_zip_id +msgid "Use the city name or the zip code to search the location" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_name +#: model:ir.ui.view,arch_db:base_location.better_zip_form +#: model:ir.ui.view,arch_db:base_location.better_zip_tree +msgid "ZIP" +msgstr "" diff --git a/base_location/i18n/hr.po b/base_location/i18n/hr.po new file mode 100644 index 000000000..c667d8035 --- /dev/null +++ b/base_location/i18n/hr.po @@ -0,0 +1,154 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_location +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: partner-contact (9.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-10-06 12:09+0000\n" +"PO-Revision-Date: 2015-12-15 11:17+0000\n" +"Last-Translator: <>\n" +"Language-Team: Croatian (http://www.transifex.com/oca/OCA-partner-contact-9-0/language/hr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: base_location +#: model:ir.actions.act_window,name:base_location.action_zip_tree +msgid "Cites/locations Management" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_country_state_better_zip_ids +msgid "Cities" +msgstr "" + +#. module: base_location +#: model:ir.ui.menu,name:base_location.zip_base +msgid "Cities/Locations Management" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_city +msgid "City" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_code +msgid "City Code" +msgstr "" + +#. module: base_location +#: model:ir.ui.view,arch_db:base_location.view_company_form_city +#: model:ir.ui.view,arch_db:base_location.view_partner_form +msgid "City completion" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_partner_zip_id +msgid "City/Location" +msgstr "" + +#. module: base_location +#: model:ir.model,name:base_location.model_res_better_zip +msgid "City/locations completion object" +msgstr "" + +#. module: base_location +#: model:ir.model,name:base_location.model_res_company +msgid "Companies" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_country_id +#: model:ir.ui.view,arch_db:base_location.view_better_zip_filter +#: model:ir.ui.view,arch_db:base_location.view_country_search +msgid "Country" +msgstr "" + +#. module: base_location +#: model:ir.model,name:base_location.model_res_country_state +msgid "Country state" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_create_uid +msgid "Created by" +msgstr "Kreirao" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_create_date +msgid "Created on" +msgstr "Kreirano" + +#. module: base_location +#: model:ir.ui.view,arch_db:base_location.view_better_zip_filter +msgid "Group By" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_id +msgid "ID" +msgstr "ID" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip___last_update +msgid "Last Modified on" +msgstr "Zadnje modificirano" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_write_uid +msgid "Last Updated by" +msgstr "Zadnji ažurirao" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_write_date +msgid "Last Updated on" +msgstr "Zadnje ažuriranje" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_company_better_zip_id +msgid "Location" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_display_name +msgid "Name" +msgstr "" + +#. module: base_location +#: model:ir.model,name:base_location.model_res_partner +msgid "Partner" +msgstr "Partner" + +#. module: base_location +#: model:ir.ui.view,arch_db:base_location.view_better_zip_filter +msgid "Search city" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_state_id +#: model:ir.ui.view,arch_db:base_location.view_better_zip_filter +msgid "State" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,help:base_location.field_res_better_zip_code +msgid "The official code for the city" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,help:base_location.field_res_company_better_zip_id +msgid "Use the city name or the zip code to search the location" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_name +#: model:ir.ui.view,arch_db:base_location.better_zip_form +#: model:ir.ui.view,arch_db:base_location.better_zip_tree +msgid "ZIP" +msgstr "" diff --git a/base_location/i18n/pt_BR.po b/base_location/i18n/pt_BR.po index 572adff93..f29154ecd 100644 --- a/base_location/i18n/pt_BR.po +++ b/base_location/i18n/pt_BR.po @@ -3,13 +3,17 @@ # * base_location # # Translators: +# Ahmet Altinisik , 2016 # danimaribeiro , 2015 +# Matjaž Mozetič , 2015-2016 +# Paolo Valier, 2016 +# Rudolf Schnapka , 2016 msgid "" msgstr "" "Project-Id-Version: partner-contact (9.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-12-17 01:36+0000\n" -"PO-Revision-Date: 2015-12-15 11:17+0000\n" +"POT-Creation-Date: 2016-10-06 12:09+0000\n" +"PO-Revision-Date: 2016-10-04 09:43+0000\n" "Last-Translator: OCA Transbot \n" "Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-partner-contact-9-0/language/pt_BR/)\n" "MIME-Version: 1.0\n" @@ -99,7 +103,7 @@ msgstr "ID" #. module: base_location #: model:ir.model.fields,field_description:base_location.field_res_better_zip___last_update msgid "Last Modified on" -msgstr "" +msgstr "Última atualização em" #. module: base_location #: model:ir.model.fields,field_description:base_location.field_res_better_zip_write_uid diff --git a/base_location/i18n/tr.po b/base_location/i18n/tr.po index 6b060d16f..98b368851 100644 --- a/base_location/i18n/tr.po +++ b/base_location/i18n/tr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: partner-contact (9.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-08-20 23:45+0000\n" +"POT-Creation-Date: 2016-10-06 12:09+0000\n" "PO-Revision-Date: 2015-12-15 11:17+0000\n" "Last-Translator: <>\n" "Language-Team: Turkish (http://www.transifex.com/oca/OCA-partner-contact-9-0/language/tr/)\n" @@ -88,7 +88,7 @@ msgstr "Oluşturuldu" #. module: base_location #: model:ir.ui.view,arch_db:base_location.view_better_zip_filter msgid "Group By" -msgstr "" +msgstr "Grupla" #. module: base_location #: model:ir.model.fields,field_description:base_location.field_res_better_zip_id diff --git a/base_location/i18n/zh_CN.po b/base_location/i18n/zh_CN.po new file mode 100644 index 000000000..899e514ac --- /dev/null +++ b/base_location/i18n/zh_CN.po @@ -0,0 +1,154 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_location +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: partner-contact (9.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-10-06 12:09+0000\n" +"PO-Revision-Date: 2015-12-15 11:17+0000\n" +"Last-Translator: <>\n" +"Language-Team: Chinese (China) (http://www.transifex.com/oca/OCA-partner-contact-9-0/language/zh_CN/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: zh_CN\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: base_location +#: model:ir.actions.act_window,name:base_location.action_zip_tree +msgid "Cites/locations Management" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_country_state_better_zip_ids +msgid "Cities" +msgstr "" + +#. module: base_location +#: model:ir.ui.menu,name:base_location.zip_base +msgid "Cities/Locations Management" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_city +msgid "City" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_code +msgid "City Code" +msgstr "" + +#. module: base_location +#: model:ir.ui.view,arch_db:base_location.view_company_form_city +#: model:ir.ui.view,arch_db:base_location.view_partner_form +msgid "City completion" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_partner_zip_id +msgid "City/Location" +msgstr "" + +#. module: base_location +#: model:ir.model,name:base_location.model_res_better_zip +msgid "City/locations completion object" +msgstr "" + +#. module: base_location +#: model:ir.model,name:base_location.model_res_company +msgid "Companies" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_country_id +#: model:ir.ui.view,arch_db:base_location.view_better_zip_filter +#: model:ir.ui.view,arch_db:base_location.view_country_search +msgid "Country" +msgstr "" + +#. module: base_location +#: model:ir.model,name:base_location.model_res_country_state +msgid "Country state" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_create_uid +msgid "Created by" +msgstr "创建者" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_create_date +msgid "Created on" +msgstr "创建时间" + +#. module: base_location +#: model:ir.ui.view,arch_db:base_location.view_better_zip_filter +msgid "Group By" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_id +msgid "ID" +msgstr "ID" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip___last_update +msgid "Last Modified on" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_write_uid +msgid "Last Updated by" +msgstr "最后更新者" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_write_date +msgid "Last Updated on" +msgstr "上次更新日期" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_company_better_zip_id +msgid "Location" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_display_name +msgid "Name" +msgstr "" + +#. module: base_location +#: model:ir.model,name:base_location.model_res_partner +msgid "Partner" +msgstr "" + +#. module: base_location +#: model:ir.ui.view,arch_db:base_location.view_better_zip_filter +msgid "Search city" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_state_id +#: model:ir.ui.view,arch_db:base_location.view_better_zip_filter +msgid "State" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,help:base_location.field_res_better_zip_code +msgid "The official code for the city" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,help:base_location.field_res_company_better_zip_id +msgid "Use the city name or the zip code to search the location" +msgstr "" + +#. module: base_location +#: model:ir.model.fields,field_description:base_location.field_res_better_zip_name +#: model:ir.ui.view,arch_db:base_location.better_zip_form +#: model:ir.ui.view,arch_db:base_location.better_zip_tree +msgid "ZIP" +msgstr "" From 96212809d2421c77c7f390bd6588f572eeae8dad Mon Sep 17 00:00:00 2001 From: Francesco Apruzzese Date: Wed, 19 Oct 2016 10:57:33 +0200 Subject: [PATCH 2/2] [MIG] base_location: Migrated to 10.0 * Headers shortened * Move cities management to settings --- base_location/README.rst | 5 +- base_location/__init__.py | 23 +--- base_location/__manifest__.py | 40 ++----- base_location/models/__init__.py | 6 +- base_location/models/better_zip.py | 25 +---- base_location/models/company.py | 28 +---- base_location/models/partner.py | 27 +---- base_location/models/state.py | 26 +---- base_location/tests/__init__.py | 5 +- base_location/tests/test_completion.py | 7 +- base_location/views/better_zip_view.xml | 130 ++++++++++++----------- base_location/views/company_view.xml | 32 +++--- base_location/views/partner_view.xml | 42 ++++---- base_location/views/res_country_view.xml | 26 +++-- base_location/views/state_view.xml | 46 ++++---- 15 files changed, 174 insertions(+), 294 deletions(-) diff --git a/base_location/README.rst b/base_location/README.rst index d3434c556..9cafe8b0c 100644 --- a/base_location/README.rst +++ b/base_location/README.rst @@ -17,7 +17,7 @@ Usage .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/134/9.0 + :target: https://runbot.odoo-community.org/runbot/134/10.0 Bug Tracker =========== @@ -28,7 +28,7 @@ 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 `here `_. +10.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. Credits ======= @@ -42,6 +42,7 @@ Contributors * Alejandro Santana * Sandy Carter * Yannick Vaucher +* Francesco Apruzzese Icon ---- diff --git a/base_location/__init__.py b/base_location/__init__.py index bb01c93ee..a5fc6a4d0 100644 --- a/base_location/__init__.py +++ b/base_location/__init__.py @@ -1,24 +1,5 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# Author: Nicolas Bessi. Copyright Camptocamp SA -# Contributor: Pedro Manuel Baeza -# Ignacio Ibeas -# Alejandro Santana -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## +# Copyright 2016 Nicolas Bessi, Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import models diff --git a/base_location/__manifest__.py b/base_location/__manifest__.py index 68b0ab661..0f91b1db0 100644 --- a/base_location/__manifest__.py +++ b/base_location/__manifest__.py @@ -1,43 +1,19 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# Author: Nicolas Bessi. Copyright Camptocamp SA -# Contributor: Pedro Manuel Baeza -# Ignacio Ibeas -# Alejandro Santana -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## +# Copyright 2016 Nicolas Bessi, Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + { 'name': 'Location management (aka Better ZIP)', - 'version': '9.0.1.0.0', - 'depends': ['base'], + 'version': '10.0.1.0.0', + 'depends': [ + 'base', + ], 'author': "Camptocamp," "ACYSOS S.L.," "Alejandro Santana," "Serv. Tecnol. Avanzados - Pedro M. Baeza," "Odoo Community Association (OCA)", 'license': "AGPL-3", - 'contributors': [ - 'Nicolas Bessi ', - 'Pedro M. Baeza ', - 'Ignacio Ibeas (Acysos S.L.)', - 'Alejandro Santana ', - 'Sandy Carter ', - 'Yannick Vaucher ', - ], 'summary': '''Enhanced zip/npa management system''', 'website': 'http://www.camptocamp.com', 'data': ['views/better_zip_view.xml', @@ -49,6 +25,6 @@ 'demo': [ 'demo/better_zip.xml', ], - 'installable': False, + 'installable': True, 'auto_install': False, } diff --git a/base_location/models/__init__.py b/base_location/models/__init__.py index 351a33ad1..3d1df1e8d 100644 --- a/base_location/models/__init__.py +++ b/base_location/models/__init__.py @@ -1,8 +1,6 @@ # -*- coding: utf-8 -*- -# -# License, author and contributors information in: -# __openerp__.py file at the root folder of this module. -# +# Copyright 2016 Nicolas Bessi, Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import better_zip from . import partner diff --git a/base_location/models/better_zip.py b/base_location/models/better_zip.py index 7790d9ff7..c85ea78ae 100644 --- a/base_location/models/better_zip.py +++ b/base_location/models/better_zip.py @@ -1,25 +1,8 @@ # -*- coding: utf-8 -*- -# -# -# Author: Nicolas Bessi. Copyright Camptocamp SA -# Contributor: Pedro Manuel Baeza -# Ignacio Ibeas -# Alejandro Santana -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -from openerp import models, fields, api +# Copyright 2016 Nicolas Bessi, Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import models, fields, api class BetterZip(models.Model): diff --git a/base_location/models/company.py b/base_location/models/company.py index 6368761cf..d1970d2ae 100644 --- a/base_location/models/company.py +++ b/base_location/models/company.py @@ -1,33 +1,14 @@ # -*- coding: utf-8 -*- -# -# -# Author: Nicolas Bessi. Copyright Camptocamp SA -# Contributor: Pedro Manuel Baeza -# Ignacio Ibeas -# Alejandro Santana -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# -from openerp import models, fields, api +# Copyright 2016 Nicolas Bessi, Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import models, fields, api class ResCompany(models.Model): _inherit = 'res.company' - @api.one @api.onchange('better_zip_id') def on_change_city(self): if self.better_zip_id: @@ -39,6 +20,5 @@ class ResCompany(models.Model): better_zip_id = fields.Many2one( 'res.better.zip', string='Location', - select=1, help='Use the city name or the zip code to search the location', ) diff --git a/base_location/models/partner.py b/base_location/models/partner.py index c16ae83b1..1eaa08cf3 100644 --- a/base_location/models/partner.py +++ b/base_location/models/partner.py @@ -1,33 +1,14 @@ # -*- coding: utf-8 -*- -# -# -# Author: Nicolas Bessi. Copyright Camptocamp SA -# Contributor: Pedro Manuel Baeza -# Ignacio Ibeas -# Alejandro Santana -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# -from openerp import models, fields, api +# Copyright 2016 Nicolas Bessi, Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import models, fields, api class ResPartner(models.Model): _inherit = 'res.partner' zip_id = fields.Many2one('res.better.zip', 'City/Location') - @api.one @api.onchange('zip_id') def onchange_zip_id(self): if self.zip_id: diff --git a/base_location/models/state.py b/base_location/models/state.py index d9db12e50..5c3b31f60 100644 --- a/base_location/models/state.py +++ b/base_location/models/state.py @@ -1,26 +1,8 @@ # -*- coding: utf-8 -*- -# -# -# Author: Nicolas Bessi. Copyright Camptocamp SA -# Contributor: Pedro Manuel Baeza -# Ignacio Ibeas -# Alejandro Santana -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# -from openerp import models, fields +# Copyright 2016 Nicolas Bessi, Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import models, fields class ResCountryState(models.Model): diff --git a/base_location/tests/__init__.py b/base_location/tests/__init__.py index 78c6dfa4c..3c8d5b3d9 100644 --- a/base_location/tests/__init__.py +++ b/base_location/tests/__init__.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- -# © 2015 Yannick Vaucher (Camptocamp) -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# Copyright 2015 Yannick Vaucher, Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + from . import test_completion diff --git a/base_location/tests/test_completion.py b/base_location/tests/test_completion.py index 30ea0a743..cf75c05f3 100644 --- a/base_location/tests/test_completion.py +++ b/base_location/tests/test_completion.py @@ -1,9 +1,8 @@ # -*- coding: utf-8 -*- -# © 2015 Yannick Vaucher (Camptocamp) -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -"""Test a city completion and onchanges.""" +# Copyright 2015 Yannick Vaucher, Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from openerp.tests.common import TransactionCase +from odoo.tests.common import TransactionCase class TestCompletion(TransactionCase): diff --git a/base_location/views/better_zip_view.xml b/base_location/views/better_zip_view.xml index cfe13bc52..d384c7d8e 100644 --- a/base_location/views/better_zip_view.xml +++ b/base_location/views/better_zip_view.xml @@ -1,70 +1,74 @@ - - + - - res.better.zip.form - res.better.zip - -
- - - - - - - -
-
-
+ + res.better.zip.form + res.better.zip + +
+ + + + + + + +
+
+
+ + + res.better.zip.tree + res.better.zip + + + + + + + + + + - - res.better.zip.tree - res.better.zip - - - - - - - - - - + + res.better.zip.select + res.better.zip + + + + + + + + + + + + + + - - res.better.zip.select - res.better.zip - - - - - - - - - - - - - - + + Cites/locations + res.better.zip + form + tree,form + + + - - Cites/locations Management - res.better.zip - form - tree,form - - - + - + -
-
+ diff --git a/base_location/views/company_view.xml b/base_location/views/company_view.xml index e723db3a7..a2775ebd0 100644 --- a/base_location/views/company_view.xml +++ b/base_location/views/company_view.xml @@ -1,21 +1,19 @@ - - + - - - res.company.form.city - res.company - - - - - + + + res.company.form.city + res.company + + + + - + + - - + diff --git a/base_location/views/partner_view.xml b/base_location/views/partner_view.xml index cade97e03..cc3499b40 100644 --- a/base_location/views/partner_view.xml +++ b/base_location/views/partner_view.xml @@ -1,26 +1,24 @@ - - + - - res.partner.zip_id.2 - res.partner - - - - - - - - + + res.partner.zip_id.2 + res.partner + + + + - + + + + + - - + diff --git a/base_location/views/res_country_view.xml b/base_location/views/res_country_view.xml index 7e1deaa09..d45cd0cb1 100644 --- a/base_location/views/res_country_view.xml +++ b/base_location/views/res_country_view.xml @@ -1,17 +1,15 @@ - - + - - res.country.search - res.country - - - - - - - + + res.country.search + res.country + + + + + + + - - + diff --git a/base_location/views/state_view.xml b/base_location/views/state_view.xml index 38b550c97..e4e37845d 100644 --- a/base_location/views/state_view.xml +++ b/base_location/views/state_view.xml @@ -1,26 +1,26 @@ - - - - - view_country_state_form2 - res.country.state - - - - - - - - - - - + + + + + view_country_state_form2 + res.country.state + + + + + + + + + + - - - + + + +