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.

18 lines
522 B

  1. from odoo import models, fields
  2. class ResPartner(models.Model):
  3. _inherit = 'res.partner'
  4. coc_registration_number = fields.Char(
  5. string='CoC Registration Number',
  6. compute=lambda s: s._compute_identification(
  7. 'coc_registration_number', 'coc',
  8. ),
  9. inverse=lambda s: s._inverse_identification(
  10. 'coc_registration_number', 'coc',
  11. ),
  12. search=lambda s, *a: s._search_identification(
  13. 'coc_registration_number', 'coc', *a
  14. ),
  15. )