Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1749 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
giu 22
2623
1
apr 24
1456
1
ott 23
1605
1
mag 23
2057
0
set 22
2134