跳至內容
選單
此問題已被標幟

I have a wizard (selection_assistant) with a one2many relationship to another transient model (slot).

I am showing the slot (one2many) as a list view inside the wizard (selection_assistant) and would like to create a selection button.

<button string="select" attrs="{'invisible': [('selected','=',True)]}" type="object" name="select_slot" title="select"/>

However when the wizard shows the button is disabled.

I am aware that list view buttons are disabled when a form is in edit mode and I believe this is related to my issue.

I expect that a wizard is never saved.

Anyone done something similar?

頭像
捨棄
作者

Ended up wrapping the action with a python method that created the wizard first (selection_assistant) and then opened the form.

Hi Mai,

Could you provide more information on how you have handled this? I'm interested in triggering a wizard from a list view button, but not sure what approach I should take.

相關帖文 回覆 瀏覽次數 活動
17
12月 22
22080
0
4月 21
3463
1
6月 24
442
1
11月 16
5927
1
2月 16
4958