# Copyright 2021 Berezi - AvanzOSC
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models


class StockMoveLine(models.Model):
    _inherit = "stock.move.line"

    height = fields.Float(string="Height", related="packaging_id.height", store=True)
    width = fields.Float(string="Width", related="packaging_id.width", store=True)
    packaging_length = fields.Float(
        string="Packaging Length", related="packaging_id.packaging_length", store=True
    )
    volume = fields.Float(string="Volume", related="packaging_id.volume", store=True)
