콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2689 화면

Please could someone help me figure out the problem with the appended code in the Inherited View failing to make existing field phone Mandatory in the base model crm.lead :


True


아바타
취소
작성자

Hi,


I tried this method , but it did not work without giving any error.


Please suggest further. 


Regards,

please try providing more info like which model, view etc, normally this code has to work.

you can check below points.
* does the field is rewritten from any other place
* is the inherited view get added in the db etc

작성자

I tried to make the fields partner_id , partner_name of the CRM.LEAD module REQUIRED using a inherited view - No error is shown , however, I could save an existing lead without any Partner Id or Partner Name. The Same holds true for Phone , Mobile and other existing fields in the crm.lead module as well.


Please could you suggest.

can you confirm that the inherited view get added in your db,

작성자

Yes, the inherited View is added to the base model crm.lead. which is evident from editing the view form in the developer mode.

Please suggest.

베스트 답변

Hi,

You can inherit the corresponding view and set required property as True for the field.


xpath expr="field[@name='city']" position="attributes"
attribute name="required">1attribute>
/xpath



Thanks

아바타
취소

<xpath expr="field[@name='city']" position="attributes">
<attribute name="required">1</attribute>
</xpath>

관련 게시물 답글 화면 활동
2
8월 23
2526
0
7월 23
2280
0
7월 23
2140
0
1월 21
3152
1
7월 19
5420