Skip to Content
Menú
This question has been flagged
1 Respondre
1544 Vistes

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

Avatar
Descartar
Best Answer

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
Related Posts Respostes Vistes Activitat
1
de juny 22
2424
1
d’abr. 24
1302
1
d’oct. 23
1444
1
de maig 23
1944
0
de set. 22
1928