Skip to Content
Menu
This question has been flagged
1733 Views

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

Avatar
Discard