[ADD] Hour compute on checkin and required segmentation

This commit is contained in:
Dario Lodeiros
2019-04-28 12:45:37 +02:00
parent 3ef73b11b5
commit d7c193005d
3 changed files with 65 additions and 14 deletions

View File

@@ -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'))