social/mail_activity_creator/models/mail_activity.py
2021-11-30 10:02:45 +01:00

16 lines
324 B
Python

# Copyright 2020 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class MailActivity(models.Model):
_inherit = "mail.activity"
creator_uid = fields.Many2one(
"res.users",
default=lambda r: r.env.user.id,
string="Creator",
)