Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Separate Last name - First Name ?

on 3/2/13, 2:41 PM 4,823 views

Is there any way to separate last name from first name while creating a contact? That would be very useful.

On 3/2/13, 9:02 PM

It's not about exporting contacts but ease of use. Because when you have 50 or more employees that can create contacts, each one of them will write up the name of the contact depending on their mood (ex. first name first, last name last no middle name. ex2 last name first, first name last and middle name). I can think of too many different cases. That makes it very difficult when trying to list the contacts ascending or descending depending on either first or last name or even family or middle name. So I consider the separation of fields to a more analytical way essential when creating a new contact. (ex. First name field, last name field, Middle name field, Family name field etc).

i totally agree. it will standardize name entry and will improve search and sort capabilities

omar bajunaid
on 3/3/13, 6:54 AM

Nicolas Bessi

--Nicolas Bessi--
| 5 7 8
Lausanne, Switzerland
--Nicolas Bessi--
Nicolas Bessi
On 3/4/13, 3:30 AM

You should have a look at partner_firstname addon for V7.0:


It will keep compatibility with existing functionnalities.


I will try it in my existing configuration and report back. Thanks in advance

on 3/4/13, 10:15 AM

I tried this on a test server and for sure can add first- and lastname seperately. The name is "build" by adding lastname + firstname together. Question1: Can there be a comma (,) in between to separate more clearly? Question 2: Possible to add a gender too?

on 3/6/13, 9:01 AM

How can I install this module ? When I type "partner" or "first" in the seach field in the module list, I do not find it...

on 5/27/13, 3:38 PM

You have to add the module directory to the addons (directories), restart openerp, update modules in your database and then you can find & install it.

on 5/30/13, 11:36 AM

Hi ! Thanks for your help. Our OpenERP is installed on Debian Wheezy via APT package (i inserted the openerp nightly repository has described here : http://nightly.openerp.com/#debian. I then installed bzr and installed the backage with : bzr branch lp:partner-contact-management. I can see the module in the add-ons directory (/usr/lib/pymodules/python2.7/openerp/addons/partner-contact-management) and restarted OpenERP (/etc/init.d/openerp restart). Now I log on OpenERP with admin account and Update module list. I search for the module "contact" or "Partner" and do not find it ! What to do ?

on 5/30/13, 12:14 PM

Remove the default filter at the Installed Modules view and search for "firstname".

on 6/6/13, 6:33 AM

Hi again... I removed the filer "Installed" in the "Installed Module" section and searched for "firstname" : still nothing ! Do you have any suggestion ?

on 6/6/13, 9:41 AM

You probably have to update the addons_path and add the path to the new module. Look here: http://help.openerp.com/question/3369/how-to-install-openerp-apps-from-launchpad/

on 6/6/13, 6:46 PM

here is what I do have in the 2 first lines of /etc/openerp/openerp-server.conf


addons_path = /usr/lib/pymodules/python2.7/openerp/addons

The module has been installed by bzr in the following location : /usr/lib/pymodules/python2.7/openerp/addons/partner-contact-management

So it is the same location as the preinstalled modules... Why can't I see it ?

on 6/7/13, 5:28 AM

I discovered that the fist name/lastname module was uner the directory /usr/lib/pymodules/python2.7/openerp/addons/partner-contact-management. I the added this path opener-server.conf like this :


addons_path = /usr/lib/pymodules/python2.7/openerp/addons,/usr/lib/pymodules/python2.7/openerp/addons/partner-contact-management

And then restarted openerp, and updated module lists. Now I can see the "Partner first name, last name" modul. I installed it and the new fileds have been added ! Now is there a way to modify the default Customer list (and contact list)to be sorted by lastname ?

on 6/7/13, 6:04 AM

Thank You. This link helped me to solve my issue with firstname and lastname.

Lithin T
on 7/30/13, 7:16 AM

how can I do that under windows?

Ali Reza Sajedi
on 8/6/13, 9:55 PM


| 5 6 8
Cornwall, Canada

Analysing, designing, coding and mentoring since 1975. Kilobytes to terabytes. Punch cards to punchy sites. My OpenERP video series: http://www.youtube.com/playlist?list=PLq7op4J183lX44ZlXPiHxUpRvmmRDtxye My Google Speadsheets --> OpenERP Data Pump project: http://martinhbramwell.github.io/GData_OpenERP_Data_Pump My email (with spaces removed) : mhb . warehouseman @ gmail . com

On 3/2/13, 8:53 PM

There is no way that I have ever seen.

Certainly, when you export contacts, the list of exportable fields contains no such distinction. You export "Name" without a separation into personal and family names.

Are you sure you REALLY need it?

When you consider all the special cases, from a localization and internationalization point of view (eg; Iceland, China), it's a rat's nest of hidden complexity.

Yes it is really needed. Lastname is used for letters, invoices and other official documents. Firstname is needed voor CRM purposes.

on 3/3/13, 4:24 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

3 follower(s)


Asked: 3/2/13, 2:41 PM
Seen: 4823 times
Last updated: 3/16/15, 8:10 AM