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

Hello

I'm trying to add a custom sequence to the sale order form. How can you determine the number of lines for the current order, when you press "add an item"? I saw a some older posts which use the context variable which was passed to the default_get in sale.order.line like this:

next_sequence = len(context.get('ref_ids')) + 1

https://www.odoo.com/de_DE/forum/hilfe-1/question/how-to-generate-automatic-sequence-number-in-one2many-field-67834

In odoo 10 default_get() gets passed two variables:

self, fields_list

fields_list is a list of fields from tha sale_order_line table. The self variable contains a lot of information but I can not find the information. Even with pydev. Is default_get still the way to go?

Thank for any input


아바타
취소
관련 게시물 답글 화면 활동
0
12월 19
4009
0
3월 23
5555
0
1월 19
3285
0
2월 16
4077
1
2월 16
3814