[FIX]GOLEM Resource Report : only validated resource should be printed
This commit is contained in:
parent
654d2de6b4
commit
ff8a4df86a
@ -46,7 +46,8 @@ class GolemResevationReport(models.AbstractModel):
|
|||||||
|
|
||||||
def get_data(self, data):
|
def get_data(self, data):
|
||||||
""" Get Resevation Data """
|
""" Get Resevation Data """
|
||||||
domain = [('date_start', '>', data['date_start']),
|
domain = [('state', '=', 'validated'),
|
||||||
|
('date_start', '>', data['date_start']),
|
||||||
('date_stop', '<', data['date_stop']),
|
('date_stop', '<', data['date_stop']),
|
||||||
('resource_id', 'in', data['resource_ids'])]
|
('resource_id', 'in', data['resource_ids'])]
|
||||||
reservations = self.env['golem.resource.reservation'].search(domain, order='date_start')
|
reservations = self.env['golem.resource.reservation'].search(domain, order='date_start')
|
||||||
|
Loading…
Reference in New Issue
Block a user