diff --git a/sale_crm_school/i18n/es.po b/sale_crm_school/i18n/es.po
index f9213192..d2e59e6e 100644
--- a/sale_crm_school/i18n/es.po
+++ b/sale_crm_school/i18n/es.po
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2021-07-12 10:32+0000\n"
-"PO-Revision-Date: 2021-07-12 10:32+0000\n"
+"POT-Creation-Date: 2021-08-20 09:33+0000\n"
+"PO-Revision-Date: 2021-08-20 09:33+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -15,6 +15,13 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
+#. module: sale_crm_school
+#: model:ir.model.fields,field_description:sale_crm_school.field_crm_lead_future_student__additional_product_ids
+#: model_terms:ir.ui.view,arch_db:sale_crm_school.crm_case_form_view_oppor_inh2_sale_crm_school
+#: model_terms:ir.ui.view,arch_db:sale_crm_school.crm_lead_future_student_form_view_inh_sale_crm_school
+msgid "Additional Products"
+msgstr "Productos adicionales"
+
#. module: sale_crm_school
#: model:ir.model,name:sale_crm_school.model_res_partner
msgid "Contact"
@@ -107,12 +114,14 @@ msgstr "Estado"
#. module: sale_crm_school
#: code:addons/sale_crm_school/models/crm_lead.py:120
+#: code:addons/sale_crm_school/models/crm_lead.py:129
#, python-format
msgid "There are not future student to register."
msgstr "No hay alumnos a registrar."
#. module: sale_crm_school
#: code:addons/sale_crm_school/models/crm_lead.py:113
+#: code:addons/sale_crm_school/models/crm_lead.py:122
#, python-format
msgid "There should be at least a current academic year"
msgstr "Debería existir al menos un año académico actual"
diff --git a/sale_crm_school/i18n/eu_ES.po b/sale_crm_school/i18n/eu_ES.po
index 48871a9d..138ffc2a 100644
--- a/sale_crm_school/i18n/eu_ES.po
+++ b/sale_crm_school/i18n/eu_ES.po
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2021-07-12 10:32+0000\n"
-"PO-Revision-Date: 2021-07-12 10:32+0000\n"
+"POT-Creation-Date: 2021-08-20 09:33+0000\n"
+"PO-Revision-Date: 2021-08-20 09:33+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -15,6 +15,13 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
+#. module: sale_crm_school
+#: model:ir.model.fields,field_description:sale_crm_school.field_crm_lead_future_student__additional_product_ids
+#: model_terms:ir.ui.view,arch_db:sale_crm_school.crm_case_form_view_oppor_inh2_sale_crm_school
+#: model_terms:ir.ui.view,arch_db:sale_crm_school.crm_lead_future_student_form_view_inh_sale_crm_school
+msgid "Additional Products"
+msgstr ""
+
#. module: sale_crm_school
#: model:ir.model,name:sale_crm_school.model_res_partner
msgid "Contact"
@@ -107,12 +114,14 @@ msgstr "Egoera"
#. module: sale_crm_school
#: code:addons/sale_crm_school/models/crm_lead.py:120
+#: code:addons/sale_crm_school/models/crm_lead.py:129
#, python-format
msgid "There are not future student to register."
msgstr ""
#. module: sale_crm_school
#: code:addons/sale_crm_school/models/crm_lead.py:113
+#: code:addons/sale_crm_school/models/crm_lead.py:122
#, python-format
msgid "There should be at least a current academic year"
msgstr ""
diff --git a/sale_crm_school/i18n/sale_crm_school.pot b/sale_crm_school/i18n/sale_crm_school.pot
index 10a73810..afae6099 100644
--- a/sale_crm_school/i18n/sale_crm_school.pot
+++ b/sale_crm_school/i18n/sale_crm_school.pot
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2021-07-12 10:32+0000\n"
-"PO-Revision-Date: 2021-07-12 10:32+0000\n"
+"POT-Creation-Date: 2021-08-20 09:32+0000\n"
+"PO-Revision-Date: 2021-08-20 09:32+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -15,6 +15,13 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
+#. module: sale_crm_school
+#: model:ir.model.fields,field_description:sale_crm_school.field_crm_lead_future_student__additional_product_ids
+#: model_terms:ir.ui.view,arch_db:sale_crm_school.crm_case_form_view_oppor_inh2_sale_crm_school
+#: model_terms:ir.ui.view,arch_db:sale_crm_school.crm_lead_future_student_form_view_inh_sale_crm_school
+msgid "Additional Products"
+msgstr ""
+
#. module: sale_crm_school
#: model:ir.model,name:sale_crm_school.model_res_partner
msgid "Contact"
@@ -107,12 +114,14 @@ msgstr ""
#. module: sale_crm_school
#: code:addons/sale_crm_school/models/crm_lead.py:120
+#: code:addons/sale_crm_school/models/crm_lead.py:129
#, python-format
msgid "There are not future student to register."
msgstr ""
#. module: sale_crm_school
#: code:addons/sale_crm_school/models/crm_lead.py:113
+#: code:addons/sale_crm_school/models/crm_lead.py:122
#, python-format
msgid "There should be at least a current academic year"
msgstr ""
diff --git a/sale_crm_school/models/crm_lead.py b/sale_crm_school/models/crm_lead.py
index 20ffe9ca..3823938e 100644
--- a/sale_crm_school/models/crm_lead.py
+++ b/sale_crm_school/models/crm_lead.py
@@ -94,6 +94,10 @@ class CrmLeadFutureStudent(models.Model):
sale_order_state = fields.Selection(
string="Sale Order Status", related="sale_order_id.state",
store=True)
+ additional_product_ids = fields.Many2many(
+ comodel_name="product.product", string="Additional Products",
+ relation="rel_future_student_addproduct", column1="student_id",
+ column2="product_id")
@api.multi
def create_new_student(self, partner_id=False):
@@ -103,6 +107,11 @@ def create_new_student(self, partner_id=False):
else:
super(CrmLeadFutureStudent,
self).create_new_student(partner_id=partner_id)
+ if self.additional_product_ids:
+ self.child_id.write({
+ "additional_product_ids": [
+ (4, x.id) for x in self.additional_product_ids],
+ })
@api.multi
def create_sale_order_for_student(self):
diff --git a/sale_crm_school/views/crm_lead_future_student_view.xml b/sale_crm_school/views/crm_lead_future_student_view.xml
index a4f7bd31..ceb8c2d9 100644
--- a/sale_crm_school/views/crm_lead_future_student_view.xml
+++ b/sale_crm_school/views/crm_lead_future_student_view.xml
@@ -45,6 +45,12 @@
+
+
+
+
diff --git a/sale_crm_school/views/crm_lead_view.xml b/sale_crm_school/views/crm_lead_view.xml
index 3f4882d7..7e6bab1c 100644
--- a/sale_crm_school/views/crm_lead_view.xml
+++ b/sale_crm_school/views/crm_lead_view.xml
@@ -21,6 +21,12 @@
+
+
+
+