Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
6 Risposte
9894 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

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.

Autore

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

Post correlati Risposte Visualizzazioni Attività
2
apr 25
16614
12
apr 24
13372
3
lug 20
9648
1
apr 20
13942
1
lug 18
5502