コンテンツへスキップ
メニュー
この質問にフラグが付けられました

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
14022
0
5月 22
2564
2
3月 21
4571
2
10月 18
5224
3
10月 24
2786