mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
* [ADD] Add modulo pms-l10n-es and tests * [ADD] Add res_parter and checkin_partner models * [WIP] Base location pms taxonomy * [WIP] pms-l10n-es: View improvement Co-authored-by: Darío Lodeiros <dario@commitsun.com>
23 lines
623 B
Python
23 lines
623 B
Python
from odoo import fields, models
|
|
|
|
|
|
class ResPartner(models.Model):
|
|
_inherit = "res.partner"
|
|
|
|
document_type = fields.Selection(
|
|
[
|
|
("D", "DNI"),
|
|
("P", "Passport"),
|
|
("C", "Driving License"),
|
|
("I", "Identification Document"),
|
|
("N", "Spanish residence permit"),
|
|
("X", "European residence permit"),
|
|
],
|
|
help="Select a valid document type",
|
|
string="Doc. type",
|
|
)
|
|
document_number = fields.Char(
|
|
string="Document number",
|
|
)
|
|
document_expedition_date = fields.Date(string="Document expedition date")
|