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
909 B

  1. from odoo import fields, models
  2. class ResContacts(models.Model):
  3. _inherit = "res.partner"
  4. contact_type = fields.Selection([
  5. ('no_contact', 'I do not want to be contacted.'),
  6. ('email_contact', 'I only want to be contacted by Email.'),
  7. ('phone_contact', 'I only want to be contacted by Phone.'),
  8. ('email_phone_contact', 'You can contact me by Email or Phone.')
  9. ],
  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")