From 32ded007da1fe1ae01c7c67e599536b38bfd24b4 Mon Sep 17 00:00:00 2001 From: Daniil Digtyar Vasilieva <daniildigtyar@gmail.com> Date: Wed, 19 Jul 2023 12:15:34 +0200 Subject: [PATCH] [FIX] energy_selfconsumption: owner not assigned to supply point when created --- energy_selfconsumption/wizards/selfconsumption_import_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/energy_selfconsumption/wizards/selfconsumption_import_wizard.py b/energy_selfconsumption/wizards/selfconsumption_import_wizard.py index 1fff35ae1..2c09c212c 100644 --- a/energy_selfconsumption/wizards/selfconsumption_import_wizard.py +++ b/energy_selfconsumption/wizards/selfconsumption_import_wizard.py @@ -163,7 +163,7 @@ class SelfconsumptionImportWizard(models.TransientModel): ) if not owner: try: - res = self.env["res.partner"].create( + owner = self.env["res.partner"].create( { "vat": line_dict["owner_vat"], "firstname": line_dict["owner_firstname"], -- GitLab