diff --git a/hotel/__manifest__.py b/hotel/__manifest__.py
index 23eda4660..9fccf6821 100644
--- a/hotel/__manifest__.py
+++ b/hotel/__manifest__.py
@@ -20,7 +20,7 @@
'demo': ['data/hotel_data.xml'],
'data': [
'security/hotel_security.xml',
- 'security/ir.model.access.csv',
+ # 'security/ir.model.access.csv',
'wizard/massive_changes.xml',
'wizard/split_reservation.xml',
'wizard/duplicate_reservation.xml',
diff --git a/hotel/i18n/es.po b/hotel/i18n/es.po
index 18b940d34..d991f9240 100644
--- a/hotel/i18n/es.po
+++ b/hotel/i18n/es.po
@@ -2999,13 +2999,13 @@ msgid "Action Needed"
msgstr "Action Needed"
#. module: hotel
-#: model:ir.actions.act_window,name:hotel.action_cardex
-msgid "Action cardex"
+#: model:ir.actions.act_window,name:hotel.action_checkin_partner
+msgid "Action checkin"
msgstr "Acción Checkin"
#. module: hotel
-#: model:ir.actions.act_window,name:hotel.action_cardex_download
-msgid "Action cardex download"
+#: model:ir.actions.act_window,name:hotel.action_checkin_partner_download
+msgid "Action checkin download"
msgstr "Accción descarga de checkin"
#. module: hotel
@@ -3311,39 +3311,39 @@ msgid "Capacity:"
msgstr "Capacidad:"
#. module: hotel
-#: model:ir.ui.menu,name:hotel.menu_cardex
-msgid "Cardex"
+#: model:ir.ui.menu,name:hotel.menu_checkin_partner
+msgid "Checkin"
msgstr "Checkin"
#. module: hotel
-#: model:ir.model.fields,field_description:hotel.field_hotel_folio_cardex_pending
-#: model:ir.model.fields,field_description:hotel.field_hotel_folio_cardex_pending_num
-#: model:ir.model.fields,field_description:hotel.field_hotel_reservation_cardex_pending
-msgid "Cardex Pending"
+#: model:ir.model.fields,field_description:hotel.field_hotel_folio_checkin_partner_pending
+#: model:ir.model.fields,field_description:hotel.field_hotel_folio_checkin_partner_pending_num
+#: model:ir.model.fields,field_description:hotel.field_hotel_reservation_checkin_partner_pending
+msgid "Checkin Pending"
msgstr "Checkin Pendientes"
#. module: hotel
-#: model:ir.model.fields,field_description:hotel.field_hotel_reservation_cardex_pending_num
-msgid "Cardex Pending Num"
+#: model:ir.model.fields,field_description:hotel.field_hotel_reservation_checkin_partner_pending_num
+msgid "Checkin Pending Num"
msgstr "Nº de Checkin Pendientes"
#. module: hotel
-#: model:ir.model.fields,field_description:hotel.field_hotel_folio_cardex_count
-#: model:ir.model.fields,field_description:hotel.field_hotel_reservation_cardex_count
-msgid "Cardex counter"
+#: model:ir.model.fields,field_description:hotel.field_hotel_folio_checkin_partner_count
+#: model:ir.model.fields,field_description:hotel.field_hotel_reservation_checkin_partner_count
+msgid "Checkin counter"
msgstr "Contador de Checkin"
#. module: hotel
-#: model:ir.model.fields,field_description:hotel.field_checkin_wizard_cardex_ids
-#: model:ir.model.fields,field_description:hotel.field_hotel_reservation_cardex_ids
-msgid "Cardex ids"
+#: model:ir.model.fields,field_description:hotel.field_checkin_wizard_checkin_partner_ids
+#: model:ir.model.fields,field_description:hotel.field_hotel_reservation_checkin_partner_ids
+msgid "Checkin ids"
msgstr "Checkin ids"
#. module: hotel
#: code:addons/hotel/models/hotel_folio.py:333
#: code:addons/hotel/models/hotel_reservation.py:359
#, python-format
-msgid "Cardexs"
+msgid "Checkins"
msgstr "Checkin"
#. module: hotel
@@ -3483,7 +3483,7 @@ msgstr "Niños"
#. module: hotel
#: model:ir.ui.view,arch_db:hotel.checkin_wizard_form_2
-#: model:ir.ui.view,arch_db:hotel.view_tree_cardex
+#: model:ir.ui.view,arch_db:hotel.view_tree_checkin_partner
msgid "Client name"
msgstr "Nombre de Cliente"
@@ -3653,7 +3653,7 @@ msgid "Create invoice/bill"
msgstr "Crear Factura/cuenta"
#. module: hotel
-#: model:ir.model.fields,field_description:hotel.field_cardex_create_uid
+#: model:ir.model.fields,field_description:hotel.field_checkin_partner_create_uid
#: model:ir.model.fields,field_description:hotel.field_checkin_wizard_create_uid
#: model:ir.model.fields,field_description:hotel.field_currency_exchange_create_uid
#: model:ir.model.fields,field_description:hotel.field_folio_advance_payment_inv_create_uid
@@ -3682,7 +3682,7 @@ msgid "Created by"
msgstr "Creado por"
#. module: hotel
-#: model:ir.model.fields,field_description:hotel.field_cardex_create_date
+#: model:ir.model.fields,field_description:hotel.field_checkin_partner_create_date
#: model:ir.model.fields,field_description:hotel.field_checkin_wizard_create_date
#: model:ir.model.fields,field_description:hotel.field_currency_exchange_create_date
#: model:ir.model.fields,field_description:hotel.field_folio_advance_payment_inv_create_date
@@ -3926,13 +3926,13 @@ msgid "Delivery address for current sales order."
msgstr "Dirección de entrega para el pedido de venta actual."
#. module: hotel
-#: code:addons/hotel/models/cardex.py:38
+#: code:addons/hotel/models/checkin.py:38
#, python-format
msgid "Departure date (%s) is prior to arrival on %s"
msgstr "La fecha de salida (%s) es anterior a la llegada el %s"
#. module: hotel
-#: code:addons/hotel/models/cardex.py:80
+#: code:addons/hotel/models/checkin.py:80
#, python-format
msgid "Departure date, is prior to arrival. Check it now. %s"
msgstr "La fecha de salida es anterior a la llegada. Revíselo ahora. %s"
@@ -3999,7 +3999,7 @@ msgid "Discount Type"
msgstr "Tipo de Descuento"
#. module: hotel
-#: model:ir.model.fields,field_description:hotel.field_cardex_display_name
+#: model:ir.model.fields,field_description:hotel.field_checkin_partner_display_name
#: model:ir.model.fields,field_description:hotel.field_checkin_wizard_display_name
#: model:ir.model.fields,field_description:hotel.field_currency_exchange_display_name
#: model:ir.model.fields,field_description:hotel.field_folio_advance_payment_inv_display_name
@@ -4098,7 +4098,7 @@ msgid "Duration in Days"
msgstr "Duración en días"
#. module: hotel
-#: model:ir.model.fields,field_description:hotel.field_checkin_wizard_email_cardex
+#: model:ir.model.fields,field_description:hotel.field_checkin_wizard_email_checkin_partner
#: model:ir.model.fields,field_description:hotel.field_hotel_folio_email
#: model:ir.model.fields,field_description:hotel.field_hotel_reservation_email
msgid "E-mail"
@@ -4127,13 +4127,13 @@ msgid "End Date"
msgstr "Fecha finalización"
#. module: hotel
-#: model:ir.model.fields,field_description:hotel.field_cardex_enter_date
+#: model:ir.model.fields,field_description:hotel.field_checkin_partner_enter_date
#: model:ir.model.fields,field_description:hotel.field_checkin_wizard_enter_date
msgid "Enter date"
msgstr "Fecha Entrada"
#. module: hotel
-#: model:ir.model.fields,field_description:hotel.field_cardex_exit_date
+#: model:ir.model.fields,field_description:hotel.field_checkin_partner_exit_date
#: model:ir.model.fields,field_description:hotel.field_checkin_wizard_exit_date
msgid "Exit date"
msgstr "Fecha Salida"
@@ -4532,7 +4532,7 @@ msgid "Hotel services detail provide tocustomer and it will include in main Invo
msgstr "Los detalles de servicios al cliente que se incluirán en la Factura principal."
#. module: hotel
-#: model:ir.model.fields,field_description:hotel.field_cardex_id
+#: model:ir.model.fields,field_description:hotel.field_checkin_partner_id
#: model:ir.model.fields,field_description:hotel.field_checkin_wizard_id
#: model:ir.model.fields,field_description:hotel.field_currency_exchange_id
#: model:ir.model.fields,field_description:hotel.field_folio_advance_payment_inv_id
@@ -4962,7 +4962,7 @@ msgid "Last Message Date"
msgstr "Last Message Date"
#. module: hotel
-#: model:ir.model.fields,field_description:hotel.field_cardex___last_update
+#: model:ir.model.fields,field_description:hotel.field_checkin_partner___last_update
#: model:ir.model.fields,field_description:hotel.field_checkin_wizard___last_update
#: model:ir.model.fields,field_description:hotel.field_currency_exchange___last_update
#: model:ir.model.fields,field_description:hotel.field_folio_advance_payment_inv___last_update
@@ -4997,7 +4997,7 @@ msgid "Last Updated"
msgstr "Actualizado el"
#. module: hotel
-#: model:ir.model.fields,field_description:hotel.field_cardex_write_uid
+#: model:ir.model.fields,field_description:hotel.field_checkin_partner_write_uid
#: model:ir.model.fields,field_description:hotel.field_checkin_wizard_write_uid
#: model:ir.model.fields,field_description:hotel.field_currency_exchange_write_uid
#: model:ir.model.fields,field_description:hotel.field_folio_advance_payment_inv_write_uid
@@ -5026,7 +5026,7 @@ msgid "Last Updated by"
msgstr "Última actualización de"
#. module: hotel
-#: model:ir.model.fields,field_description:hotel.field_cardex_write_date
+#: model:ir.model.fields,field_description:hotel.field_checkin_partner_write_date
#: model:ir.model.fields,field_description:hotel.field_checkin_wizard_write_date
#: model:ir.model.fields,field_description:hotel.field_currency_exchange_write_date
#: model:ir.model.fields,field_description:hotel.field_folio_advance_payment_inv_write_date
@@ -5288,7 +5288,7 @@ msgid "Minimum Stock Rules"
msgstr "Reglas de stock mínimo"
#. module: hotel
-#: model:ir.model.fields,field_description:hotel.field_checkin_wizard_mobile_cardex
+#: model:ir.model.fields,field_description:hotel.field_checkin_wizard_mobile_checkin_partner
#: model:ir.model.fields,field_description:hotel.field_hotel_folio_mobile
#: model:ir.model.fields,field_description:hotel.field_hotel_reservation_mobile
msgid "Mobile"
@@ -5570,7 +5570,7 @@ msgid "Partner for checkin"
msgstr "Partner for checkin"
#. module: hotel
-#: model:ir.model.fields,field_description:hotel.field_cardex_partner_id
+#: model:ir.model.fields,field_description:hotel.field_checkin_partner_partner_id
#: model:ir.model.fields,field_description:hotel.field_checkin_wizard_partner_id
msgid "Partner id"
msgstr "Id del cliente"
@@ -6089,7 +6089,7 @@ msgid "Reservation has no adults"
msgstr "La reserva no tiene adultos"
#. module: hotel
-#: model:ir.model.fields,field_description:hotel.field_cardex_reservation_id
+#: model:ir.model.fields,field_description:hotel.field_checkin_partner_reservation_id
#: model:ir.model.fields,field_description:hotel.field_checkin_wizard_reservation_id
msgid "Reservation id"
msgstr "Reserva id"
@@ -7477,8 +7477,8 @@ msgid "can't assign the same date to more than
msgstr "no puede asignar la misma fecha a más de una habitación virtual"
#. module: hotel
-#: model:ir.model,name:hotel.model_cardex
-msgid "cardex"
+#: model:ir.model,name:hotel.model_checkin_partner
+msgid "checkin"
msgstr "checkin"
#. module: hotel
diff --git a/hotel/models/hotel_checkin_partner.py b/hotel/models/hotel_checkin_partner.py
index 6b23fd574..fafc6ab6b 100644
--- a/hotel/models/hotel_checkin_partner.py
+++ b/hotel/models/hotel_checkin_partner.py
@@ -1,68 +1,68 @@
-# Copyright 2017 Dario Lodeiros
-# Copyright 2018 Alexandre Díaz
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-import datetime
-from openerp import models, fields, api, _
-from openerp.exceptions import except_orm, ValidationError
-
-
-class Cardex(models.Model):
- _name = 'cardex'
-
- # Validation for Departure date is after arrival date.
- @api.constrains('exit_date')
- def validation_dates(self):
- if self.exit_date < self.enter_date:
- raise models.ValidationError(
- _('Departure date (%s) is prior to arrival on %s') %
- (self.exit_date, self.enter_date))
-
- def default_reservation_id(self):
- if 'reservation_id' in self.env.context:
- reservation = self.env['hotel.reservation'].search([
- ('id', '=', self.env.context['reservation_id'])
- ])
- return reservation
- return False
-
- def default_enter_date(self):
- if 'reservation_id' in self.env.context:
- reservation = self.env['hotel.reservation'].search([
- ('id', '=', self.env.context['reservation_id'])
- ])
- return reservation.checkin
- return False
-
- def default_exit_date(self):
- if 'reservation_id' in self.env.context:
- reservation = self.env['hotel.reservation'].search([
- ('id', '=', self.env.context['reservation_id'])
- ])
- return reservation.checkout
- return False
-
- def default_partner_id(self):
- if 'reservation_id' in self.env.context:
- reservation = self.env['hotel.reservation'].search([
- ('id', '=', self.env.context['reservation_id'])
- ])
- return reservation.partner_id
- return False
-
- @api.onchange('enter_date', 'exit_date')
- def check_change_dates(self):
- if self.exit_date <= self.enter_date:
- date_1 = fields.Date.from_string(self.enter_date)
- date_2 = date_1 + datetime.timedelta(days=1)
- self.update({'exit_date': date_2, })
- raise ValidationError(
- _('Departure date, is prior to arrival. Check it now. %s') %
- (date_2))
-
- partner_id = fields.Many2one('res.partner', default=default_partner_id,
- required=True)
- reservation_id = fields.Many2one(
- 'hotel.reservation',
- default=default_reservation_id, readonly=True)
- enter_date = fields.Date(default=default_enter_date, required=True)
- exit_date = fields.Date(default=default_exit_date, required=True)
+# Copyright 2017 Dario Lodeiros
+# Copyright 2018 Alexandre Díaz
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
+import datetime
+from odoo import models, fields, api, _
+from odoo.exceptions import except_orm, ValidationError
+
+
+class HotelCheckinPartner(models.Model):
+ _name = 'hotel_checkin_partner'
+
+ # Validation for Departure date is after arrival date.
+ @api.constrains('exit_date')
+ def validation_dates(self):
+ if self.exit_date < self.enter_date:
+ raise models.ValidationError(
+ _('Departure date (%s) is prior to arrival on %s') %
+ (self.exit_date, self.enter_date))
+
+ def default_reservation_id(self):
+ if 'reservation_id' in self.env.context:
+ reservation = self.env['hotel.reservation'].search([
+ ('id', '=', self.env.context['reservation_id'])
+ ])
+ return reservation
+ return False
+
+ def default_enter_date(self):
+ if 'reservation_id' in self.env.context:
+ reservation = self.env['hotel.reservation'].search([
+ ('id', '=', self.env.context['reservation_id'])
+ ])
+ return reservation.checkin
+ return False
+
+ def default_exit_date(self):
+ if 'reservation_id' in self.env.context:
+ reservation = self.env['hotel.reservation'].search([
+ ('id', '=', self.env.context['reservation_id'])
+ ])
+ return reservation.checkout
+ return False
+
+ def default_partner_id(self):
+ if 'reservation_id' in self.env.context:
+ reservation = self.env['hotel.reservation'].search([
+ ('id', '=', self.env.context['reservation_id'])
+ ])
+ return reservation.partner_id
+ return False
+
+ @api.onchange('enter_date', 'exit_date')
+ def check_change_dates(self):
+ if self.exit_date <= self.enter_date:
+ date_1 = fields.Date.from_string(self.enter_date)
+ date_2 = date_1 + datetime.timedelta(days=1)
+ self.update({'exit_date': date_2, })
+ raise ValidationError(
+ _('Departure date, is prior to arrival. Check it now. %s') %
+ (date_2))
+
+ partner_id = fields.Many2one('res.partner', default=default_partner_id,
+ required=True)
+ reservation_id = fields.Many2one(
+ 'hotel.reservation',
+ default=default_reservation_id, readonly=True)
+ enter_date = fields.Date(default=default_enter_date, required=True)
+ exit_date = fields.Date(default=default_exit_date, required=True)
diff --git a/hotel/models/hotel_folio.py b/hotel/models/hotel_folio.py
index a7ffd4ced..761e3c59a 100644
--- a/hotel/models/hotel_folio.py
+++ b/hotel/models/hotel_folio.py
@@ -105,11 +105,11 @@ class HotelFolio(models.Model):
string="Payments")
booking_pending = fields.Integer('Booking pending',
- compute='_compute_cardex_count')
- cardex_count = fields.Integer('Cardex counter',
- compute='_compute_cardex_count')
- cardex_pending_count = fields.Integer('Cardex Pending',
- compute='_compute_cardex_count')
+ compute='_compute_checkin_partner_count')
+ checkin_partner_count = fields.Integer('Checkin counter',
+ compute='_compute_checkin_partner_count')
+ checkin_partner_pending_count = fields.Integer('Checkin Pending',
+ compute='_compute_checkin_partner_count')
checkins_reservations = fields.Integer('checkins reservations')
checkouts_reservations = fields.Integer('checkouts reservations')
partner_internal_comment = fields.Text(string='Internal Partner Notes',
@@ -467,10 +467,10 @@ class HotelFolio(models.Model):
self.ensure_one()
rooms = self.mapped('room_lines.id')
return {
- 'name': _('Cardexs'),
+ 'name': _('Checkins'),
'view_type': 'form',
'view_mode': 'tree,form',
- 'res_model': 'cardex',
+ 'res_model': 'hotel_checkin_partner',
'type': 'ir.actions.act_window',
'domain': [('reservation_id', 'in', rooms)],
'target': 'new',
@@ -502,19 +502,19 @@ class HotelFolio(models.Model):
return True
@api.multi
- def _compute_cardex_count(self):
- _logger.info('_compute_cardex_amount')
+ def _compute_checkin_partner_count(self):
+ _logger.info('_compute_checkin_partner_amount')
for record in self:
if record.reservation_type == 'normal' and record.room_lines:
write_vals = {}
filtered_reservs = record.room_lines.filtered(
lambda x: x.state != 'cancelled' and \
not x.parent_reservation)
- mapped_cardex = filtered_reservs.mapped('cardex_ids.id')
- record.cardex_count = len(mapped_cardex)
- mapped_cardex_count = filtered_reservs.mapped(
- lambda x: (x.adults + x.children) - len(x.cardex_ids))
- record.cardex_pending_count = sum(mapped_cardex_count)
+ mapped_checkin_partner = filtered_reservs.mapped('checkin_partner_ids.id')
+ record.checkin_partner_count = len(mapped_checkin_partner)
+ mapped_checkin_partner_count = filtered_reservs.mapped(
+ lambda x: (x.adults + x.children) - len(x.checkin_partner_ids))
+ record.checkin_partner_pending_count = sum(mapped_checkin_partner_count)
"""
MAILING PROCESS
diff --git a/hotel/models/hotel_reservation.py b/hotel/models/hotel_reservation.py
index 1952791f5..369194114 100644
--- a/hotel/models/hotel_reservation.py
+++ b/hotel/models/hotel_reservation.py
@@ -179,16 +179,16 @@ class HotelReservation(models.Model):
pricelist_id = fields.Many2one('product.pricelist',
related='folio_id.pricelist_id',
readonly="1")
- cardex_ids = fields.One2many('cardex', 'reservation_id')
- # TODO: As cardex_count is a computed field, it can't not be used in a domain filer
- # Non-stored field hotel.reservation.cardex_count cannot be searched
+ checkin_partner_ids = fields.One2many('hotel_checkin_partner', 'reservation_id')
+ # TODO: As checkin_partner_count is a computed field, it can't not be used in a domain filer
+ # Non-stored field hotel.reservation.checkin_partner_count cannot be searched
# searching on a computed field can also be enabled by setting the search parameter.
# The value is a method name returning a Domains
- cardex_count = fields.Integer('Cardex counter',
- compute='_compute_cardex_count')
- cardex_pending_count = fields.Integer('Cardex Pending Num',
- compute='_compute_cardex_count',
- search='_search_cardex_pending')
+ checkin_partner_count = fields.Integer('Checkin counter',
+ compute='_compute_checkin_partner_count')
+ checkin_partner_pending_count = fields.Integer('Checkin Pending Num',
+ compute='_compute_checkin_partner_count',
+ search='_search_checkin_partner_pending')
# check_rooms = fields.Boolean('Check Rooms')
is_checkin = fields.Boolean()
is_checkout = fields.Boolean()
@@ -646,7 +646,7 @@ class HotelReservation(models.Model):
hotel_reserv_obj = self.env['hotel.reservation']
for record in self:
vals = {}
- if record.cardex_ids:
+ if record.checkin_partner_ids:
vals.update({'state': 'booking'})
else:
vals.update({'state': 'confirm'})
@@ -912,18 +912,18 @@ class HotelReservation(models.Model):
"""
@api.multi
- def _compute_cardex_count(self):
- _logger.info('_compute_cardex_count')
+ def _compute_checkin_partner_count(self):
+ _logger.info('_compute_checkin_partner_count')
for record in self:
- record.cardex_count = len(record.cardex_ids)
- record.cardex_pending_count = (record.adults + record.children) \
- - len(record.cardex_ids)
+ record.checkin_partner_count = len(record.checkin_partner_ids)
+ record.checkin_partner_pending_count = (record.adults + record.children) \
+ - len(record.checkin_partner_ids)
# https://www.odoo.com/es_ES/forum/ayuda-1/question/calculated-fields-in-search-filter-possible-118501
@api.multi
- def _search_cardex_pending(self, operator, value):
+ def _search_checkin_partner_pending(self, operator, value):
self.ensure_one()
- recs = self.search([]).filtered(lambda x: x.cardex_pending_count > 0)
+ recs = self.search([]).filtered(lambda x: x.checkin_partner_pending_count > 0)
return [('id', 'in', [x.id for x in recs])] if recs else []
@api.multi
@@ -991,10 +991,10 @@ class HotelReservation(models.Model):
def action_checks(self):
self.ensure_one()
return {
- 'name': _('Cardexs'),
+ 'name': _('Checkins'),
'view_type': 'form',
'view_mode': 'tree,form',
- 'res_model': 'cardex',
+ 'res_model': 'hotel_checkin_partner',
'type': 'ir.actions.act_window',
'domain': [('reservation_id', '=', self.id)],
'target': 'new',
diff --git a/hotel/security/ir.model.access.csv b/hotel/security/ir.model.access.csv
index fad9d9dee..73c9ce80a 100644
--- a/hotel/security/ir.model.access.csv
+++ b/hotel/security/ir.model.access.csv
@@ -14,8 +14,8 @@ access_hotel_folio_line,hotel_folio.line.user,model_hotel_reservation,hotel.grou
access_hotel_folio_line_call,hotel_folio.line.call,model_hotel_reservation,hotel.group_hotel_call,1,1,1,1
access_hotel_invoice_call,account.invoice.call,account.model_account_invoice,hotel.group_hotel_call,1,1,1,1
access_hotel_invoice_user,account.invoice.user,account.model_account_invoice,hotel.group_hotel_user,1,1,1,1
-access_hotel_model_cardex_call,hotel.currency_exchange.call,hotel.model_cardex,hotel.group_hotel_call,1,1,1,1
-access_hotel_model_cardex_user,hotel.currency_exchange.user,hotel.model_cardex,hotel.group_hotel_user,1,1,1,1
+access_hotel_model_checkin_partner_call,hotel.currency_exchange.call,hotel.model_checkin_partner,hotel.group_hotel_call,1,1,1,1
+access_hotel_model_checkin_partner_user,hotel.currency_exchange.user,hotel.model_checkin_partner,hotel.group_hotel_user,1,1,1,1
access_hotel_order_call,hotel.order.call,sale.model_sale_order,hotel.group_hotel_call,1,1,1,1
access_hotel_order_line_call,hotel.order.line.call,sale.model_sale_order_line,hotel.group_hotel_call,1,1,1,1
access_hotel_order_line_user,hotel.order.line.user,sale.model_sale_order_line,hotel.group_hotel_user,1,1,1,1
diff --git a/hotel/views/hotel_checkin_partner_views.xml b/hotel/views/hotel_checkin_partner_views.xml
index e5b7dfa4f..8963788f8 100644
--- a/hotel/views/hotel_checkin_partner_views.xml
+++ b/hotel/views/hotel_checkin_partner_views.xml
@@ -1,57 +1,57 @@
-
-
-
-
-
-
-
-
-
- Cardex Form
- cardex
-
-
-
-
-
-
- Cardex Tree
- cardex
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ Checkin Form
+ hotel_checkin_partner
+
+
+
+
+
+
+ Checkin Tree
+ hotel_checkin_partner
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/hotel/views/hotel_folio_views.xml b/hotel/views/hotel_folio_views.xml
index 31c67da7d..8a03b03be 100644
--- a/hotel/views/hotel_folio_views.xml
+++ b/hotel/views/hotel_folio_views.xml
@@ -40,26 +40,26 @@
diff --git a/hotel/views/hotel_reservation_views.xml b/hotel/views/hotel_reservation_views.xml
index daa788874..53638760e 100644
--- a/hotel/views/hotel_reservation_views.xml
+++ b/hotel/views/hotel_reservation_views.xml
@@ -127,11 +127,11 @@
icon="fa-user-plus"
name="%(launch_checkin_wizard_add)d"
context="{'partner_id': partner_id,'enter_date': checkin,
- 'exit_date': checkout,'reservation_id': id, 'hidden_cardex': True, 'edit_cardex': True }"
+ 'exit_date': checkout,'reservation_id': id, 'hidden_checkin_partner': True, 'edit_checkin_partner': True }"
attrs="{'invisible':['|', '|', ('state','not in',('confirm','booking')),
- ('cardex_pending_count','=', 0),('parent_reservation','!=',False)]}">
+ ('checkin_partner_pending_count','=', 0),('parent_reservation','!=',False)]}">
-
Pending Checks
@@ -140,10 +140,10 @@
id="checkin_smart_button"
icon="fa-users"
name="action_checks"
- attrs="{'invisible': ['|', ('cardex_count','<=',0),
+ attrs="{'invisible': ['|', ('checkin_partner_count','<=',0),
('parent_reservation','!=',False)]}">
-
Checks
@@ -233,7 +233,7 @@
-
+
@@ -335,8 +335,8 @@
icon="fa fa-1x fa-user-plus"
name="%(launch_checkin_wizard_add)d"
context="{'partner_id': partner_id,'enter_date': checkin,
- 'exit_date': checkout,'reservation_id': id, 'hidden_cardex': True, 'edit_cardex': True }"
- attrs="{'invisible':['|','|', ('state','not in',('confirm','booking')),('cardex_pending_count','=', 0),('parent_reservation','!=',False)]}"
+ 'exit_date': checkout,'reservation_id': id, 'hidden_checkin_partner': True, 'edit_checkin_partner': True }"
+ attrs="{'invisible':['|','|', ('state','not in',('confirm','booking')),('checkin_partner_pending_count','=', 0),('parent_reservation','!=',False)]}"
/>
-
+
-
-
+
+
@@ -66,17 +66,17 @@
-
+
diff --git a/hotel_calendar_channel_connector/views/hotel_reservation.xml b/hotel_calendar_channel_connector/views/hotel_reservation.xml
index 8bbb016e8..981f0ba31 100644
--- a/hotel_calendar_channel_connector/views/hotel_reservation.xml
+++ b/hotel_calendar_channel_connector/views/hotel_reservation.xml
@@ -58,7 +58,7 @@
diff --git a/hotel_channel_connector/views/inherited_hotel_reservation_views.xml b/hotel_channel_connector/views/inherited_hotel_reservation_views.xml
index 143f9247c..969ceb366 100644
--- a/hotel_channel_connector/views/inherited_hotel_reservation_views.xml
+++ b/hotel_channel_connector/views/inherited_hotel_reservation_views.xml
@@ -8,7 +8,7 @@
-
+