mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
22 lines
611 B
Python
22 lines
611 B
Python
# Copyright 2017 Dario Lodeiros
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
from odoo import models, fields
|
|
|
|
|
|
class HotelFloor(models.Model):
|
|
_name = "hotel.floor"
|
|
_description = "Ubication"
|
|
|
|
# Fields declaration
|
|
name = fields.Char('Ubication Name',
|
|
translate=True,
|
|
size=64,
|
|
required=True,
|
|
index=True)
|
|
hotel_ids = fields.Many2many(
|
|
'hotel.property',
|
|
string='Hotels',
|
|
required=False,
|
|
ondelete='restrict')
|
|
sequence = fields.Integer('Sequence')
|