Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
cc19561
[MV] rename better_zip to base_location
nbessi Jun 25, 2013
a8c8996
base_location: [IMP] Spanish translation and translation template.
Jun 25, 2013
52cce5c
[FIX] mutable default in function signature
nbessi Jul 9, 2013
7295a18
[FIX] base_location: Changed partner view to avoid extrange behaviour…
Jul 31, 2013
ff932a8
[FIX] Add context propagation to base_location
Feb 11, 2014
29b78a7
[Add] Add italian translation, change field class to edit-only for be…
Sep 22, 2014
586a657
base_location: Don't position zip_id after street2, to avoid layout i…
Dec 29, 2014
dd4a4f5
Danish translation
hhgabelgaard Jan 16, 2015
8712596
[IMP] base_location: Updated to v8 syntax and uses. Added filters in …
Jan 18, 2015
e4967f1
[IMP] base_location_geonames_import: Several improvements and added h…
pedrobaeza Feb 25, 2015
8640167
Add demo data
Mar 16, 2015
d035298
IMP Create new computed stored field 'display_name' that use zip, cit…
jjscarafia Mar 21, 2015
5d5d7fd
Translated to Danish
hhgabelgaard May 22, 2015
7016c3b
[MIG] base_location: Migration to 9.0
yvaucher Oct 14, 2015
2eccd7c
[MIG] base_location: Migrated to 10.0
OpenCode Oct 19, 2016
8e30e39
[FIX][10.0] base_location : "better_zip_ids" field set colspan="2" i…
kitcharoenp Jan 5, 2017
92b15d6
[10.0][IMP] base_location(geonames): Add Lat/Long (#405)
lasley Apr 24, 2017
d31ce00
OCA Transbot updated translations from Transifex
oca-transbot Sep 18, 2016
283f6a5
[MIG] base_location
etobella Oct 18, 2017
b91efc5
OCA Transbot updated translations from Transifex
oca-transbot Nov 25, 2017
537d30d
[IMP] base_location: Include onchange for state
pedrobaeza Apr 20, 2018
dc6be26
[IMP] base_location: name_search improvement (#585)
WohthaN May 16, 2018
40adbbe
Translated using Weblate (Spanish)
etobella Jul 13, 2018
3e8dd7d
Translated using Weblate (German)
rschnapka Aug 22, 2018
b34a1d8
[MIG] base_location: Migration to 12.0
aitorbouzas Oct 8, 2018
dc08883
[IMP] base_location: Add migration scripts
pedrobaeza Oct 16, 2018
47e756e
FIX base_location blocking editing company address.
eLBati Mar 13, 2019
48f2469
Translated using Weblate (Spanish)
josepmy Aug 4, 2019
dab9903
[FIX+MIG] base_location: 3 things:
pedrobaeza Aug 27, 2019
68bb269
[MIG] base_location: Migration to 13.0
pedrobaeza Sep 30, 2019
0260274
pre-commit, black, isort
OCA-git-bot Oct 12, 2019
453b227
[FIX] base_location: Don't apply domain when cities are not enforced
pedrobaeza Oct 15, 2019
996d386
Translated using Weblate (Portuguese (Brazil))
mileo Nov 25, 2019
1d8c141
Update translation files
oca-transbot Nov 26, 2019
403d156
Translated using Weblate (Dutch)
Oocademy Mar 10, 2020
a46ad7c
[FIX+IMP] base_location: Re-import process
pedrobaeza Apr 2, 2020
e71dd9f
Translated using Weblate (Portuguese (Brazil))
Jul 1, 2020
f2e2824
[IMP] : black, isort, prettier
pedrobaeza Oct 18, 2020
272b6fa
[MIG] base_location: Migration to 14.0
pedrobaeza Oct 24, 2020
f7821c4
[IMP] base_location: Switch to computed writable fields
pedrobaeza Nov 28, 2020
c161bfa
[14.0][FIX] base_location: Update name when changing city's state or …
ypapouin Dec 2, 2020
f7ccb78
[FIX] base_location: Don't slow down the partner view
pedrobaeza Jun 22, 2021
c8e518b
[IMP] Check that the zip code matches the one of the zip_id
ivantodorovich Jul 8, 2021
92e2cb9
[IMP] Improve readability of with_context(skip_check_zip=True)
ivantodorovich Jul 8, 2021
1c1b943
[FIX] city_id no longer shown.
ivantodorovich Jul 8, 2021
81f2189
[IMP] Also empty zip_id when city_id or zip mismatch
ivantodorovich Jul 8, 2021
11d3c52
[FIX] base_location: address field sync zip_id
ivantodorovich Oct 12, 2021
419fbee
[FIX] base_location: all users should be able to read
ivantodorovich Oct 14, 2021
7dbdcd5
[MIG] base_location: Migration to 15.0
pedrobaeza Oct 29, 2021
eb5bd91
[FIX] base_location: address field sync city_id
victoralmau Nov 23, 2021
4074b8b
[FIX] base_location: Fix development_status
ValentinVinagre Dec 28, 2021
7dc293a
Translated using Weblate (Catalan)
pablontura Apr 22, 2022
2517861
[MIG] base_location: Migration to 16.0
pedrobaeza Oct 7, 2022
09a5659
[UPD] Update base_location.pot
Oct 14, 2022
6c5e4ab
[UPD] README.rst
OCA-git-bot Oct 14, 2022
695b93c
Translated using Weblate (German)
marylla Nov 4, 2022
a17ba4d
[UPD] Update base_location.pot
Nov 23, 2022
bc0af4d
Update translation files
weblate Nov 23, 2022
9eda1ca
Translated using Weblate (French)
PierrickBrun Nov 29, 2022
9395478
Translated using Weblate (Italian)
francesco-ooops Jan 2, 2023
20f7e81
Translated using Weblate (Croatian)
badbole Jan 3, 2023
c88aac0
[FIX] base_location: Waadt state already exists in Odoo
yankinmax Feb 17, 2023
8162dda
base_location 16.0.1.0.1
OCA-git-bot Feb 17, 2023
6c19aa0
Translated using Weblate (Italian)
francesco-ooops Mar 7, 2023
bd9e2bd
Translated using Weblate (Slovenian)
sysadminmatmoz Apr 11, 2023
5adb67e
Translated using Weblate (French)
victor-champonnois Jun 2, 2023
516266a
Translated using Weblate (Croatian)
badbole Jun 2, 2023
99ee1f9
[UPD] README.rst
OCA-git-bot Sep 3, 2023
495a81e
Added translation using Weblate (French (Belgium))
gva-acsone Sep 20, 2023
2f52fcd
Update translation files
weblate Oct 10, 2023
0f6b55f
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 31, 2023
8ca31b6
Translated using Weblate (Italian)
mymage Dec 27, 2023
c24dacd
[IMP] base_location: pre-commit stuff
Jan 29, 2024
7d68cf7
[MIG] base_location: Migration to 17.0
Jan 30, 2024
ae6d015
[UPD] Update base_location.pot
Feb 26, 2024
288b6c6
[BOT] post-merge updates
OCA-git-bot Feb 26, 2024
d1f923e
Update translation files
weblate Feb 26, 2024
c592a59
Translated using Weblate (Swedish)
jakobkrabbe Jun 5, 2024
25334d6
[IMP] partner_contact_role: pre-commit execution
Aug 7, 2024
65e2879
Translated using Weblate (Catalan)
esteveblanch Sep 4, 2024
35ea7df
[IMP] base_location: pre-commit auto fixes
Kimkhoi3010 Oct 14, 2024
69bb70a
[FIX] base_location: Since odoo/odoo#81239 it is not necessary to add…
victoralmau Dec 10, 2021
defb1ae
[MIG] base_location: Migration to 18.0
Kimkhoi3010 Oct 14, 2024
98bc57f
[UPD] Update base_location.pot
Oct 31, 2024
5c8e2db
[BOT] post-merge updates
OCA-git-bot Oct 31, 2024
67ac454
Update translation files
weblate Oct 31, 2024
da8917c
[IMP] base_location: pre-commit auto fixes
bizzappdev Sep 30, 2025
060431b
[MIG] base_location: Migration to 19.0
bizzappdev Sep 30, 2025
c0e4116
[UPD] Update base_location.pot
Oct 27, 2025
eae80ea
[BOT] post-merge updates
OCA-git-bot Oct 27, 2025
116e006
[FIX] base_location: domain invisible city in company & placeholder
Saran440 Nov 15, 2025
77abc34
[UPD] Update base_location.pot
Nov 20, 2025
f33d317
[BOT] post-merge updates
OCA-git-bot Nov 20, 2025
f8b9433
Update translation files
weblate Nov 20, 2025
3e47fab
[UPD] Update base_location.pot
Dec 21, 2025
853ec9f
Update translation files
weblate Dec 29, 2025
dc81406
Translated using Weblate (Italian)
mymage Jan 5, 2026
c86d7df
[IMP] base_location: pre-commit auto fixes
Alexgars73 Sep 30, 2026
ff6a0fd
[MIG] base_location: Migration to 20.0
Alexgars73 Sep 30, 2026
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
138 changes: 138 additions & 0 deletions base_location/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

====================================
Location management (aka Better ZIP)
====================================

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

.. |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/license-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/20.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-20-0/partner-contact-20-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=20.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:%2020.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/20.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": "20.0.1.0.1",
"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.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