跳至内容
菜单
此问题已终结

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

形象
丢弃
相关帖文 回复 查看 活动
1
8月 22
13916
0
5月 22
2519
2
3月 21
4516
2
10月 18
5110
3
10月 24
2667