跳至内容
菜单
此问题已终结
1 回复
744 查看

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

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
1
3月 25
2571
2
3月 25
675
2
3月 25
1191
1
2月 25
898
7
2月 25
1886