Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
6 Trả lời
9240 Lượt xem

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, 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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


Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 4 25
15104
12
thg 4 24
12501
3
thg 7 20
8721
1
thg 4 20
12997
1
thg 7 18
4758