How can I access the one2many field in sale.order model (order_line) and change the quantity for example. Appreciate your time
คำถามนี้ถูกตั้งค่าสถานะ
1
ตอบกลับ
3134
มุมมอง
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
|
4013 | |
|
|
1
เม.ย. 24
|
2886 | ||
|
|
1
ต.ค. 23
|
2969 | ||
|
|
1
พ.ค. 23
|
3328 | ||
|
|
0
ก.ย. 22
|
3534 |