[FIX] crm_iap_lead: allow to edit 'contact_number' for failed requests
Right now, for the lead mining request, `contact_number` field is only editable when the request is in draft state. However, like the most other fields, this one should be editable for the failed request so that user can decide how many contacts should be fetched before submitting the request again. This commit fixes the behavior by making `contact_number` field readonly for the successfully completed mining request only. TaskID-2605708 closes odoo/odoo#74121 X-original-commit: 479a6492f9d2a6991e880f4fc4ac425ea1a7e72a Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
committed by
Dharmraj Jhala
parent
dec5b354bb
commit
7a2e286e12
@@ -86,7 +86,7 @@
|
||||
|
||||
<group name="contacts" attrs="{'invisible': [('search_type', '!=', 'people')]}">
|
||||
<div>
|
||||
<field name="contact_number" attrs="{'readonly': [('state', '!=', 'draft')], 'required': [('search_type', '=', 'people')]}" nolabel="1" class="col-md-1"/>
|
||||
<field name="contact_number" attrs="{'readonly': [('state', '=', 'done')], 'required': [('search_type', '=', 'people')]}" nolabel="1" class="col-md-1"/>
|
||||
<span class="col-md-6">Extra contacts per Company</span>
|
||||
</div>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user