Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
8110 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
čvc 21
5548
0
dub 24
1496
2
říj 23
7738
0
čvn 22
2622
1
lis 21
2712