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

I would like to be able to display a view which checks a given database field, and depending on its value displays ENABLED or DISABLED, but that updates the status every ´n´ seconds. sort kind of online activity monitor. Is that possible in Odoo?

If so, where could I look for more information on how to achieve that? I am specifically looking for information on how to program/define the "update" action.

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

You need to use some kind of auto refresh module for views, that refresh the data and also the view for changes. I just finish and tested the migration of a module mine that do that features for several type of views: list, form, kanban, calendar, graph

You can try it by installing:

https://github.com/aek/odoo_public/tree/8.0/addons/solt_autorefresh

After install and page refresh you just need to specify a value in seconds for the field auto_refresh of the Odoo Action. After that if you open any view that it's loaded by that action that view will be refreshed after the specified amount of seconds

Hope that helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 24
1617
1
thg 1 22
3696
1
thg 9 21
9393
1
thg 1 24
17006
0
thg 5 16
8148