Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1928 Widoki

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

Awatar
Odrzuć