Skip to Content
Menu
This question has been flagged
6 Replies
9324 Views

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
Discard
Best Answer

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
Discard
Author

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.

Author

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

Related Posts Replies Views Activity
2
Apr 25
15306
12
Apr 24
12600
3
Jul 20
8853
1
Apr 20
13097
1
Jul 18
4817