How can I access the one2many field in sale.order model (order_line) and change the quantity for example. Appreciate your time
Diese Frage wurde gekennzeichnet
1
Antworten
3113
Ansichten
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)
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
Registrieren| Verknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
|---|---|---|---|---|
|
|
1
Juni 22
|
3987 | ||
|
|
1
Apr. 24
|
2874 | ||
|
|
1
Okt. 23
|
2962 | ||
|
|
1
Mai 23
|
3296 | ||
|
|
0
Sept. 22
|
3508 |