Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1748 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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)

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Get the values of one2many field แก้ไขแล้ว
1
มิ.ย. 22
2623
1
เม.ย. 24
1456
1
ต.ค. 23
1605
1
พ.ค. 23
2057
0
ก.ย. 22
2134