Odoo Help

0

Dynamic Placeholder for ONLY First Name in Odoo Mass Mailing

By
Peter Campbell
on 11/29/16, 6:46 AM 393 views

Hi everyone


I've been using the CRM for emailing lists of customers how ever one thing that I can't seem to figure out is how to adjust the Dynamic Placeholder in order to pull just the first name from 'Name' field. 


Since Odoo doesn't have a first/last name option but just one field for anme I wonder is there any way to edit the placeholder so that it only pulls the first part in the name field?


Currently using placeholder as ${object.name}


Many thanks

1

Ray Carnes

--Ray Carnes--
16818
| 9 7 9
Atlanta, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0.

Completed Odoo Functional and Technical Training.

Major Skills:

  • User Needs and GAP Analysis;

  • Functional and Technical Design;

  • Prototyping and Proof of Concepts;

  • Requirements Specifications;

  • Agile Implementation;

  • Data Migration;

  • Configuration & Customization (UI and code);

  • Integration - Odoo and non Odoo Applications and Services;

  • Training and Knowledge Transfer;

  • Go Live Support;

  • Helpdesk;

  • Version Upgrades and Migration.

  • Accounting Expert.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

I am a skilled Communicator and I only take the serious things seriously!

Ray Carnes
On 4/15/17, 6:52 PM

This seems to work:

Dear ${object.partner_id.name}, Dear ${object.partner_id.name.split()[0]}



Example:




Works even when there is no space in the name:


Works a charm!!

Thanks Ray

i-A.C.Systems, Peter Campbell
on 4/18/17, 8:09 AM
0
Sean Donovan
On 4/15/17, 4:46 PM

To do this properly, you would need to create a custom field named something like "First Name" or "Mass Mailing Name", then, after adding that to all your contacts, pull the field out into your mail template using the name of the custom field, i.e. "x_first_name".  You would need to modify the contact form view and add a custom data field to the model in developer mode.

Scatch that - someone wrote a free extension - \https://accounts.odoo.com/apps/modules/10.0/partner_firstname/

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 11/29/16, 6:46 AM
Seen: 393 times
Last updated: 4/18/17, 8:09 AM