Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
7714 Visualizzazioni

I installed the hr_holidays module, which allows every employee to have a different amount of time off. I would like to create a pivot view which would show, for every employee, their remaining time off and their max time off (which already exist as fields).


How would you do that ?

Avatar
Abbandona
Risposta migliore

Hi,

You can try this,

<record id="hr_holidays_view_pivot" model="ir.ui.view" >
        <field name="name">hr.holidays.view.pivot</field>
        <field name="model">hr.holidays</field>
        <field name="arch" type="xml">
            <pivot string="Time off Analysis">
                <field name="you can add the required field" type="measure"/>
            </pivot>
        </field>
    </record>


Also, you can add the pivot in the view_mode of the action record

Regards

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
lug 21
5311
0
apr 24
1132
2
ott 23
7122
0
giu 22
2183
1
nov 21
2307