You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
551 B

  1. # Copyright 2017-2018 Onestein (<http://www.onestein.eu>)
  2. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
  3. from odoo import fields, models
  4. class ResPartner(models.Model):
  5. _inherit = "res.partner"
  6. coc_registration_number = fields.Char(
  7. string="CoC Registration Number",
  8. compute=lambda s: s._compute_identification("coc_registration_number", "coc"),
  9. inverse=lambda s: s._inverse_identification("coc_registration_number", "coc"),
  10. search=lambda s, *a: s._search_identification("coc", *a),
  11. )