mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[MIG] Views
This commit is contained in:
@@ -28,7 +28,7 @@ class Inherit_hotel_reservation(models.Model):
|
||||
_inherit = 'hotel.reservation'
|
||||
|
||||
# Default methods
|
||||
@api.multi
|
||||
|
||||
def _compute_door_codes(self):
|
||||
for res in self:
|
||||
entrada = datetime.strptime(
|
||||
@@ -63,7 +63,7 @@ class Inherit_hotel_reservation(models.Model):
|
||||
box_number = fields.Integer('Box Number')
|
||||
box_code = fields.Char('Box code')
|
||||
|
||||
@api.multi
|
||||
|
||||
def doorcode4(self, fecha):
|
||||
# Calculate de Door Code... need a date in String format "%Y-%m-%d"
|
||||
compan = self.env.user.hotel_id
|
||||
|
||||
@@ -28,7 +28,7 @@ class DoorCodeWizard(models.TransientModel):
|
||||
_description = 'Door Code Generator'
|
||||
|
||||
# Default methods
|
||||
@api.multi
|
||||
|
||||
def _get_default_date_start(self):
|
||||
return datetime.now().strftime(DEFAULT_SERVER_DATE_FORMAT)
|
||||
|
||||
@@ -41,7 +41,7 @@ class DoorCodeWizard(models.TransientModel):
|
||||
default=_get_default_date_start)
|
||||
door_code = fields.Html("Door code")
|
||||
|
||||
@api.multi
|
||||
|
||||
def check_code(self):
|
||||
reservation = self.env['hotel.reservation']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user