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

I try to create automated action, to update my mass mailing (email marketing) contact, so it will populate the mailing list automatically when it is blank. I created the below python code, but it is not working. Can you help to help what is wrong and what is the recommended python code to do this?

nama2 = env['mass.mailing_list.contact'].search([])
for record in nama2:
  record.write({'list_ids': mass_mailing.mass_mail_list_1})


thanks

Ảnh đại diện
Huỷ bỏ