Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

I have managed to get a button to appear by adding this code to the FormViewDialog javascript function: 

options.buttons.splice(2, 0, {
    text: _t("Save & Duplicate"),
    classes: "btn-primary",
    click: function () {
    },
});

However i'm not sure what it is needed in the click function in order to get it to duplicate the current element and open the pop up form.

Edit: This is for odoo 12

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 22
14071
0
thg 5 22
2572
2
thg 3 21
4593
2
thg 10 18
5242
3
thg 10 24
2805