Browse Source

[FIX] base_kanban_stage: ignore domain in _read_group_stage_ids override.

See https://github.com/OCA/server-tools/pull/982 for further info
12.0
Alex Comba 7 years ago
committed by mreficent
parent
commit
52f912e65a
  1. 2
      base_kanban_stage/__manifest__.py
  2. 2
      base_kanban_stage/models/base_kanban_abstract.py

2
base_kanban_stage/__manifest__.py

@ -5,7 +5,7 @@
{ {
'name': 'Kanban - Stage Support', 'name': 'Kanban - Stage Support',
'summary': 'Provides stage model and abstract logic for inheritance', 'summary': 'Provides stage model and abstract logic for inheritance',
'version': '10.0.1.1.0',
'version': '10.0.1.1.1',
'author': "LasLabs, Odoo Community Association (OCA)", 'author': "LasLabs, Odoo Community Association (OCA)",
'category': 'base', 'category': 'base',
'depends': [ 'depends': [

2
base_kanban_stage/models/base_kanban_abstract.py

@ -108,6 +108,4 @@ class BaseKanbanAbstract(models.AbstractModel):
@api.multi @api.multi
def _read_group_stage_ids(self, stages, domain, order): def _read_group_stage_ids(self, stages, domain, order):
search_domain = [('res_model_id.model', '=', self._name)] search_domain = [('res_model_id.model', '=', self._name)]
if domain:
search_domain.extend(domain)
return stages.search(search_domain, order=order) return stages.search(search_domain, order=order)
Loading…
Cancel
Save