Skip to Content
Menu
You need to be registered to interact with the community.
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
avg. 22
13939
0
maj 22
2526
2
mar. 21
4523
2
okt. 18
5123
3
okt. 24
2684