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
22 lines
633 B
from odoo import fields, models
|
|
|
|
|
|
class ResPartnerIdCategory(models.Model):
|
|
_inherit = "res.partner.id_category"
|
|
|
|
def _get_default_id_number_model(self):
|
|
return self.env.ref("partner_identification.model_res_partner_id_number").id
|
|
|
|
send_notification = fields.Boolean(
|
|
string="Send Notification",
|
|
)
|
|
days_before_expire = fields.Integer(
|
|
string="# of Days Before Expiration",
|
|
)
|
|
email_template_id = fields.Many2one(
|
|
"mail.template",
|
|
string="Email Template",
|
|
)
|
|
id_number_model_id = fields.Many2one(
|
|
"ir.model", default=_get_default_id_number_model
|
|
)
|