| 1 | # -*- coding: utf-8 -*- |
| 2 | # Part of Odoo. See LICENSE file for full copyright and licensing details. |
| 3 | |
| 4 | from odoo import fields, models |
| 5 | |
| 6 | |
| 7 | class CrmLead(models.Model): |
| 8 | _inherit = 'crm.lead' |
| 9 | |
| 10 | reveal_id = fields.Char(string='Reveal ID', index='btree_not_null') # Technical ID of reveal request done by IAP |
| 11 | |
| 12 | def _merge_get_fields(self): |
| 13 | return super()._merge_get_fields() + ['reveal_id'] |