Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1622 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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)

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
cze 22
2502
1
kwi 24
1351
1
paź 23
1476
1
maj 23
1997
0
wrz 22
1988