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.

24 lines
820 B

  1. # -*- coding: utf-8 -*-
  2. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
  3. # pylint: disable=missing-docstring,protected-access
  4. from openerp.osv import orm, fields
  5. class ResPartner(orm.Model):
  6. _inherit = 'res.partner'
  7. _columns = {
  8. 'coc_registration_number': fields.function(
  9. lambda self, *args, **kwargs:
  10. self._compute_identification(*args, **kwargs),
  11. arg='coc',
  12. fnct_inv=lambda self, *args, **kwargs:
  13. self._inverse_identification(*args, **kwargs),
  14. fnct_inv_arg='coc',
  15. type='char',
  16. fnct_search=lambda self, *args, **kwargs:
  17. self._search_identification(*args, **kwargs),
  18. method=True, readonly=False,
  19. string='CoC Registration Number',
  20. ),
  21. }