Skip to main content

Allows to customize partner street number parsing and formatting

Project description

Odoo Community Association

Street numbers and extensions

Beta License: AGPL-3 OCA/partner-contact Translate me on Weblate Try me on Runboat

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

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 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 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. 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.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Hunki Enterprises BV

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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.

Current maintainer:

hbrunn

This module is part of the OCA/partner-contact project on GitHub.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_partner_street_number-16.0.1.0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_partner_street_number-16.0.1.0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d4ea4b0b852d923d0b69c6cdcf2663ab4c01db0c6ed87529acae48fecd2ea4a4
MD5 4519acd7792b70da65a13063ab3becd7
BLAKE2b-256 0e2a1af1fb833dbea25dcd8bfd2defbbbe27ff58962929b23ec5148ba7f446ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page