コンテンツへスキップ
メニュー
この質問にフラグが付けられました
6 返信
9234 ビュー

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, 

アバター
破棄
最善の回答

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


アバター
破棄
著作者

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.

著作者

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

関連投稿 返信 ビュー 活動
2
4月 25
15085
12
4月 24
12495
3
7月 20
8706
1
4月 20
12983
1
7月 18
4745