diff --git a/views/account_move.xml b/views/account_move.xml
index a27e6b0859c6dfa455aa243ed5c279fbb04bdb6f..14cc30532439072c6244267545ab21694bfb57f2 100644
--- a/views/account_move.xml
+++ b/views/account_move.xml
@@ -33,10 +33,7 @@
                 >
                     <attribute name="invisible">True</attribute>
                 </xpath>
-                <xpath
-                    expr="//header"
-                    position="inside"
-                >
+                <xpath expr="//header" position="inside">
                     <button
                         name="reset_bordereau"
                         type="object"
diff --git a/wizard/scop_bordereau_update_liasse_wizard.py b/wizard/scop_bordereau_update_liasse_wizard.py
index 4f753f1ca813971da2e751f08a3365823d7ee7fa..76ff065b14c932cc7877f9b68a7ea85686701b4e 100644
--- a/wizard/scop_bordereau_update_liasse_wizard.py
+++ b/wizard/scop_bordereau_update_liasse_wizard.py
@@ -123,13 +123,17 @@ class ScopBordereauChangeLiasse(models.TransientModel):
                     lambda i: i.type_contribution_id.id == type_cotisation_ur
                 )
                 r.amount_ur_hdf = sum(cotiz_ur_hdf.mapped("amount_total"))
-            # UR Med
+            else:
+                r.amount_ur_hdf = 0
+                # UR Med
             ur_med = self.env.ref("cgscop_partner.riga_14243").id
             if partner.ur_id.id == ur_med:
                 cotiz_ur_med = cotiz.filtered(
                     lambda i: i.type_contribution_id.id == type_cotisation_ur
                 )
                 r.amount_ur_med = sum(cotiz_ur_med.mapped("amount_total"))
+            else:
+                r.amount_ur_med = 0
 
     # ------------------------------------------------------
     # Onchange