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

In develop mode I can set default values for the fields I want.  I works like a charm when I press Create.  But if we start with the button / Function Upload, where you upload a receipt, the defaults are not used.   

Any tricsk we can do ?

아바타
취소
베스트 답변

hi not sure it can work, but i suggest to try with automated actions.
https://odootricks.tips/about/automated-actions/


아바타
취소
작성자

I did test Automatic actions. Set value on Create. I did work for function Upload. But a big disadvantage: If user use Create, and the changes values - since he want to register something different - the automatic action go active when you save. Quite logic, since records are created when you save.
So we need something that fill the values when you open the form view. And do not overwrite if you change. Like how the default values.

Some Phyton code to set default values on open form?

try to make another with condition-on updated and something like that

관련 게시물 답글 화면 활동
3
9월 25
2721
0
8월 25
320
1
8월 25
2343
2
7월 25
8147
2
7월 25
4579