Files
pms/hotel_l10n_es/models/inherit_res_company.py
Dario Lodeiros eeb43074e7 [WIP] l10n_es
2019-01-10 17:59:36 +01:00

47 lines
2.4 KiB
Python

# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2017 Alda Hotels <informatica@aldahotels.com>
# Jose Luis Algara <osotranquilo@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from openerp import models, fields, api
class Inherit_res_company(models.Model):
_inherit = 'res.company'
property_name = fields.Char('Property name',
help='Name of the Hotel/Property.')
ine_tourism = fields.Char('Tourism number',
help='Registration number in the Ministry of \
Tourism. Used for INE statistics.')
ine_rooms = fields.Integer('Rooms Available', default=0,
help='Used for INE statistics.')
ine_seats = fields.Integer('Beds available', default=0,
help='Used for INE statistics.')
ine_permanent_staff = fields.Integer('Permanent Staff', default=0,
help='Used for INE statistics.')
ine_eventual_staff = fields.Integer('Eventual Staff', default=0,
help='Used for INE statistics.')
police_number = fields.Char('Police number', size=10,
help='Used to generate the name of the file that \
will be given to the police. 10 Caracters')
ine_category_id = fields.Many2one('tourism.category',
help='Hotel category in the Ministry of \
Tourism. Used for INE statistics.')