Skip to Content
Menu
This question has been flagged
1 Reply
1811 Views

in hr.holidays modul (Time Off), there's I get from view form (Paid Time Off):

?xml version="1.0"?>
data>
div name="status_id" position="replace"/>
            div name="title" position="replace">
                field name="display_name" invisible="1"/>
                div class="oe_title" name="title">
                    h1>
                        field name="employee_id" nolabel="1"/>
                    /h1>
                    h2>
                        field name="holiday_status_id" nolabel="1"/>
                    /h2>
                /div>
            /div>
            div name="description" position="replace"/>
            field name="user_id" position="before">
                field name="name"/>
            /field>
            xpath expr="//sheet" position="inside">
                div groups="hr_holidays.group_hr_holidays_manager">
                    separator string="Manager's Comment"/>
                    field name="report_note" placeholder="e.g. Report to the next month..."/>
                /div>
            /xpath>
            xpath expr="//group[@name='col_right']" position="replace">
                group class="mt-0">
                    widget name="hr_leave_stats"/>
                /group>
                field name="department_id" invisible="1"/>
            /xpath>
        /data>

so, in

widget name="hr_leave_stats"

there's display for employee_id and department_id, it's not field, in form above, so can I xpath employee_id into invisible?

Avatar
Discard
Best Answer

Hi,

<?xml version="1.0"?>
<data>
<xpath expr="//widget[@name='hr_leave_stats']//div[@name='employee_id']" position="attributes">
        <attribute name="invisible">1</attribute>
    </xpath>
</data>


Hope it helps

Avatar
Discard
Related Posts Replies Views Activity
1
Sep 15
4707
2
Mar 24
1680
1
Apr 23
12891
0
Jan 23
2480
2
Mar 21
8435