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

stock.inventory has no create method.

If I wanted to auto populate the Inventory Reference field (name) then how would I do this?

Super to osv.create somehow?

The write method is too late for me - I want the user to see the auto populated name.

아바타
취소

What is the problem? You can override create or write method as you have done it for other objects.

베스트 답변

The create method is part of Model (if I am correct), which is inherited by stock.inventory. All object do have the create method

So you can override the method, just make sure you use the same input-parameters as other objects.

아바타
취소
관련 게시물 답글 화면 활동
1
3월 16
5998
4
3월 15
11533
2
7월 25
4316
3
11월 22
7520
1
3월 15
8042