Odoo Help


How can I add more items in _group_by_full dictionary?

Haojun Zou
on 2/17/15, 5:37 AM 1,155 views

I need to add more items in _group_by_full dictionary when I inherit, without overwritting this dictionary.

Because I need to show a empty column in my kanban view.

Here is my code:

class project_task(models.Model):
    _inherit = "project.task"

    def _read_group_sprint_id(self, present_ids, domain, **kwargs):

        project_id = self._resolve_project_id_from_context()
        sprints = self.env['project.scrum.sprint'].search([]).name_get()
        return sprints, None

    _group_by_full = {
        'sprint_id': _read_group_sprint_id,

I have tested to add item in this dictionary as following code "_group_by_full['sprint_id'] = _read_group_sprint_id", But it's not initialized at this time. The reslut was the original data in this dictionary where overwritten.

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 2/17/15, 5:37 AM
Seen: 1155 times
Last updated: 3/16/15, 8:10 AM