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

[18.0][MIG] base_location: Migration to 18.0 #1867

Merged
merged 84 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
777306a
[MV] rename better_zip to base_location
nbessi Jun 25, 2013
20ba840
base_location: [IMP] Spanish translation and translation template.
Jun 25, 2013
32be7b0
[FIX] mutable default in function signature
nbessi Jul 9, 2013
c559aa8
[FIX] base_location: Changed partner view to avoid extrange behaviour…
Jul 31, 2013
a3d6393
[FIX] Add context propagation to base_location
Feb 11, 2014
81abaf3
[Add] Add italian translation, change field class to edit-only for be…
Sep 22, 2014
0d17cf6
base_location: Don't position zip_id after street2, to avoid layout i…
Dec 29, 2014
0c9897f
Danish translation
hhgabelgaard Jan 16, 2015
be2a104
[IMP] base_location: Updated to v8 syntax and uses. Added filters in …
Jan 18, 2015
0355bfc
[IMP] base_location_geonames_import: Several improvements and added h…
pedrobaeza Feb 25, 2015
1c911c8
Add demo data
Mar 16, 2015
13abd70
IMP Create new computed stored field 'display_name' that use zip, cit…
jjscarafia Mar 21, 2015
8007571
Translated to Danish
hhgabelgaard May 22, 2015
a5b8217
[MIG] base_location: Migration to 9.0
yvaucher Oct 14, 2015
9473fd0
[MIG] base_location: Migrated to 10.0
OpenCode Oct 19, 2016
b8d09d1
[FIX][10.0] base_location : "better_zip_ids" field set colspan="2" i…
kitcharoenp Jan 5, 2017
129c4fb
[10.0][IMP] base_location(geonames): Add Lat/Long (#405)
lasley Apr 24, 2017
495258e
OCA Transbot updated translations from Transifex
oca-transbot Sep 18, 2016
202d881
[MIG] base_location
etobella Oct 18, 2017
1e3b994
OCA Transbot updated translations from Transifex
oca-transbot Nov 25, 2017
5deb741
[IMP] base_location: Include onchange for state
pedrobaeza Apr 20, 2018
463f725
[IMP] base_location: name_search improvement (#585)
WohthaN May 16, 2018
d380dbf
Translated using Weblate (Spanish)
etobella Jul 13, 2018
2984e87
Translated using Weblate (German)
rschnapka Aug 22, 2018
2e80275
[MIG] base_location: Migration to 12.0
aitorbouzas Oct 8, 2018
6bcab2c
[IMP] base_location: Add migration scripts
pedrobaeza Oct 16, 2018
c8b35ba
FIX base_location blocking editing company address.
eLBati Mar 13, 2019
f1c959b
Translated using Weblate (Spanish)
josepmy Aug 4, 2019
e39d162
[FIX+MIG] base_location: 3 things:
pedrobaeza Aug 27, 2019
e124b0b
[MIG] base_location: Migration to 13.0
pedrobaeza Sep 30, 2019
2516cf5
pre-commit, black, isort
OCA-git-bot Oct 12, 2019
7fd6739
[FIX] base_location: Don't apply domain when cities are not enforced
pedrobaeza Oct 15, 2019
b4b15a9
Translated using Weblate (Portuguese (Brazil))
mileo Nov 25, 2019
eafa119
Update translation files
oca-transbot Nov 26, 2019
877c325
Translated using Weblate (Dutch)
Oocademy Mar 10, 2020
0089752
[FIX+IMP] base_location: Re-import process
pedrobaeza Apr 2, 2020
c507001
Translated using Weblate (Portuguese (Brazil))
Jul 1, 2020
1f24bf0
[IMP] : black, isort, prettier
pedrobaeza Oct 18, 2020
cb5b171
[MIG] base_location: Migration to 14.0
pedrobaeza Oct 24, 2020
84a4a53
[IMP] base_location: Switch to computed writable fields
pedrobaeza Nov 28, 2020
34d2228
[14.0][FIX] base_location: Update name when changing city's state or …
ypapouin Dec 2, 2020
7126330
[FIX] base_location: Don't slow down the partner view
pedrobaeza Jun 22, 2021
15d5af4
[IMP] Check that the zip code matches the one of the zip_id
ivantodorovich Jul 8, 2021
ffabf3c
[IMP] Improve readability of with_context(skip_check_zip=True)
ivantodorovich Jul 8, 2021
5e86b52
[FIX] city_id no longer shown.
ivantodorovich Jul 8, 2021
29f1d1b
[IMP] Also empty zip_id when city_id or zip mismatch
ivantodorovich Jul 8, 2021
8a440be
[FIX] base_location: address field sync zip_id
ivantodorovich Oct 12, 2021
58bcb68
[FIX] base_location: all users should be able to read
ivantodorovich Oct 14, 2021
78e76d9
[MIG] base_location: Migration to 15.0
pedrobaeza Oct 29, 2021
d71d406
[FIX] base_location: address field sync city_id
victoralmau Nov 23, 2021
e0ec00a
[FIX] base_location: Fix development_status
ValentinVinagre Dec 28, 2021
1b48577
Translated using Weblate (Catalan)
pablontura Apr 22, 2022
b53e47c
[MIG] base_location: Migration to 16.0
pedrobaeza Oct 7, 2022
f070622
[UPD] Update base_location.pot
Oct 14, 2022
c0df66a
[UPD] README.rst
OCA-git-bot Oct 14, 2022
4831ac6
Translated using Weblate (German)
marylla Nov 4, 2022
90829d0
[UPD] Update base_location.pot
Nov 23, 2022
7577fb0
Update translation files
weblate Nov 23, 2022
429bd5e
Translated using Weblate (French)
PierrickBrun Nov 29, 2022
e888b47
Translated using Weblate (Italian)
francesco-ooops Jan 2, 2023
1551207
Translated using Weblate (Croatian)
badbole Jan 3, 2023
ea42a10
[FIX] base_location: Waadt state already exists in Odoo
yankinmax Feb 17, 2023
1eb9d85
base_location 16.0.1.0.1
OCA-git-bot Feb 17, 2023
d2e936b
Translated using Weblate (Italian)
francesco-ooops Mar 7, 2023
399a57d
Translated using Weblate (Slovenian)
sysadminmatmoz Apr 11, 2023
7d30925
Translated using Weblate (French)
victor-champonnois Jun 2, 2023
5bd89b7
Translated using Weblate (Croatian)
badbole Jun 2, 2023
3b95595
[UPD] README.rst
OCA-git-bot Sep 3, 2023
7684c95
Added translation using Weblate (French (Belgium))
gva-acsone Sep 20, 2023
a1a90e9
Update translation files
weblate Oct 10, 2023
75e90c0
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 31, 2023
ea54f53
Translated using Weblate (Italian)
mymage Dec 27, 2023
c7e393f
[IMP] base_location: pre-commit stuff
Jan 29, 2024
46e3f29
[MIG] base_location: Migration to 17.0
Jan 30, 2024
e416d4a
[UPD] Update base_location.pot
Feb 26, 2024
0b98316
[BOT] post-merge updates
OCA-git-bot Feb 26, 2024
785fe34
Update translation files
weblate Feb 26, 2024
82511ea
Translated using Weblate (Swedish)
jakobkrabbe Jun 5, 2024
67c0c2e
[IMP] partner_contact_role: pre-commit execution
jdidderen-nsi Aug 7, 2024
2ff0038
Translated using Weblate (Catalan)
esteveblanch Sep 4, 2024
6063be6
[IMP] base_location: pre-commit auto fixes
Kimkhoi3010 Oct 14, 2024
b81f233
[FIX] base_location: Since odoo/odoo#81239 it is not necessary to add…
victoralmau Dec 10, 2021
b8ae16e
oca-port: blacklist PR(s) , 1472 for base_location
Kimkhoi3010 Oct 14, 2024
d964b09
[MIG] base_location: Migration to 18.0
Kimkhoi3010 Oct 14, 2024
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
6 changes: 6 additions & 0 deletions .oca/oca-port/blacklist/base_location.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pull_requests": {
"orphaned_commits": "Nothing to port",
"1472": "Nothing to port"
}
}
134 changes: 134 additions & 0 deletions base_location/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
====================================
Location management (aka Better ZIP)
====================================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
:target: https://odoo-community.org/page/development-status
:alt: Mature
.. |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%2Fpartner--contact-lightgray.png?logo=github
:target: https://github.com/OCA/partner-contact/tree/18.0/base_location
:alt: OCA/partner-contact
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/partner-contact-18-0/partner-contact-18-0-base_location
: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/partner-contact&target_branch=18.0
:alt: Try me on Runboat

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

