How can I access the one2many field in sale.order model (order_line) and change the quantity for example. Appreciate your time
Această întrebare a fost marcată
1
Răspunde
3109
Vizualizări
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)
Îți place discuția? Nu doar citi, alătură-te!
Creează-ți un cont astăzi pentru a beneficia de funcții exclusive și a interacționa cu minunata noastră comunitate!
Înscrie-te| Postări similare | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
Get the values of one2many field
Rezolvat
|
|
1
iun. 22
|
3986 | |
|
|
1
apr. 24
|
2873 | ||
|
|
1
oct. 23
|
2962 | ||
|
|
1
mai 23
|
3294 | ||
|
|
0
sept. 22
|
3506 |