Metadata-Version: 2.1
Name: odoo-addon-partner_street_number
Version: 16.0.1.0.0.2
Summary: Allows to customize partner street number parsing and formatting
Home-page: https://github.com/OCA/partner-contact
Author: Hunki Enterprises BV, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
License: AGPL-3
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 16.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Development Status :: 4 - Beta
Requires-Python: >=3.10
Requires-Dist: odoo<16.1dev,>=16.0a

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

=============================
Street numbers and extensions
=============================

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

.. |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/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/16.0/partner_street_number
    :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-16-0/partner-contact-16-0-partner_street_number
    :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=16.0
    :alt: Try me on Runboat

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

This module extends the functionality of base_address_extended to
support custom street name formats.

Further, it allows users to turn on manual entry of the components of a
street name, and to bulk split/compose street names of existing
partners.

**Table of contents**

.. contents::
   :local:

Use Cases / Context
===================

This module was developed because base_address_extended doesn't support
custom street name formats.

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

To configure this module, you need to:

1. Go to the form of a country
2. Fill in the fields 'Parse Regex' and 'Format Expression'
3. 'Parse Regex' should contain `named
   groups <https://docs.python.org/3/library/re.html#index-18>`__ with
   names ``street_name``, ``street_number``, ``street_number2`` that
   parses the split fields from the content of the ``street`` field
4. 'Format Expression' is an Odoo `template
   expression <https://www.odoo.com/documentation/16.0/applications/general/companies/email_template.html#dynamic-placeholders>`__
   that generates the content of the ``street`` field based on the split
   fields
5. You can fill in some string to test your expressions, first this
   string will be decomposed using 'Parse Regex', and then the parts
   will be joined together using 'Format Expression'. Ideally, that
   should yield the same value as you filled in

Usage
=====

To use this module, you need to:

1. Go to a partner
2. Set the partner's country to a country with the street name parse
   regex filled
3. Fill in a street name supported by the country's configuration
4. Observe that the fields ``street_name``, ``street_number`` and
   ``street_number2`` are filled according to the country's
   configuration

For bulk updating partner fields (ie after you've changed the
configuration of some country wrt street name parsing/formatting), use
the ``Update partner street fields`` wizard, available for group
``Contact Creation``.

In case you always want to edit the street name components manually,
activate setting ``Use split fields for street name in partner form``.

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:%20partner_street_number%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
-------

* Hunki Enterprises BV

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

- Holger Brunn <mail@hunki-enterprises.com>
  (https://hunki-enterprises.com)

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-hbrunn| image:: https://github.com/hbrunn.png?size=40px
    :target: https://github.com/hbrunn
    :alt: hbrunn

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

|maintainer-hbrunn| 

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
