From 57a9bbb31d21b9a64245c3d2f4d8e2d5975355cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Fri, 19 Jun 2015 17:31:26 +0200 Subject: [PATCH] [FIX] mis_builder: do not arbitrarily filter on company in queries --- mis_builder/models/mis_builder.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mis_builder/models/mis_builder.py b/mis_builder/models/mis_builder.py index 6991366d..36c71839 100644 --- a/mis_builder/models/mis_builder.py +++ b/mis_builder/models/mis_builder.py @@ -458,11 +458,6 @@ class MisReportInstancePeriod(models.Model): self.date_to, self._context.get('tz', 'UTC'), add_day=1) domain.extend([(query.date_field.name, '>=', datetime_from), (query.date_field.name, '<', datetime_to)]) - # TODO: we probably don't need company_id here - if model._columns.get('company_id'): - domain.extend(['|', ('company_id', '=', False), - ('company_id', '=', - self.report_instance_id.company_id.id)]) field_names = [f.name for f in query.field_ids] if not query.aggregate: data = model.search_read(domain, field_names)