[FIX] note: broken kanban view
The view is broken because read_progress_bar() calls read_group() with two groupbys in eager mode. The method read_group() is overridden for model `note.note` and does not handle that case: the returned result is incorrect. We modify the override to call the default read_group() in that case, which eventually fails and makes read_progress_bar() fall back on its naive implementation. closes odoo/odoo#73839 X-original-commit: 6443e22feea914639f143a94a802b52a74a8ce19 Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
This commit is contained in:
@@ -83,7 +83,7 @@ class Note(models.Model):
|
||||
|
||||
@api.model
|
||||
def read_group(self, domain, fields, groupby, offset=0, limit=None, orderby=False, lazy=True):
|
||||
if groupby and groupby[0] == "stage_id":
|
||||
if groupby and groupby[0] == "stage_id" and (len(groupby) == 1 or lazy):
|
||||
stages = self.env['note.stage'].search([('user_id', '=', self.env.uid)])
|
||||
if stages: # if the user has some stages
|
||||
result = [{ # notes by stage for stages user
|
||||
|
||||
Reference in New Issue
Block a user