Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to create kanban view like opportunity ?

By
Soohoo
on 8/1/14, 6:58 AM 913 views

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

0
Soohoo
On 8/1/14, 10:34 AM

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
    }

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 8/1/14, 6:58 AM
Seen: 913 times
Last updated: 3/16/15, 8:10 AM