mirror of
https://gitlab.com/flectra-community/partner-contact.git
synced 2024-11-14 18:22:04 +00:00
23 lines
703 B
Python
23 lines
703 B
Python
# Copyright 2017-2018 Onestein (<https://www.onestein.eu>)
|
|
# Copyright 2018 Therp BV (<https://www.therp.nl>)
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
from flectra import fields, models
|
|
|
|
|
|
class ResPartner(models.Model):
|
|
_inherit = 'res.partner'
|
|
|
|
coc_certificate_of_conduct = fields.Char(
|
|
string='Certificate of Conduct',
|
|
compute=lambda s: s._compute_identification(
|
|
'coc_certificate_of_conduct', 'co_conduct',
|
|
),
|
|
inverse=lambda s: s._inverse_identification(
|
|
'coc_certificate_of_conduct', 'co_conduct',
|
|
),
|
|
search=lambda s, *a: s._search_identification(
|
|
'co_conduct', *a
|
|
),
|
|
)
|