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

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ก.ย. 15
6103
4
ก.ย. 15
4482
2
ก.ค. 25
563
1
ก.พ. 25
969
3
เม.ย. 17
5354