コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4969 ビュー

Is it possible to have multiple views/forms in a workflow being displayed depending on the state the workflow is in? If so how can i achieve that?

アバター
破棄
最善の回答

Hi,

In your form view you can use the attribute attr={'invisible': [('state', op, value)]}

アバター
破棄
著作者

Yes, but i actually wanted to load multiple forms not make some contents invisible since they are hugely different form one another

The probleme is the form view are load with the loading of the action. You may use the fields_view_get to choose the good view. But you must reload the action when your state changed. If you click on the button it is easy, but if your are already on the view and another user change the state, your view can be reloaded

著作者

Only one user can change the state at a time so, that isn't a problem. but what happens when the state changes and the user returns or some other users tries to view it, do i use the fields_view_get for the form view or the tree view?

関連投稿 返信 ビュー 活動
1
10月 24
68982
2
2月 23
1944
2
12月 23
25534
1
10月 21
9430
2
9月 15
5577