跳至內容
選單
此問題已被標幟

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
14093
0
5月 22
2595
2
3月 21
4618
2
10月 18
5261
3
10月 24
2838