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.

21 lines
619 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(
  9. 'coc_registration_number', 'coc',
  10. ),
  11. inverse=lambda s: s._inverse_identification(
  12. 'coc_registration_number', 'coc',
  13. ),
  14. search=lambda s, *a: s._search_identification(
  15. 'coc', *a
  16. ),
  17. )