This module introduces a zip model that allows you to manage locations
in a better way.

The zips will allow the users to complete automatically all
address-related fields by just filling the zip.

Also allows different search filters.

**Table of contents**

.. contents::
:local:

Configuration
=============

1. Go to *Contacts / Configuration / Localization / Cities*.
2. Create a new City.
3. Go to *Contacts / Configuration / Localization / Zips*.
4. Create a new Zip and relate it to the city (you can also create the
Zip from the City).

or, with module 'Contacts Directory' installed: #. Go to *Contacts /
Configuration / Localization / Countries*. #. Locate the desired
country. #. Press on the button 'Cities' / 'Zips'.

Usage
=====

1. Access a partner record
2. Fill the field *Location completion*
3. Information about country, state, city and zip will be filled
automatically

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/partner-contact/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/partner-contact/issues/new?body=module:%20base_location%0Aversion:%2018.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
-------

* Camptocamp
* ACYSOS S.L.
* Alejandro Santana
* Tecnativa
* AdaptiveCity

Contributors
------------

- Nicolas Bessi (Camptocamp)
- Ignacio Ibeas (Acysos S.L.)
- Pedro M. Baeza <pedro.baeza@gmail.com>
- Alejandro Santana <alejandrosantana@anubia.es>
- Sandy Carter <sandy.carter@savoirfairelinux.com>
- Yannick Vaucher <yannick.vaucher@camptocamp.com>
- Francesco Apruzzese <f.apruzzese@apuliasoftware.it>
- Dave Lasley <dave@laslabs.com>
- Aitor Bouzas <aitor.bouzas@adaptivecity.com>
- Khoi (Kien Kim) <khoikk@trobz.com>

