Browse Source
Merge pull request #168 from beescoop/12.0-fix-b_shift-groupby_status
[FIX] b_shift: Group by status in kanban view
pull/154/merge
Rémy Taymans
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
beesdoo_shift/models/task.py
|
@ -89,7 +89,7 @@ class Task(models.Model): |
|
|
working_mode = fields.Selection(related="worker_id.working_mode") |
|
|
working_mode = fields.Selection(related="worker_id.working_mode") |
|
|
|
|
|
|
|
|
def _expand_states(self, states, domain, order): |
|
|
def _expand_states(self, states, domain, order): |
|
|
return [key for key, val in self._fields["state"].selection] |
|
|
|
|
|
|
|
|
return [key for key, val in self._fields["state"].selection(self)] |
|
|
|
|
|
|
|
|
@api.depends("state") |
|
|
@api.depends("state") |
|
|
def _compute_color(self): |
|
|
def _compute_color(self): |
|
|