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

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
14107
0
трав. 22
2600
2
бер. 21
4633
2
жовт. 18
5271
3
жовт. 24
2860