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.

22 lines
633 B

  1. from odoo import fields, models
  2. class ResPartnerIdCategory(models.Model):
  3. _inherit = "res.partner.id_category"
  4. def _get_default_id_number_model(self):
  5. return self.env.ref("partner_identification.model_res_partner_id_number").id
  6. send_notification = fields.Boolean(
  7. string="Send Notification",
  8. )
  9. days_before_expire = fields.Integer(
  10. string="# of Days Before Expiration",
  11. )
  12. email_template_id = fields.Many2one(
  13. "mail.template",
  14. string="Email Template",
  15. )
  16. id_number_model_id = fields.Many2one(
  17. "ir.model", default=_get_default_id_number_model
  18. )