Skip to Content
Menú
This question has been flagged
1 Respondre
4997 Vistes

i am working on a module where i want to create a kanban view like in opportunity but it show only the selected value

not all the possible values like in opportunity there is showing all stages 

but in my it shows only the selected stages by record

Avatar
Descartar
Autor Best Answer

see here:  https://www.odoo.com/forum/help-1/question/how-to-display-group-column-with-no-data-in-openerp-7s-kanban-view-30469

 

By the way solution is 

 

def _read_group_drivers(self, cr, uid, ids, domain, read_group_order=None, access_rights_uid=None, context=None):
    #search and pass one2many fieldsid and name in list for ex = [(id1,'name'),(id2, 'name2')] and fold 
        all_drivers = self.pool.get('soohoo.driver').search(cr, uid, [])
        #for driver in all_drivers:
        _logger.warning('drivers--------- %s ' %all_drivers)
        result = [(driver.id, driver.name) for driver in self.pool.get('soohoo.driver').browse(cr, uid, all_drivers)]
        fold = dict.fromkeys(range(1,len(result)+1), False)
        _logger.warning('here---- %s ----and----  %s' %(result, fold))
        return result, fold

    _group_by_full = {
        'driver': _read_group_drivers
    }

Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
de maig 25
1347
2
d’oct. 16
5180
1
de gen. 25
1659
1
d’ag. 24
1269
4
d’ag. 24
1979