OdooWiki OCA HUB

Partner Address Split

partner_address_split folder_open OCA/partner-contact open_in_new
Warehouse License: AGPL-3

The purpose of this module is to gather generic method to split address.

Add methods to Partner model like _get_split_address()

> This method allows to get a number of street fields according to your > choice. 2 fields by default in Odoo with 128 width chars. In some > countries you have constraints on width of street fields and you > should use 3 or 4 shorter fields. You also need of this feature to > avoid headache with overflow printing task

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds a helper method to partners that splits a long street address into several shorter street lines, so addresses can be printed or exported in countries that limit street field length.

This module does not add any new screen, menu or button. It only adds a technical helper to the partner record (res.partner) that other modules or custom reports can call.

The helper takes two inputs: how many street lines you want and the maximum number of characters allowed per line. It looks at the two standard address fields, street and street2, and returns a list with the requested number of lines.

  • If both fields already fit within the maximum size, they are returned as they are, with empty lines added if you asked for more lines than needed.
  • If only the first street line fits, the second line is split word by word into the remaining lines.
  • If the first street line is too long, both street lines are joined and split word by word across all requested lines.

Splitting always happens on spaces, so words are not cut in the middle. The result is a simple list of text values that a report or export can use directly. No data is stored, no field is added, and no automatic action runs in the background; the behaviour only happens when another piece of code calls the helper.

Depends on

base
Models and fields (1)
  • res.partner · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/partner-contact.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.