Skip to content

Commit

Permalink
Merge PR #1867 into 18.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Oct 31, 2024
2 parents 7a2f725 + d964b09 commit cb326b1
Show file tree
Hide file tree
Showing 96 changed files with 18,701 additions and 0 deletions.
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 <[email protected]>
- Alejandro Santana <[email protected]>
- Sandy Carter <[email protected]>
- Yannick Vaucher <[email protected]>
- Francesco Apruzzese <[email protected]>
- Dave Lasley <[email protected]>
- Aitor Bouzas <[email protected]>
- Khoi (Kien Kim) <[email protected]>

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

0 comments on commit cb326b1

Please sign in to comment.