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

hi all iam trying to hide create and edit option in project task form but its not working 


my code below :


            <xpath expr = "// field [@ name = 'project_id']" position = "attributes">

                <attrs name = 'options'> {'no_create': True} </attrs>

            </xpath>

            <xpath expr = "// field [@ name = 'user_id']" position = "attributes">

                <attrs name = 'options'> {'no_create': True} </attrs>

            </xpath>

            <xpath expr = "// field [@ name = 'hr_category_ids']" position = "attributes">

                <attrs name = 'options'> {'no_create': True} </attrs>

            </xpath>

<! - <field name = "user_id" position = "attributes">

                <attrs name = 'options'> {'no_create': True} </attrs>

            </field> ->

<! - <field name = "task_tkt_id" position = "attributes">

                <attrs name = 'options'> {'no_create': True, 'no_open': True} </attrs>

            </field> ->

<! - <field name = "hr_category_ids" position = "attributes">

                <attrs name = 'options'> {'no_create': True} </attrs>

            </field> ->

아바타
취소
베스트 답변

Hi,

Replace attrs with attribute,

<xpath expr="//field[@name='your_field']" position="attributes">

       <attribute name="options">{'no_create':True, 'no_open':True}</attribute>

 </xpath>

Hope it helps,

Thanks

아바타
취소