Skip to Content
Menu
This question has been flagged

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
Discard
Related Posts Replies Views Activity
1
Aug 22
12880
0
May 22
1804
2
Mar 21
3767
2
Oct 18
4350
3
Oct 24
1391