Show Lead Menu
Personal Leads
['|',('user_id','=',user.id),('user_id','=',False)]
Leads with assigned activities
[('activity_ids.user_id','=',user.id)]
All Leads
[(1,'=',1)]
Hide Private Meetings
['|',('user_id','=',user.id),('show_as','=','busy')]
Personal Leads Analysis
['|',('user_id','=',user.id),('user_id','=',False)]
All Leads Analysis
[(1,'=',1)]
Opportunity Analysis multi-company
['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]
All Activities
[(1,'=',1)]
Personal Activities
['|',('user_id','=',user.id),('user_id','=',False)]
Lead multi-branch
['|', ('branch_id', '=', False), '|', ('branch_id', '=', user.default_branch_id.id),
('branch_id', 'in', user.branch_ids.ids)]