Other credits
-------------

- Icon park: Icon http://icon-park.com/icon/location-map-pin-orange3/

The migration of this module from 17.0 to 18.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.

.. |maintainer-pedrobaeza| image:: https://github.com/pedrobaeza.png?size=40px
:target: https://github.com/pedrobaeza
:alt: pedrobaeza

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-pedrobaeza|

This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/18.0/base_location>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions base_location/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
33 changes: 33 additions & 0 deletions base_location/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright 2016 Nicolas Bessi, Camptocamp SA
# Copyright 2018-2022 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Location management (aka Better ZIP)",
"version": "18.0.1.0.0",
"development_status": "Mature",
"depends": ["base_address_extended", "contacts"],
"author": (
"Camptocamp,"
"ACYSOS S.L.,"
"Alejandro Santana,"
"Tecnativa,"
"AdaptiveCity,"
"Odoo Community Association (OCA)"
),
"license": "AGPL-3",
"summary": """Enhanced zip/npa management system""",
"website": "https://github.com/OCA/partner-contact",
"data": [
"security/ir.model.access.csv",
"views/res_city_zip_view.xml",
"views/res_city_view.xml",
"views/res_country_view.xml",
"views/res_company_view.xml",
"views/res_partner_view.xml",
],
"demo": ["demo/res_city_zip.xml"],
"installable": True,
"auto_install": False,
"maintainers": ["pedrobaeza"],
}
11 changes: 11 additions & 0 deletions base_location/demo/res_city_zip.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="demo_brussels_city" model="res.city">
<field name="name">Brussels</field>
<field name="country_id" ref="base.be" />
</record>
<record id="demo_brussels_zip" model="res.city.zip">
<field name="name">1000</field>
<field name="city_id" ref="demo_brussels_city" />
</record>
</odoo>
Loading
Loading