[FIX] crm: Do not show leads without next activities on NA menu

If nothing is planned for this lead, don't show it on the
Next Activities menuitem
This commit is contained in:
Yannick Tivisse
2016-04-08 11:09:59 +02:00
parent 653221e5a4
commit 1c9f7f9890
+1 -1
View File
@@ -121,7 +121,7 @@
eval="[(5, 0, 0), (0, 0, {'view_mode': 'tree', 'view_id': ref('crm_lead_view_tree_activity')}),
(0, 0, {'view_mode': 'form', 'view_id': ref('crm_case_form_view_oppor')}),
(0, 0, {'view_mode': 'kanban'}), (0, 0, {'view_mode': 'calendar'}), (0, 0, {'view_mode': 'pivot'}), (0, 0, {'view_mode': 'graph'})]"/>
<field name="domain">[('type','=','opportunity')]</field>
<field name="domain">[('type','=','opportunity'), ('date_action', '!=', False)]</field>
<field name="context">{
'default_type': 'opportunity',
'default_user_id': uid,