[FIX] crm: Prevent to select non-customer on lead quick creation

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.
This commit is contained in:
Yannick Tivisse
2017-06-27 15:26:03 +02:00
parent a8c12e1fd0
commit 8639152501
+1 -1
View File
@@ -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"/>