Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1524 Vistas

How can I access the one2many field in sale.order model (order_line) and change the quantity for example. Appreciate your time

Avatar
Descartar
Mejor respuesta

Hello,

I assume that you are talking about replacing a field in sales order lines using a custom module? If that's so, you can try to inherit the sale.order.lines model and later just rename the field.

class CustomSaleOrdeLines(models.Model):
    _inherit = sale.order.line

    product_uom_qty = fields.Float("Ordered Qty Edited")


Best regards,

Altela (altelasoftware.com)

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
jun 22
2396
1
abr 24
1292
1
oct 23
1434
1
may 23
1930
0
sept 22
1917