Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4158 Widoki

Hello, I am trying to inheriting var Pos from point_of_sale from openerp 6.1 module to override get_app_data() function please help me. Here is my code for referance which gives error "module is undefined": This is my inherited js file:

openerp.my_pos = function(instance){

instance.my_pos = {};

var module = instance.point_of_sale;

var _super_ = module.Pos.prototype.get_app_data;

module.Pos.prototype.get_app_data = function(){
     console.log('Hello!');
     _super_.call(this);
};

};

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
lut 24
11584