Skip to content

Commit

Permalink
[IMP] product_secondary_unit: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pfranck committed Nov 12, 2024
1 parent 608f101 commit 56e5e97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions product_secondary_unit/models/product_secondary_unit_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion product_secondary_unit/views/product_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,4 @@
</xpath>
</field>
</record>

</odoo>

0 comments on commit 56e5e97

Please sign in to comment.