콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
1757 화면

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)

아바타
취소
관련 게시물 답글 화면 활동
1
6월 22
2627
1
4월 24
1462
1
10월 23
1609
1
5월 23
2065
0
9월 22
2148