Files
pms/pms-l10n-es/models/res_partner.py
Sara e19bac38b6 [ADD] module pms-l10n-es (#21)
* [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>
2020-12-22 11:06:01 +01:00

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")