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 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