From c372cb6adb8ac361183bfd7bb6d6401a5ac2c6bc Mon Sep 17 00:00:00 2001
From: Emanuel Buzey <buzeyemanuel@gmail.com>
Date: Mon, 9 Oct 2023 16:45:37 +0200
Subject: [PATCH] [FIX] energy_selfconsumption: remove invoicing label

---
 energy_selfconsumption/wizards/define_invoicing_mode_wizard.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py b/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py
index dd6e93acc..d7cfd0f7a 100644
--- a/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py
+++ b/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py
@@ -42,9 +42,10 @@ class ContractGenerationWizard(models.TransientModel):
 
     def save_data_to_selfconsumption(self):
         # Create product
+
         product_id = self.env["product.product"].create(
             {
-                "name": f"{self.invoicing_mode[1]} - {self.selfconsumption_id.name}",
+                "name": self.selfconsumption_id.name,
                 "lst_price": self.price,
                 "company_id": self.env.company.id,
                 "project_id": self.selfconsumption_id.project_id.id,
-- 
GitLab