mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
18 lines
602 B
Python
18 lines
602 B
Python
# Copyright 2018 Alexandre Díaz <dev@redneboa.es>
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
from odoo import models, fields, api
|
|
from odoo.exceptions import ValidationError
|
|
|
|
|
|
class RoomPricelistCached(models.Model):
|
|
'''
|
|
Cached Pricelist. Used only for Calendar Values
|
|
'''
|
|
|
|
_name = 'room.pricelist.cached'
|
|
|
|
room_id = fields.Many2one('hotel.room.type', 'Virtual Room',
|
|
required=True, track_visibility='always')
|
|
price = fields.Float('Price', default=0.0)
|
|
date = fields.Date('Date', required=True, track_visibility='always')
|