Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
7886 Vizualizări

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 ?

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
iul. 21
5430
0
apr. 24
1280
2
oct. 23
7374
0
iun. 22
2376
1
nov. 21
2525