bemade_packing_wizard: bug fix on package creation

This commit is contained in:
Marc Durepos 2024-02-05 11:48:47 -05:00
parent fb7b0cb3b6
commit c8dc89cf29
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
'name': 'Packing wizard',
'version': '15.0.1.0.0',
'version': '15.0.1.0.1',
'category': 'Extra Tools',
'summary': 'Allow automated packing type creation',
'description': """

View file

@ -59,7 +59,7 @@ class ChooseDeliveryPackage(models.TransientModel):
# if no package type found, create one
if not delivery_package_type:
delivery_package_type = delivery_package_type.create({
'name': f'Box {vals["width"]}x{vals["height"]}x{vals["length"]}',
'name': f'Box {self.width}x{self.height}x{self.length}',
'width': self.width,
'height': self.height,
'packaging_length': self.length,