Hi Everyone,
I want to make customer, email, phone
fields not editable on Qualified Stage onwards.
how can I do this?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
Hi,
We can make fields readonly directly through the XML file itself.
To do this, inherit the form view 'crm.crm_lead_view_form' and set the 'readonly' attribute for the desired fields.
Refer to the below code:
<xpath expr="//group[@name='
<attribute name="readonly">stage_id != %(crm.stage_lead1)d</
</xpath>
Similarly, you can do it for the other 2 fields.
Hope it helps.
Hi Vikas ,
You can achieve this using Odoo Studio as well.
Hope it helps,
Kiran K
Hi Vikas,
Use is_stage_qualified field through condition in your crm view of specific field readonly.
Thanks.
can't we do it through XML?
will it ok
<xpath expr="//field[@name='partner_id']" position="attributes">
<attribute name="reaonly">stage_id == ['Qualified']</attribute>
</xpath>
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
2
aug. 25
|
1294 | ||
|
2
aug. 25
|
492 | ||
Deleting wrong stage in CRM
Opgelost
|
|
1
sep. 24
|
1675 | |
Menu not dispalying in portal view
Opgelost
|
|
1
mei 24
|
1346 | |
|
1
jun. 22
|
3331 |