From 250abd325066394918b7c75088392fc77fc09771 Mon Sep 17 00:00:00 2001
From: Daniil Digtyar Vasilieva <daniildigtyar@gmail.com>
Date: Mon, 10 Jul 2023 12:05:10 +0200
Subject: [PATCH] [IMP] energy_selfconsumption: line_dict name change

---
 .../wizards/selfconsumption_import_wizard.py                | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/energy_selfconsumption/wizards/selfconsumption_import_wizard.py b/energy_selfconsumption/wizards/selfconsumption_import_wizard.py
index c94512bfe..d6158bf2d 100644
--- a/energy_selfconsumption/wizards/selfconsumption_import_wizard.py
+++ b/energy_selfconsumption/wizards/selfconsumption_import_wizard.py
@@ -79,9 +79,9 @@ class SelfconsumptionImportWizard(models.TransientModel):
             logger.warning("Parser error", exc_info=True)
             raise UserError(_("Error parsing the file"))
 
-    def import_line(self, line, project):
+    def import_line(self, line_dict, project):
         partner = self.env['res.partner'].search([
-            '|', ('vat', '=', line['partner_vat']), ('vat', '=ilike', line['partner_vat'])
+            '|', ('vat', '=', line_dict['partner_vat']), ('vat', '=ilike', line_dict['partner_vat'])
         ], limit=1)
 
         if not partner:
@@ -97,7 +97,7 @@ class SelfconsumptionImportWizard(models.TransientModel):
             except:
                 return False, _('Could not create inscription for {vat}.').format(vat=line_dict['partner_vat'])
 
-        supply_point = self.env['energy_selfconsumption.supply_point'].search([('code', '=', line['code'])])
+        supply_point = self.env['energy_selfconsumption.supply_point'].search([('code', '=', line_dict['code'])])
 
         if supply_point and supply_point.partner_id != partner:
             return False, _(
-- 
GitLab