Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
1611 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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)

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
iun. 22
2495
1
apr. 24
1346
1
oct. 23
1471
1
mai 23
1994
0
sept. 22
1979