mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] delivery_gso: packaging type 15
This commit is contained in:
@@ -150,7 +150,7 @@ class ProviderGSO(models.Model):
|
|||||||
if not package:
|
if not package:
|
||||||
package_type = self.gso_default_packaging_id
|
package_type = self.gso_default_packaging_id
|
||||||
else:
|
else:
|
||||||
package_type = package.packaging_id
|
package_type = package.package_type_id
|
||||||
length_uom = self.env['product.template']._get_length_uom_id_from_ir_config_parameter()
|
length_uom = self.env['product.template']._get_length_uom_id_from_ir_config_parameter()
|
||||||
if length_uom.name == 'ft':
|
if length_uom.name == 'ft':
|
||||||
return {'Length': round(package_type.packaging_length / 12.0), 'Width': round(package_type.width / 12.0), 'Height': round(package_type.height / 12.0)}
|
return {'Length': round(package_type.packaging_length / 12.0), 'Width': round(package_type.width / 12.0), 'Height': round(package_type.height / 12.0)}
|
||||||
|
|||||||
Reference in New Issue
Block a user