mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD] Hour compute on checkin and required segmentation
This commit is contained in:
@@ -124,3 +124,6 @@ class HotelCheckinPartner(models.Model):
|
||||
raise UserError(
|
||||
_('To perform the checkin the following data are missing:\
|
||||
%s') % (', '.join(missing_fields)))
|
||||
if not record.reservation_id.segmentation_ids:
|
||||
raise UserError(
|
||||
_('To perform the checkin the segmentation is required'))
|
||||
|
||||
Reference in New Issue
Block a user