Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
aug. 22
13900
0
mai 22
2489
2
mar. 21
4509
2
oct. 18
5096
3
oct. 24
2620