How can I access the one2many field in sale.order model (order_line) and change the quantity for example. Appreciate your time
Bu soru işaretlendi
1
Cevapla
3121
Görünümler
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)
Tartışma hoşunuza mı gidiyor? Sadece okumakla kalmayın, katılın!
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
Get the values of one2many field
Çözüldü
|
|
1
Haz 22
|
3994 | |
|
|
1
Nis 24
|
2875 | ||
|
|
1
Eki 23
|
2962 | ||
|
|
1
May 23
|
3298 | ||
|
|
0
Eyl 22
|
3514 |