# -*- coding: utf-8 -*-
###############################################################################
#
#    Tech-Receptives Solutions Pvt. Ltd.
#    Copyright (C) 2009-TODAY Tech-Receptives(<http://www.techreceptives.com>).
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Lesser 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 Lesser General Public License for more details.
#
#    You should have received a copy of the GNU Lesser General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################

from odoo.osv import expression
from odoo.tools.float_utils import float_round as round
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT
from odoo.exceptions import UserError, ValidationError
from odoo import api, fields, models, _

class ResPartner(models.Model):
    _inherit = ['res.partner']

    nif = fields.Integer(string='NIF')
    id_number = fields.Char(string='ID Number')
    default_contact = fields.Boolean(string='Default contact', default=False)
    send_email = fields.Boolean(string='Send email', default=False)
    origin = fields.Char(string='Country of origin')
    gender = fields.Selection(
        [('m', 'Male'), ('f', 'Female')], 'Gender', required=False, track_visibility='onchange')
    birth_date = fields.Date('Birth Date', required=False, track_visibility='onchange')
    #id_issue_date = fields.Date(string='ID Issue Date')
    #passport_number = fields.Char(string='Passport Number')
    #passport_issue_date = fields.Date(string='Passport Issue Date')
    document_type = fields.Selection(
        [('id', 'ID'),
         ('passport', 'Passport')], string='Type of ID')
    partner_type = fields.Selection(
        [('guest', 'Particular'),
         ('agency', 'Agency'),
         ('company', 'Company')], string='Type of Partner',
        default='guest')
