From 21ef986862e87451df8edd4f6a41d645964387d6 Mon Sep 17 00:00:00 2001 From: BernatPForgeFlow Date: Fri, 14 Jun 2024 15:37:47 +0200 Subject: [PATCH] [FIX] odoo: Change product_package_type dimensions to float Port from: https://github.com/Kencove/odoo/pull/4 --- addons/stock/models/stock_package_type.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/stock/models/stock_package_type.py b/addons/stock/models/stock_package_type.py index 52c1e0c5ff66e..1a8b7ed29f958 100644 --- a/addons/stock/models/stock_package_type.py +++ b/addons/stock/models/stock_package_type.py @@ -16,9 +16,9 @@ def _get_default_weight_uom(self): name = fields.Char('Package Type', required=True) sequence = fields.Integer('Sequence', default=1, help="The first in the sequence is the default one.") - height = fields.Integer('Height', help="Packaging Height") - width = fields.Integer('Width', help="Packaging Width") - packaging_length = fields.Integer('Length', help="Packaging Length") + height = fields.Float('Height', help="Packaging Height") + width = fields.Float('Width', help="Packaging Width") + packaging_length = fields.Float('Length', help="Packaging Length") base_weight = fields.Float(string='Weight', help='Weight of the package type') max_weight = fields.Float('Max Weight', help='Maximum weight shippable in this packaging') barcode = fields.Char('Barcode', copy=False)