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
588 B

  1. # -*- coding: utf-8 -*-
  2. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
  3. from openerp import models, fields
  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. )