just a simple automation
partners_who_are_users = []
users = env['res.users'].search([])
for user in users:
partners_who_are_users.append(user.partner_id.id)
followers = []
for partner in record.project_id.message_follower_ids.ids:
if partner in partners_who_are_users:
followers.append(partner)
followers.append(record.user_id.partner_id.id)
record.project_id.message_subscribe(followers)
..show all:.
.
just a simple automation
partners_who_are_users = []
users = env['res.users'].search([])
for user in users:
partners_who_are_users.append(user.partner_id.id)
followers = []
for partner in record.project_id.message_follower_ids.ids:
if partner in partners_who_are_users:
followers.append(partner)
followers.append(record.user_id.partner_id.id)
record.project_id.message_subscribe(followers)
No comments:
Post a Comment