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

Hello All, I want when the user set a value to the filed the system save it and when he create a new record the system suggest this value. any suggestion ? Thank you

아바타
취소

Why do you want to do it with javascript? You can do it on openerp with defaults and a function that throws the last value inserted and that's all.

작성자

Please let me the function name. what i can put here _defaults = { 'my_field' : ???, }

베스트 답변

I have the same problem. In the ineger fields the default value is 0. If you try to set this to some other value, using the _defaults like so: _defaults = { 'account_id': None,  }. You can set it to any value except for Null value. I guess this gets overriden with the javascript controll seting a value 0 if there is no value given by the server. Any ideas on this. Thank you.

아바타
취소
관련 게시물 답글 화면 활동
0
7월 25
216
1
7월 25
4975
0
7월 25
515
0
6월 25
620
1
6월 25
805