تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4080 أدوات العرض

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
أغسطس 22
14067
0
مايو 22
2571
2
مارس 21
4591
2
أكتوبر 18
5239
3
أكتوبر 24
2803