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

Using widget="many2many_kanban" on Many2many field works fine and shows a button Add showing modal dialog to add existing records or create new one. I want to have Button Create right next to Add similar to the Customers form -> Contacts and Addresses tab

How can I achieve this?

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

Give

create="true" delete="true"

on kanban , if the user have enough access rights then the create button will shown if the form is in edit mode. else add the proper access rights

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

Forgot to mention that I have already:

<kanban class="" quick_create="false" create="true" delete="true">

Tác giả

I can create but from the modal window after pressing Add

I want to be able to Add or Create directly from Kanban view

Tác giả

I just realize if I use <field name="myfield" mode="kanban" > then I get Create button

if I use <field name="myfield" widget="many2many_kanban" > I get Add button

So how do I get both?

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 19
5065
1
thg 1 22
14652
1
thg 9 18
4457
3
thg 7 22
2917
2
thg 7 22
3648