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

Hi,

how can I modify the 'duplicate' function for invoices in a custom module ? in some case, I don't want to duplicate the field 'origin', I want to make it empty.

eg :  when I duplicate an invoice generated from a sale order, I don't want to duplicate the field 'Origin' which contains the sale order number.

thank for help,


Laurent33

아바타
취소
베스트 답변

Hello, 
First you need to inherit the field and after add copy=False in the field.
In that case you're field will be empty in case of duplicate.

아바타
취소
관련 게시물 답글 화면 활동
1
11월 16
7688
3
12월 22
5950
2
6월 20
4052
5
1월 20
8421
1
11월 17
3959