Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
1692 Vues

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

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
juin 22
2578
1
avr. 24
1387
1
oct. 23
1572
1
mai 23
2038
0
sept. 22
2058