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

Hi Everyone,

I want to make customer, email, phone fields not editable on Qualified Stage onwards.
how can I do this?


아바타
취소
베스트 답변

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='opportunity_partner']/field[@name='partner_id']" position="attributes">
<attribute name="readonly">stage_id != %(crm.stage_lead1)d</attribute>
    </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>

관련 게시물 답글 화면 활동
2
8월 25
1665
2
8월 25
832
1
9월 24
1894
1
5월 24
1491
1
6월 22
3542