Skip to content

Commit

Permalink
[FIX] crm: Prevent to select non-customer on lead quick creation
Browse files Browse the repository at this point in the history
Purpose
=======

If you create an opp from the kanban you can select any contact (even if not marked "customer")

If you try to add a "non-customer" for the same field from the form view you cannot.

Specification
=============

Apply the same behavior than on the form view.
  • Loading branch information
tivisse committed Jun 27, 2017
1 parent a8c12e1 commit 8639152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/crm/views/crm_lead_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
<group>
<group>
<field name="name" string="Opportunity Title" placeholder="e.g. Customer Deal"/>
<field name="partner_id"/>
<field name="partner_id" domain="[('customer', '=', True)]" context="{'search_default_customer': 1}"/>
<field name="email_from" invisible="1"/>
<field name="phone" invisible="1"/>
<label for="planned_revenue"/>
Expand Down

0 comments on commit 8639152

Please sign in to comment.