Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1689 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
čvn 22
2575
1
dub 24
1381
1
říj 23
1570
1
kvě 23
2036
0
zář 22
2054