mirror of https://github.com/OCA/social.git
[FIX] mail_activity_team: singleton in _compute_activity_team_id()
parent
e34d707583
commit
50d44673a9
|
@ -12,3 +12,5 @@
|
||||||
- [Camptocamp] (https://camptocamp.com):
|
- [Camptocamp] (https://camptocamp.com):
|
||||||
- Vincent Van Rossem <vincent.vanrossem@camptocamp.com>
|
- Vincent Van Rossem <vincent.vanrossem@camptocamp.com>
|
||||||
- Italo Lopes <italo.lopes@camptocamp.com>
|
- Italo Lopes <italo.lopes@camptocamp.com>
|
||||||
|
- [CorporateHub](https://corporatehub.eu/)
|
||||||
|
- Alexey Pelykh <alexey.pelykh@corphub.eu>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# Copyright 2024 Camptocamp SA
|
# Copyright 2024 Camptocamp SA
|
||||||
|
# Copyright 2024 CorporateHub
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||||
|
|
||||||
from odoo import api, fields, models
|
from odoo import api, fields, models
|
||||||
|
@ -26,7 +27,7 @@ class MailActivitySchedule(models.TransientModel):
|
||||||
elif not scheduler.activity_team_id:
|
elif not scheduler.activity_team_id:
|
||||||
scheduler.activity_team_id = (
|
scheduler.activity_team_id = (
|
||||||
self.env["mail.activity"]
|
self.env["mail.activity"]
|
||||||
.with_context(default_res_model=self.sudo().res_model_id.model)
|
.with_context(default_res_model=scheduler.sudo().res_model_id.model)
|
||||||
._get_default_team_id(user_id=scheduler.activity_team_user_id.id)
|
._get_default_team_id(user_id=scheduler.activity_team_user_id.id)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue