Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Agu 22
13933
0
Mei 22
2523
2
Mar 21
4518
2
Okt 18
5117
3
Okt 24
2682