How can I access the one2many field in sale.order model (order_line) and change the quantity for example. Appreciate your time
Tämä kysymys on merkitty
1
Vastaa
3120
Näkymät
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)
Nautitko keskustelusta? Älä vain lue, vaan osallistu!
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
Rekisteröidy| Aiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
|---|---|---|---|---|
|
Get the values of one2many field
Ratkaistu
|
|
1
kesäk. 22
|
3992 | |
|
|
1
huhtik. 24
|
2875 | ||
|
|
1
lokak. 23
|
2962 | ||
|
|
1
toukok. 23
|
3298 | ||
|
|
0
syysk. 22
|
3510 |