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)...
Aug 14, 2019
SOLVED odoo 11 Domains no longer working with dynamic dates
regarding to :
https://github.com/odoo/odoo/issues/22956
on V10, we can use :
[["create_date","<",time.strftime('%Y-%m-%d')]]
this is a simple solution,
update base_automation set filter_pre_domain='[["write_date","<=", datetime.datetime.now().replace(microsecond=0).replace(hour=0).replace(minute=0).replace(second=0).isoformat(" ").partition("+")[0] ]]', filter_domain='[["write_date","<=", datetime.datetime.now().replace(microsecond=0).replace(hour=0).replace(minute=0).replace(second=0).isoformat("...
Aug 9, 2019
all about followers odoo
just as your inspiration only.
Automatically add follower to Sales Order if user(s) is a follower of the Contact - Odoo 10
10/18/18, 3:53 AM 1,075 views
How do I automatically add all followers from the partner to any new Sales Order with the same Partner?
So when a sales order is placed it will add all users following the...
Subscribe to:
Posts (Atom)