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.

22 lines
700 B

  1. # Copyright 2017-2018 Onestein (<https://www.onestein.eu>)
  2. # Copyright 2018 Therp BV (<https://www.therp.nl>)
  3. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
  4. from odoo import fields, models
  5. class ResPartner(models.Model):
  6. _inherit = 'res.partner'
  7. coc_certificate_of_conduct = fields.Char(
  8. string='Certificate of Conduct',
  9. compute=lambda s: s._compute_identification(
  10. 'coc_certificate_of_conduct', 'co_conduct',
  11. ),
  12. inverse=lambda s: s._inverse_identification(
  13. 'coc_certificate_of_conduct', 'co_conduct',
  14. ),
  15. search=lambda s, *a: s._search_identification(
  16. 'co_conduct', *a
  17. ),
  18. )