Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2112 Lượt xem

I've a problem when including in PosDB (point_of_sale.DB) class.


as soon as i call this._super() on e.g. "get_product_by_category" function, the PoS is not starting. When i look in the browser dev-tools is see, that there is an infinite loop in rendering different widgets. 

in 15.0 i've done this super call exactly the same and it is working correctly.

has someone an idea how i should call _super function in v 16.0?

Example:

var PosDB = require("point_of_sale.DB");
PosDB.include({
    get_product_by_category: function(category_id) {
    // this creates an infinite loop on rendering widgets
    var products = this._super.apply(this, arguments);
    return products;
    },
});


Thanks in advance,

JS

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I have the same problem

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 25
2424
1
thg 3 24
2470
2
thg 6 24
3519
1
thg 2 24
2087
1
thg 2 24
2571