Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1759 Lượt xem

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 ?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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


Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 25
2394
2
thg 7 25
7886
2
thg 7 25
4293
2
thg 7 25
4030
2
thg 6 25
2636