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

I want to modify on user portl the documents view. I do not want to show the drop down menu on search (so no click on arrow) or disable the modal.

First I tried to see if working to diable from modal some links and is working with this. What is not working that I want ONLY for portal users to disable, the internal users to have the original search.


Anyone knows what I am doing wrong in Odoo 18?

<odoo>

    <record id="documents_document_view_search_inherit" model="ir.ui.view">

        <field name="name">documents.document.search.inherit</field>

        <field name="model">documents.document</field>

        <field name="inherit_id" ref="documents.document_view_search"/>

        <field name="arch" type="xml">

            <xpath expr="//filter[@name='filter_owner_id']" position="attributes">

                <attribute name="invisible">1</attribute>

                <attribute name="groups">base.group_portal,base.group_public,base.group_user</attribute>

            </xpath>

            <xpath expr="//filter[@name='filter_partner_id']" position="attributes">

                <attribute name="invisible">1</attribute>

            </xpath>

            <xpath expr="//filter[@name='filter_res_model']" position="attributes">

                <attribute name="invisible">1</attribute>

            </xpath>

            <xpath expr="//filter[@name='filter_create_date']" position="attributes">

                <attribute name="invisible">1</attribute>

            </xpath>

            <xpath expr="//filter[@name='filter_file_extension']" position="attributes">

                <attribute name="invisible">1</attribute>

            </xpath>

        </field>

    </record>

</odoo>




아바타
취소
관련 게시물 답글 화면 활동
4
7월 23
5118
1
12월 21
2371
0
5월 20
2421
1
1월 20
3035
3
7월 19
3684