Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
4004 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
серп. 22
13911
0
трав. 22
2515
2
бер. 21
4512
2
жовт. 18
5109
3
жовт. 24
2652