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

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);
};

};

アバター
破棄
関連投稿 返信 ビュー 活動
3
2月 24
11700