How can I access the one2many field in sale.order model (order_line) and change the quantity for example. Appreciate your time
Denna fråga har flaggats
1
Besvara
3132
Vyer
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)
Njuter du av diskussionen? Läs inte bara, delta också!
Skapa ett konto idag för att ta del av exklusiva funktioner och engagera dig i vår fantastiska community!
Registrera dig| Relaterade inlägg | Svar | Vyer | Verksamhet | |
|---|---|---|---|---|
|
|
1
juni 22
|
4003 | ||
|
|
1
apr. 24
|
2882 | ||
|
|
1
okt. 23
|
2966 | ||
|
|
1
maj 23
|
3322 | ||
|
|
0
sep. 22
|
3527 |