social/mail_activity_creator/models/mail_activity.py

16 lines
324 B
Python
Raw Normal View History

2020-02-03 16:16:50 +01:00
# 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"
2020-02-03 16:16:50 +01:00
creator_uid = fields.Many2one(
"res.users",
default=lambda r: r.env.user.id,
string="Creator",
2020-02-03 16:16:50 +01:00
)