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.

26 lines
940 B

  1. # -*- coding: utf-8 -*-
  2. from odoo import api, fields, models, _
  3. class ResContacts(models.Model):
  4. _inherit = "res.partner"
  5. contact_type = fields.Selection(
  6. [('no_contact', 'I do not want to be contacted.'),
  7. ('email_contact', 'I only want to be contacted by Email.'),
  8. ('phone_contact', 'I only want to be contacted by Phone.'),
  9. ('email_phone_contact', 'You can contact me by Email or Phone.')
  10. ], string='Contact Type',
  11. default='email_contact',
  12. help="Which way user want to be contacted.")
  13. letter_contact = fields.Boolean("Letter Contact")
  14. phone_contact = fields.Boolean("Phone Contact")
  15. email_contact = fields.Boolean("Email Contact")
  16. is_verified = fields.Boolean("Verified Email")
  17. last_updated = fields.Datetime("Letzte Aktualisierung")
  18. class CrmLead(models.Model):
  19. _inherit = "crm.lead"
  20. email_link = fields.Char("Email verification link")