|
@ -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): |
|
|