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
14523
0
Mei 22
2876
2
Mar 21
4945
2
Okt 18
5697
3
Okt 24
3330