Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1403 Lượt xem

how can i hide units like margin from Measures At reports Pivot View ?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

To hide the margin field from the pivot view in the Sales Orders report using Odoo XML customization, you can override the view and make the field invisible using the following code:


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

    <field name="name">sale.order.pivot.custom.inherit</field>

    <field name="model">sale.order</field>

    <field name="inherit_id" ref="sale.view_order_pivot"/>

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

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

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

        </xpath>

    </field>

</record>


Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 25
561
1
thg 7 25
808
3
thg 7 25
2875
3
thg 5 25
1540
1
thg 7 25
1023