コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
1457 ビュー

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
8月 25
683
1
7月 25
941
3
7月 25
3209
3
5月 25
1709
1
7月 25
1149