Skip to Content
मेन्यू
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
अग॰ 22
14352
0
मई 22
2789
2
मार्च 21
4833
2
अक्तू॰ 18
5610
3
अक्तू॰ 24
3234