Contact Personal Data
by Terrabit https://www.terrabit.ro , Dorin Hongu https://www.terrabit.roContact Personal Data
Personal data and CNP validation
Extends the standard Odoo Contacts module with personal data for individual contacts: the Romanian CNP (Personal Numeric Code) with checksum validation, identity card details, birthdate, gender and means of transport.
Personal Data tab. On a contact with the address type Contact that is not a company (in Odoo 20 a contact without a parent company is a company when it has a VAT number), the tab Personal Data groups the identity card (Card ID Number: series and number; Card ID Issued: issuing authority and date) and the CNP, Birthdate and Gender. The same fields are on the form of a contact added from a company and on the quick-create form.
Birthdate and gender from the CNP. When a CNP is entered, the birthdate is taken from digits 2 to 7 and the gender from the first digit. Changing the birthdate rewrites the date digits of the CNP and recomputes its check digit.
CNP validation. The CNP must have 13 digits and a valid check digit. Saving an existing contact with an invalid CNP stops with the message CNP invalid. On a new contact, created from the form or by import, an invalid CNP is cleared on save, without a message. An empty CNP is accepted.
Means of transport. The field Mean Transport (for example the plate number of a delegate's car) is shown under Reference in the Sales & Purchase tab of a contact that is not a company.
Search filters. In Contacts > Contacts, the search gets the filters Persons and Companies, which show only contacts without a parent company (Odoo 20 no longer has them as standard), and Delivery and Invoice for addresses of these types.
Contacts tab. On a contact that belongs to a company, the standard Contacts tab is hidden.
Contact name without the company. When the system parameter
contact.get_name_only is set, contacts of type Contact are shown by their
own name, without the name of their company.
Display name options for developers. The context keys show_phone,
show_category and address_inline add the phone number or the tags to the
contact name in relational fields, or put the name and address on one line.
Limitations
- Because the birthdate is filled from the CNP, and the CNP is then rebuilt from the birthdate, a CNP typed in the form with a wrong check digit gets the correct check digit without any message. A CNP of 12 digits is completed with a check digit the same way. Compare the CNP with the identity card.
- First digits 1 and 2 give a birth year in the 1900s, any other digit the 2000s; the gender is male only for the first digits 1 and 5.
- A CNP of 8 to 11 characters, or one whose digits 2 to 7 are not a valid date, makes the form fail with a technical error instead of a validation message.
20.0.1.4.14 (2026-11-24)
- Animated demo for the Apps Store page (
static/description/en/demo.gif), recorded bytest_capture_gifand shown under the hero of the page.
20.0.1.4.13 (2026-11-03)
- Description rewritten from the code: an invalid CNP is cleared on every new contact, the form included, not only at bulk import; documented the silent correction of the check digit and the other CNP limitations, the contact name without the company and the hidden Contacts tab on company contacts.
- The Personal Data tab follows the Odoo 20 company definition (VAT number); the Persons and Companies filters are added by the module.
20.0.1.4.12 (2026-10-11)
- Docs: emoji symbols added to the bold headings of the module description, for a uniform look on the Odoo Apps page. No code change.
20.0.1.4.11 (2026-10-09)
- Apps Store banner (banner.json).
20.0.1.4.10 (2026-10-01)
- Tests for the contact display name with
show_phone, for contacts with and without a phone (forward-port of the 19.0 CONTACT-001 fix; the 20.0 code already reads onlyphone).
20.0.1.4.9 (2026-09-29)
- Own module icon, instead of the generic gears it had.
Need help getting started?
Our 800+ apps on the Odoo Apps Store are used in Odoo implementations across Europe, the Americas, Asia and Africa — by companies we have never even met. That is the advantage of building modules that simply work.
Questions about this module? Write to us — the developers who build it will answer.
More apps by Terrabit
Other modules from the same publisher, built to work together. All apps →
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Discuss (mail) |
| Lines of code | 233 |
| Technical Name |
deltatech_contact |
| License | OPL-1 |
| Website | https://www.terrabit.ro |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module