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

I am trying to hide a particular stage using the stage name in sales pipeline of odoo 8,

i.e,


var kanbanview = instance.web_kanban;

kanbanview.KanbanView.include({

     do_process_groups: function (groups) {

        var self = this;

         this._super(groups);

 

         for (var key in self.groups) {

              if (self.groups[key]['title'] == 'Waiting for approval'){

                     var test = self.groups[key].$el;

                     test.css("display", "None");

            }

} },

});

   I have used this method in odoo 9 and it is working. But in odoo 8, 'self.groups' is an object which has all the stages in it, but I am unable to  iterate through the stages in it. Is there any other way to do it ?
('Waiting for approval' is  the name of the stage which I have created) 
Thank you

アバター
破棄
著作者 最善の回答

It is working when I checked it in a new database

アバター
破棄
関連投稿 返信 ビュー 活動
3
9月 15
5672
4
9月 15
4176
1
2月 25
559
3
4月 17
4937
2
2月 25
662