Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1946 Tampilan

How can I access the one2many field in sale.order model (order_line) and change the quantity for example. Appreciate your time

Avatar
Buang
Jawaban Terbai

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)

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jun 22
2845
1
Apr 24
1708
1
Okt 23
1888
1
Mei 23
2322
0
Sep 22
2359