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.

28 lines
979 B

  1. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  2. from odoo import 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. ],
  11. string='Contact Type',
  12. default='email_contact',
  13. help="Which way user want to be contacted.")
  14. letter_contact = fields.Boolean("Letter Contact")
  15. phone_contact = fields.Boolean("Phone Contact")
  16. email_contact = fields.Boolean("Email Contact")
  17. is_verified = fields.Boolean("Verified Email")
  18. last_updated = fields.Datetime("Letzte Aktualisierung")
  19. class CrmLead(models.Model):
  20. _inherit = "crm.lead"
  21. email_link = fields.Char("Email verification link")