Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1676 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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)

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 22
2571
1
thg 4 24
1379
1
thg 10 23
1563
1
thg 5 23
2027
0
thg 9 22
2030