mirror of
https://github.com/bringout/oca-ocb-project.git
synced 2026-04-21 18:42:10 +02:00
19.0 vanilla
This commit is contained in:
parent
a2f74aefd8
commit
4a4d12c333
844 changed files with 212348 additions and 270090 deletions
15
odoo-bringout-oca-ocb-project/project/wizard/portal_share.py
Normal file
15
odoo-bringout-oca-ocb-project/project/wizard/portal_share.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue