19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:56 +01:00
parent a2f74aefd8
commit 4a4d12c333
844 changed files with 212348 additions and 270090 deletions

View file

@ -0,0 +1,15 @@
from odoo import models
class PortalShare(models.TransientModel):
_inherit = 'portal.share'
def action_send_mail(self):
# Extend portal share to subscribe partners when sharing project tasks.
result = super().action_send_mail()
# Only subscribe partners if shared from project.task
if self.res_model == 'project.task':
self.resource_ref.message_subscribe(partner_ids=self.partner_ids.ids)
return result