跳至内容
菜单
此问题已终结
1949 查看

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

形象
丢弃