Ir al contenido
Menú
Se marcó esta pregunta
6 Respuestas
9335 Vistas

Hi, 

I am trying to create an automatic action in Odoo v12 entreprise in order to be able create a contact in a specific mailing list when a new contact is created in Odoo.

I created an automated action as below:


it does create the contact  the name, email address and newsletter are not correct.

I do think I need to use a pythin expression or maybe a reference but It does not work and I am not sure how I am supposed to use that options.

Any recommendations, thanks, 

Avatar
Descartar
Mejor respuesta

I think "Evaluation type" for Name and Email address both need to be Python expressions.  Here's an example that works (to create re-ordering rules). I hope it will help!

Use Automated Actions to create Reordering Rules


Avatar
Descartar
Autor

Hi,

thanks it helps indeed. I managed to record the email and name but I cant figure out how I could link to a specifi mailing list maybe by selecting reference but I have tire you think and it does not work:

https://ibb.co/myZ7LLJ

thanks for what you share above :)

These are two separate Models (db tables) so I think you have to do this in two stages. First add the contact to the Mailing Contacts and then add to Subscription Lists, but I'm not sure how you link them.

Autor

can't find the way to do it, I have been fooling around with it. Basically it is the model Mass Mailing contact, So I am creating a new automated action, it looks like that I need to update the `list_ids` field to link it to my Newsletter id = 1.

It is a many2many relation so I am not sure how to update that.

Here is the screenshot: https://ibb.co/4PTC8f5

Still learning about Odoo and Python :)

thanks

Publicaciones relacionadas Respuestas Vistas Actividad
2
abr 25
15336
12
abr 24
12614
3
jul 20
8869
1
abr 20
13111
1
jul 18
4837