[IMP] big refactoring :

use event_type instead of product_product
This commit is contained in:
clementthomas
2024-01-09 11:55:20 +01:00
parent a47ac870c1
commit c3acf2065e
7 changed files with 22 additions and 26 deletions

View File

@@ -8,8 +8,8 @@ class SurveyUserInput(models.Model):
def _create_opportunity_post_process(self):
"""After lead creation from survey answer (module survey_crm_generation),
if answer (survey_user_input) contains event_products_ids, copy it in lead.
if answer (survey_user_input) contains event_type_ids, copy it in lead.
"""
self.opportunity_id.event_products_ids = self.event_products_ids.ids
self.opportunity_id.event_type_ids = self.event_type_ids.ids
return super(SurveyUserInput, self)._create_opportunity_post_process()