Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
7626 Lượt xem

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 ?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 21
5212
0
thg 4 24
1066
2
thg 10 23
6982
0
thg 6 22
2080
1
thg 11 21
2241