Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3003 มุมมอง

I'd like very much to be able to use the "Delete Dialog Box" module in v8

https://www.odoo.com/apps/modules/10.0/odoo_deletedialog/

However, since the way JavaScript works is different, installing v10's module in v8 won't work.

Is there anyone out there that knows how to adapt the following piece of code into v8's syntax?


odoo.define('navabrind_extra.extra_dialog_view', function(require) {

"use strict";

var ListRenderer = require('web.ListRenderer');

ListRenderer.include({

        _onTrashIconClick: function (event) {

               event.stopPropagation();

               var result = confirm("Are you sure you want to delete this record?");

               if (result){

                        var id = $(event.target).closest('tr').data('id');

                        this.trigger_up('list_record_delete', {id: id});

               }

        }

});

});

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ส.ค. 20
2489
0
ก.ย. 17
3674
2
พ.ย. 15
242
1
ก.พ. 24
11613
0
มี.ค. 15
150