From 56e5e9775c343379bf61f84d2957a4e1c9399de4 Mon Sep 17 00:00:00 2001 From: Franck Plazanet Date: Tue, 12 Nov 2024 13:33:22 +0000 Subject: [PATCH] [IMP] product_secondary_unit: pre-commit auto fixes --- .../models/product_secondary_unit_mixin.py | 6 +++--- product_secondary_unit/views/product_views.xml | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/product_secondary_unit/models/product_secondary_unit_mixin.py b/product_secondary_unit/models/product_secondary_unit_mixin.py index 527f187da21d..276c4184b923 100644 --- a/product_secondary_unit/models/product_secondary_unit_mixin.py +++ b/product_secondary_unit/models/product_secondary_unit_mixin.py @@ -105,9 +105,9 @@ def _compute_helper_target_field_qty(self): continue if rec.secondary_uom_id.dependency_type == "independent": if rec[rec._secondary_unit_fields["qty_field"]] == 0.0: - rec[ - rec._secondary_unit_fields["qty_field"] - ] = default_qty_field_value + rec[rec._secondary_unit_fields["qty_field"]] = ( + default_qty_field_value + ) continue # To avoid recompute secondary_uom_qty field when # secondary_uom_id changes. diff --git a/product_secondary_unit/views/product_views.xml b/product_secondary_unit/views/product_views.xml index a24666be776b..fc44ab527336 100644 --- a/product_secondary_unit/views/product_views.xml +++ b/product_secondary_unit/views/product_views.xml @@ -52,5 +52,4 @@ -