The purpose of this module is to gather generic partner methods. It avoids to grow up excessively the number of modules in Odoo for small features.
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 14.0Adds a helper method to partner records that splits a long street address into several shorter address lines of a chosen length, useful for countries or reports with strict address field widths.
This module does not add any new screen, menu or button. It extends the existing partner model (res.partner) with one technical helper method, _get_split_address, which other modules or custom reports can call.
The method takes the street and street2 fields of a partner and returns a list of address lines. You choose how many lines you want and the maximum number of characters per line. If both street fields already fit within the maximum size, they are returned unchanged. If only street2 is too long, it is split into the remaining lines. If street itself is too long, street and street2 are joined and then split across all requested lines.
Splitting is done word by word, so words are not cut in the middle. By default, if a word cannot fit, it is simply left out of the result. If you ask for strict mode, the method instead raises a user error saying the address is too long and showing the words that could not be processed.
Because this is a helper method, it changes nothing visible in Odoo by itself. It is meant to be used by other modules, for example to print addresses on documents where the address block has limited width, or to prepare address data for countries that require three or four shorter street fields instead of the two standard 128-character fields.
Depends on
Models and fields (1)
- res.partner · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 14.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-03Confirmation status: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 12.0
Confirmed on 2026-11-03 in branch 12.0 of OCA/partner-contact.
terminal Installation and usage
No verified informationInstallation 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.
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.