root 2 years ago
parent
commit
3601d256ba
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      models/partner.py

+ 2
- 2
models/partner.py View File

@ -158,11 +158,11 @@ class ResPartner(models.Model):
vals['title_id']=int(p.title) vals['title_id']=int(p.title)
vals['country_id']=int(p.country_id) vals['country_id']=int(p.country_id)
vals['list_ids']=[(4,int(mailing_list.id))] vals['list_ids']=[(4,int(mailing_list.id))]
#mailing_contact=self.env['mailing.contact'].sudo().create(vals)
mailing_contact=self.env['mailing.contact'].sudo().create(vals)
_logger.error("created and added to main sb list:"+str(p.email)) _logger.error("created and added to main sb list:"+str(p.email))
else: else:
if not mailing_list in mailing_contact.list_ids: if not mailing_list in mailing_contact.list_ids:
#mailing_contact.write({'list_ids':[(4,int(mailing_list.id))]})
mailing_contact.write({'list_ids':[(4,int(mailing_list.id))]})
_logger.error("updated and added to main sb list:"+str(p.email)) _logger.error("updated and added to main sb list:"+str(p.email))
def partners_near_saint_cosme(self): def partners_near_saint_cosme(self):


Loading…
Cancel
Save