mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[WIP]pms: added reservations in portal
This commit is contained in:
@@ -840,6 +840,11 @@ class PmsReservation(models.Model):
|
||||
else False
|
||||
)
|
||||
|
||||
def _compute_access_url(self):
|
||||
super(PmsReservation, self)._compute_access_url()
|
||||
for reservation in self:
|
||||
reservation.access_url = "/my/reservations/%s" % (reservation.id)
|
||||
|
||||
def _search_left_for_checkin(self, operator, value):
|
||||
if operator not in ("=",):
|
||||
raise UserError(
|
||||
|
||||
Reference in New Issue
Block a user