跳至内容
菜单
此问题已终结
1 回复
7381 查看

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 ?

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
1
7月 21
4904
0
4月 24
794
2
10月 23
6431
0
6月 22
1803
1
11月 21
1942