Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1291 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
lip 25
2274
0
lip 25
310
3
maj 25
1176
1
lip 25
719
1
maj 25
823