How can I access the one2many field in sale.order model (order_line) and change the quantity for example. Appreciate your time
This question has been flagged
1
Atsakyti
3101
Rodiniai
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)
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Registracija| Related Posts | Replies | Rodiniai | Veikla | |
|---|---|---|---|---|
|
|
1
birž. 22
|
3985 | ||
|
|
1
bal. 24
|
2872 | ||
|
|
1
spal. 23
|
2962 | ||
|
|
1
geg. 23
|
3293 | ||
|
|
0
rugs. 22
|
3498 |