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


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

    product_name = fields.Char(
        string="Nom del producte",
        related="product_id.name",
        readonly=True,
        store=True,
        translate=False,
    )
