Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
4084 Представления

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
14075
0
мая 22
2575
2
мар. 21
4599
2
окт. 18
5246
3
окт. 24
2807