HI,
In
Odoo Online, if you need to add a first name and a last name field to
the contacts/partners model and make them usable throughout Odoo without
extensive customization, there is indeed a simpler approach than
manually customizing views and lists.
One common approach is to
utilize Odoo's "Technical Settings" feature, which allows you to enable
developer mode and make direct modifications to fields and models
without needing to customize views manually.
Here's a step-by-step guide on how to achieve this:
- Enable Developer Mode: Go to Settings > Activate the Developer Mode.
- Access Technical Settings:
Once Developer Mode is activated, you'll see additional options in the
Settings menu. Look for the "Technical" section and access it.
- Modify Fields:
Within the "Technical" section, you'll find options to modify fields,
models, and other technical configurations. Look for the "Database
Structure" section and select "Fields".
- Add Fields: In the fields menu, you can add new fields to the contacts/partners model. Add fields for first name and last name.
- Update Views (if necessary):
In some cases, you may need to update views to display the new fields
correctly. You can do this by accessing the "Views" section under
"Technical" settings and modifying the appropriate views.
- Update Name Field (optional):
If you want to use the first name and last name fields to generate the
partner's name, you can customize the existing "name" field to be a
calculated field based on the first name and last name fields.
- Test and Validate: Once you've made the necessary modifications, be sure to test the changes thoroughly to ensure they behave as expected.
By
utilizing the Technical Settings in Odoo Online, you can efficiently
add first name and last name fields to the contacts/partners model
without the need for extensive customization. This approach simplifies
the process and ensures consistency across Odoo without manually
customizing views and lists
Hope it helps
Hi Bernhard!
Have you found a solution that works for you? I share your opinion. There seem to be more fields that should be broken down into parts, just think of the phone number or the address line.
Regards
Gregor
@Gregor Teichmann
No, I found no other ways as the below explained workarounds. Hope Odoo notices this requirement and includes it in future versions.