Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
797 Weergaven

When I import a list in events as attendees, they are not converted into leads, even though I have set up a Lead Generation Rule. If I create a new attendee directly in Odoo, the rule does work. How can I automatically convert imported attendees into leads?

Avatar
Annuleer
Beste antwoord

Hello Wim Peeters,

According to Native odoo behaviour, 

event_lead_rule_skip = True means skip lead creation

Solution would be overwrite following method to allow import process to create lead.


class EventRegistration(models.Model):
_inherit = 'event.registration'

​def _load_records_create(self, values):
""" In import mode: do not run rules those are intended to run when customers
buy tickets, not when bootstrapping a database. """
return super(EventRegistration, self.with_context(event_lead_rule_skip=False))._load_records_create(values)

Thanks & Regards,

CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209

Email: info@candidroot.com

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
apr. 25
2417
1
mrt. 25
1342
2
mrt. 25
1426
1
jul. 24
1463
0
mrt. 24
1904