Skip to Content
Menu
This question has been flagged
1 Reply
354 Views

Hi

I could copy an existing filed in CRM module by activating the developer module and make it work. But when i add a new filed , i am having problem.

I created a field (Test) in the CRM_Lead table in database with type Boolean. After that tried to add that filed in the crm form as below


it shown an error 

Error while validating constraint

Field `Test` does not exist

Error context:
View `crm.lead.form.opportunity`
[view_id: 352, xml_id: crm.crm_case_form_view_oppor, model: crm.lead, parent_id: n/a]



Avatar
Discard
Best Answer

Think you don't use the right method to add field. You don't have to create field in database table. You have to:
- Use studio module to customize view
- Or use technical -> database structure -> model in developpeur mode to add a field to a model and then inherit form view ..

The error message you have is, test field does not exist .. in form view, you have to use technical field name and not "name" directly.

Avatar
Discard