Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
1621 Weergaven

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

Avatar
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
jun. 22
2502
1
apr. 24
1351
1
okt. 23
1474
1
mei 23
1997
0
sep. 22
1985