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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
rugp. 22
14071
0
geg. 22
2572
2
kov. 21
4593
2
spal. 18
5242
3
spal. 24
2805