From 12195092d4e70351441e4a4d5c0e968e5a669911 Mon Sep 17 00:00:00 2001
From: benjamin <benjamin@le-filament.com>
Date: Fri, 5 Apr 2024 15:16:59 +0200
Subject: [PATCH] [FIX] product_ur and journal_ur referenced before assignment
 in refund

---
 wizard/scop_bordereau_refund_wizard.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/wizard/scop_bordereau_refund_wizard.py b/wizard/scop_bordereau_refund_wizard.py
index 7999449..93c7f3f 100644
--- a/wizard/scop_bordereau_refund_wizard.py
+++ b/wizard/scop_bordereau_refund_wizard.py
@@ -153,6 +153,7 @@ class ScopBordereauRefundWizard(models.TransientModel):
             )
 
         # CREATE REFUND
+        product_ur = journal_ur = False
         if partner_id.ur_id.id == ur_hdf:
             product_ur = self.env.company.contribution_hdf_id
             journal_ur = self.env.user.company_id.journal_ur_hdf_id
-- 
GitLab