How can I access the one2many field in sale.order model (order_line) and change the quantity for example. Appreciate your time
La domanda è stata contrassegnata
1
Rispondi
3167
Visualizzazioni
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)
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
Get the values of one2many field
Risolto
|
|
1
giu 22
|
4053 | |
|
|
1
apr 24
|
2916 | ||
|
|
1
ott 23
|
3018 | ||
|
|
1
mag 23
|
3418 | ||
|
|
0
set 22
|
3561 |