forked from Yaltik/golem
correction basique
This commit is contained in:
parent
8e51e46a0b
commit
b895de05ba
@ -212,7 +212,7 @@ class GolemResourceReservation(models.Model):
|
|||||||
'view_id': False,
|
'view_id': False,
|
||||||
'domain': [('resource_id', '=', self.resource_id.id)],
|
'domain': [('resource_id', '=', self.resource_id.id)],
|
||||||
'type': 'ir.actions.act_window',
|
'type': 'ir.actions.act_window',
|
||||||
'target':'new'
|
'target':'current'
|
||||||
}
|
}
|
||||||
return calendar_view
|
return calendar_view
|
||||||
|
|
||||||
@ -227,7 +227,7 @@ class GolemResourceReservation(models.Model):
|
|||||||
'view_id': False,
|
'view_id': False,
|
||||||
'domain': [('resource_id', '=', self.resource_id.id)],
|
'domain': [('resource_id', '=', self.resource_id.id)],
|
||||||
'type': 'ir.actions.act_window',
|
'type': 'ir.actions.act_window',
|
||||||
'target':'new'
|
'target':'current'
|
||||||
}
|
}
|
||||||
return tree_view
|
return tree_view
|
||||||
|
|
||||||
@ -235,7 +235,5 @@ class GolemResourceReservation(models.Model):
|
|||||||
@api.depends('resource_id')
|
@api.depends('resource_id')
|
||||||
def _reservation_count(self):
|
def _reservation_count(self):
|
||||||
for reservation in self:
|
for reservation in self:
|
||||||
count = reservation.search_count([('resource_id', '=', reservation.resource_id.id)])
|
reservation.resource_reservation_count = reservation.search_count([
|
||||||
reservation.resource_reservation_count = count
|
('resource_id', '=', reservation.resource_id.id)])
|
||||||
print "__________________________________"
|
|
||||||
print count
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user