Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3447 Vizualizări

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

Imagine profil
Abandonează
Autor Cel mai bun răspuns

It is working when I checked it in a new database

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
3
sept. 15
6082
4
sept. 15
4475
2
iul. 25
512
1
feb. 25
961
3
apr. 17
5347